Class BetaTunnel

  • All Implemented Interfaces:

    
    public final class BetaTunnel
    
                        

    An MCP tunnel.

    • Constructor Detail

    • Method Detail

      • id

         final String id()

        Unique identifier for the tunnel, prefixed with tnl_.

      • domain

         final String domain()

        Anthropic-assigned hostname for the tunnel. MCP server URLs whose host is a subdomain of this value are routed through the tunnel. Globally unique and never reused, even after the tunnel is archived.

      • _type

         final JsonValue _type()

        Expected to always return the following:

        JsonValue.from("tunnel")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _id

         final JsonField<String> _id()

        Returns the raw JSON value of id.

        Unlike id, this method doesn't throw if the JSON field has an unexpected type.

      • _archivedAt

         final JsonField<OffsetDateTime> _archivedAt()

        Returns the raw JSON value of archivedAt.

        Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.

      • _createdAt

         final JsonField<OffsetDateTime> _createdAt()

        Returns the raw JSON value of createdAt.

        Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.

      • _displayName

         final JsonField<String> _displayName()

        Returns the raw JSON value of displayName.

        Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.

      • _domain

         final JsonField<String> _domain()

        Returns the raw JSON value of domain.

        Unlike domain, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaTunnel validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.

      • builder

         final static BetaTunnel.Builder builder()

        Returns a mutable builder for constructing an instance of BetaTunnel.

        The following fields are required:

        .id()
        .archivedAt()
        .createdAt()
        .displayName()
        .domain()