Class BetaManagedAgentsCredentialNetworkingParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsCredentialNetworkingParamsSubstitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsCredentialNetworkingParams.VisitorAn interface that defines how to map each variant of BetaManagedAgentsCredentialNetworkingParams to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsUnrestrictedCredentialNetworkingParams>unrestricted()Substitute the secret on any host the session's Environment network policy permits egress to. final Optional<BetaManagedAgentsLimitedCredentialNetworkingParams>limited()Substitute the secret only on requests to the listed hosts. final BooleanisUnrestricted()final BooleanisLimited()final BetaManagedAgentsUnrestrictedCredentialNetworkingParamsasUnrestricted()Substitute the secret on any host the session's Environment network policy permits egress to. final BetaManagedAgentsLimitedCredentialNetworkingParamsasLimited()Substitute the secret only on requests to the listed hosts. final Optional<JsonValue>_json()final <T extends Any> Taccept(BetaManagedAgentsCredentialNetworkingParams.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaManagedAgentsCredentialNetworkingParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsCredentialNetworkingParamsofUnrestricted(BetaManagedAgentsUnrestrictedCredentialNetworkingParams unrestricted)Substitute the secret on any host the session's Environment network policy permits egress to. final static BetaManagedAgentsCredentialNetworkingParamsofLimited(BetaManagedAgentsLimitedCredentialNetworkingParams limited)Substitute the secret only on requests to the listed hosts. -
-
Method Detail
-
unrestricted
final Optional<BetaManagedAgentsUnrestrictedCredentialNetworkingParams> unrestricted()
Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
-
limited
final Optional<BetaManagedAgentsLimitedCredentialNetworkingParams> limited()
Substitute the secret only on requests to the listed hosts.
-
isUnrestricted
final Boolean isUnrestricted()
-
asUnrestricted
final BetaManagedAgentsUnrestrictedCredentialNetworkingParams asUnrestricted()
Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
-
asLimited
final BetaManagedAgentsLimitedCredentialNetworkingParams asLimited()
Substitute the secret only on requests to the listed hosts.
-
accept
final <T extends Any> T accept(BetaManagedAgentsCredentialNetworkingParams.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 = betaManagedAgentsCredentialNetworkingParams.accept(new BetaManagedAgentsCredentialNetworkingParams.Visitor<Optional<String>>() { @Override public Optional<String> visitUnrestricted(BetaManagedAgentsUnrestrictedCredentialNetworkingParams unrestricted) { return Optional.of(unrestricted.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsCredentialNetworkingParams 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 BetaManagedAgentsCredentialNetworkingParams ofUnrestricted(BetaManagedAgentsUnrestrictedCredentialNetworkingParams unrestricted)
Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach.
-
ofLimited
final static BetaManagedAgentsCredentialNetworkingParams ofLimited(BetaManagedAgentsLimitedCredentialNetworkingParams limited)
Substitute the secret only on requests to the listed hosts.
-
-
-
-