Class BetaTunnel.Builder
-
- All Implemented Interfaces:
public final class BetaTunnel.BuilderA builder for BetaTunnel.
-
-
Method Summary
Modifier and Type Method Description final BetaTunnel.Builderid(String id)Unique identifier for the tunnel, prefixed with tnl_.final BetaTunnel.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaTunnel.BuilderarchivedAt(OffsetDateTime archivedAt)RFC 3339 datetime string indicating when the tunnel was archived. final BetaTunnel.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final BetaTunnel.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final BetaTunnel.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string indicating when the tunnel was created. final BetaTunnel.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaTunnel.BuilderdisplayName(String displayName)Human-readable name for the tunnel (1-255 characters). final BetaTunnel.BuilderdisplayName(Optional<String> displayName)Alias for calling Builder.displayName with displayName.orElse(null).final BetaTunnel.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final BetaTunnel.Builderdomain(String domain)Anthropic-assigned hostname for the tunnel. final BetaTunnel.Builderdomain(JsonField<String> domain)Sets Builder.domain to an arbitrary JSON value. final BetaTunnel.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaTunnel.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaTunnel.BuilderputAdditionalProperty(String key, JsonValue value)final BetaTunnel.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaTunnel.BuilderremoveAdditionalProperty(String key)final BetaTunnel.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaTunnelbuild()Returns an immutable instance of BetaTunnel. -
-
Method Detail
-
id
final BetaTunnel.Builder id(String id)
Unique identifier for the tunnel, prefixed with
tnl_.
-
id
final BetaTunnel.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaTunnel.Builder archivedAt(OffsetDateTime archivedAt)
RFC 3339 datetime string indicating when the tunnel was archived. Null if it is not archived.
-
archivedAt
final BetaTunnel.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaTunnel.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaTunnel.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string indicating when the tunnel was created.
-
createdAt
final BetaTunnel.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final BetaTunnel.Builder displayName(String displayName)
Human-readable name for the tunnel (1-255 characters). Null if unset.
-
displayName
final BetaTunnel.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final BetaTunnel.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
domain
final BetaTunnel.Builder domain(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.
-
domain
final BetaTunnel.Builder domain(JsonField<String> domain)
Sets Builder.domain to an arbitrary JSON value.
You should usually call Builder.domain with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaTunnel.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("tunnel")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaTunnel.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTunnel.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTunnel.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTunnel.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTunnel.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTunnel build()
Returns an immutable instance of BetaTunnel.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .createdAt() .displayName() .domain()
-
-
-
-