Class BetaTunnel
-
- All Implemented Interfaces:
public final class BetaTunnelAn MCP tunnel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTunnel.BuilderA builder for BetaTunnel.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the tunnel, prefixed with tnl_.final Optional<OffsetDateTime>archivedAt()RFC 3339 datetime string indicating when the tunnel was archived. final OffsetDateTimecreatedAt()RFC 3339 datetime string indicating when the tunnel was created. final Optional<String>displayName()Human-readable name for the tunnel (1-255 characters). final Stringdomain()Anthropic-assigned hostname for the tunnel. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tunnel")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_domain()Returns the raw JSON value of domain. final Map<String, JsonValue>_additionalProperties()final BetaTunnel.BuildertoBuilder()final BetaTunnelvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTunnel.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTunnel. -
-
Method Detail
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
RFC 3339 datetime string indicating when the tunnel was archived. Null if it is not archived.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string indicating when the tunnel was created.
-
displayName
final Optional<String> displayName()
Human-readable name for the tunnel (1-255 characters). Null if unset.
-
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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTunnel.Builder toBuilder()
-
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()
-
-
-
-