Class BetaManagedAgentsDeploymentPausedReason
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeploymentPausedReasonWhy a deployment is paused. Non-null exactly when
statusispaused.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsDeploymentPausedReason.VisitorAn interface that defines how to map each variant of BetaManagedAgentsDeploymentPausedReason to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsManualDeploymentPausedReason>manual()The caller invoked the pause endpoint on the deployment. final Optional<BetaManagedAgentsErrorDeploymentPausedReason>error()A scheduled fire recorded a failed run whose error auto-pauses the deployment. final BooleanisManual()final BooleanisError()final BetaManagedAgentsManualDeploymentPausedReasonasManual()The caller invoked the pause endpoint on the deployment. final BetaManagedAgentsErrorDeploymentPausedReasonasError()A scheduled fire recorded a failed run whose error auto-pauses the deployment. final Optional<JsonValue>_json()final <T extends Any> Taccept(BetaManagedAgentsDeploymentPausedReason.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaManagedAgentsDeploymentPausedReasonvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsDeploymentPausedReasonofManual(BetaManagedAgentsManualDeploymentPausedReason manual)The caller invoked the pause endpoint on the deployment. final static BetaManagedAgentsDeploymentPausedReasonofError(BetaManagedAgentsErrorDeploymentPausedReason error)A scheduled fire recorded a failed run whose error auto-pauses the deployment. -
-
Method Detail
-
manual
final Optional<BetaManagedAgentsManualDeploymentPausedReason> manual()
The caller invoked the pause endpoint on the deployment.
-
error
final Optional<BetaManagedAgentsErrorDeploymentPausedReason> error()
A scheduled fire recorded a failed run whose error auto-pauses the deployment.
-
asManual
final BetaManagedAgentsManualDeploymentPausedReason asManual()
The caller invoked the pause endpoint on the deployment.
-
asError
final BetaManagedAgentsErrorDeploymentPausedReason asError()
A scheduled fire recorded a failed run whose error auto-pauses the deployment.
-
accept
final <T extends Any> T accept(BetaManagedAgentsDeploymentPausedReason.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 = betaManagedAgentsDeploymentPausedReason.accept(new BetaManagedAgentsDeploymentPausedReason.Visitor<Optional<String>>() { @Override public Optional<String> visitManual(BetaManagedAgentsManualDeploymentPausedReason manual) { return Optional.of(manual.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsDeploymentPausedReason 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.
-
ofManual
final static BetaManagedAgentsDeploymentPausedReason ofManual(BetaManagedAgentsManualDeploymentPausedReason manual)
The caller invoked the pause endpoint on the deployment.
-
ofError
final static BetaManagedAgentsDeploymentPausedReason ofError(BetaManagedAgentsErrorDeploymentPausedReason error)
A scheduled fire recorded a failed run whose error auto-pauses the deployment.
-
-
-
-