Class BetaManagedAgentsEnvironmentVariableAuthResponse.Networking
-
- All Implemented Interfaces:
public final class BetaManagedAgentsEnvironmentVariableAuthResponse.NetworkingOutbound hosts the secret value is substituted on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsEnvironmentVariableAuthResponse.Networking.VisitorAn interface that defines how to map each variant of Networking to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsUnrestrictedCredentialNetworkingResponse>unrestricted()The secret is substituted on any host the session's Environment network policy permits egress to. final Optional<BetaManagedAgentsLimitedCredentialNetworkingResponse>limited()The secret is substituted only on requests to the listed hosts. final BooleanisUnrestricted()final BooleanisLimited()final BetaManagedAgentsUnrestrictedCredentialNetworkingResponseasUnrestricted()The secret is substituted on any host the session's Environment network policy permits egress to. final BetaManagedAgentsLimitedCredentialNetworkingResponseasLimited()The secret is substituted only on requests to the listed hosts. final Optional<JsonValue>_json()final <T extends Any> Taccept(BetaManagedAgentsEnvironmentVariableAuthResponse.Networking.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaManagedAgentsEnvironmentVariableAuthResponse.Networkingvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsEnvironmentVariableAuthResponse.NetworkingofUnrestricted(BetaManagedAgentsUnrestrictedCredentialNetworkingResponse unrestricted)The secret is substituted on any host the session's Environment network policy permits egress to. final static BetaManagedAgentsEnvironmentVariableAuthResponse.NetworkingofLimited(BetaManagedAgentsLimitedCredentialNetworkingResponse limited)The secret is substituted only on requests to the listed hosts. -
-
Method Detail
-
unrestricted
final Optional<BetaManagedAgentsUnrestrictedCredentialNetworkingResponse> unrestricted()
The secret is substituted on any host the session's Environment network policy permits egress to.
-
limited
final Optional<BetaManagedAgentsLimitedCredentialNetworkingResponse> limited()
The secret is substituted only on requests to the listed hosts.
-
isUnrestricted
final Boolean isUnrestricted()
-
asUnrestricted
final BetaManagedAgentsUnrestrictedCredentialNetworkingResponse asUnrestricted()
The secret is substituted on any host the session's Environment network policy permits egress to.
-
asLimited
final BetaManagedAgentsLimitedCredentialNetworkingResponse asLimited()
The secret is substituted only on requests to the listed hosts.
-
accept
final <T extends Any> T accept(BetaManagedAgentsEnvironmentVariableAuthResponse.Networking.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.anthropic.core.JsonValue; import java.util.Optional; Optional<String> result = networking.accept(new Networking.Visitor<Optional<String>>() { @Override public Optional<String> visitUnrestricted(BetaManagedAgentsUnrestrictedCredentialNetworkingResponse unrestricted) { return Optional.of(unrestricted.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsEnvironmentVariableAuthResponse.Networking 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.
-
ofUnrestricted
final static BetaManagedAgentsEnvironmentVariableAuthResponse.Networking ofUnrestricted(BetaManagedAgentsUnrestrictedCredentialNetworkingResponse unrestricted)
The secret is substituted on any host the session's Environment network policy permits egress to.
-
ofLimited
final static BetaManagedAgentsEnvironmentVariableAuthResponse.Networking ofLimited(BetaManagedAgentsLimitedCredentialNetworkingResponse limited)
The secret is substituted only on requests to the listed hosts.
-
-
-
-