Class DeploymentState
- java.lang.Object
-
- software.amazon.awssdk.services.proton.model.DeploymentState
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DeploymentState.Builder,DeploymentState>
@Generated("software.amazon.awssdk:codegen") public final class DeploymentState extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeploymentState.Builder,DeploymentState>
The detailed data about the current state of the deployment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDeploymentState.Builderstatic classDeploymentState.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeploymentState.Builderbuilder()ComponentStatecomponent()The state of the component associated with the deployment.EnvironmentStateenvironment()The state of the environment associated with the deployment.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static DeploymentStatefromComponent(Consumer<ComponentState.Builder> component)Create an instance of this class withcomponent()initialized to the given value.static DeploymentStatefromComponent(ComponentState component)Create an instance of this class withcomponent()initialized to the given value.static DeploymentStatefromEnvironment(Consumer<EnvironmentState.Builder> environment)Create an instance of this class withenvironment()initialized to the given value.static DeploymentStatefromEnvironment(EnvironmentState environment)Create an instance of this class withenvironment()initialized to the given value.static DeploymentStatefromServiceInstance(Consumer<ServiceInstanceState.Builder> serviceInstance)Create an instance of this class withserviceInstance()initialized to the given value.static DeploymentStatefromServiceInstance(ServiceInstanceState serviceInstance)Create an instance of this class withserviceInstance()initialized to the given value.static DeploymentStatefromServicePipeline(Consumer<ServicePipelineState.Builder> servicePipeline)Create an instance of this class withservicePipeline()initialized to the given value.static DeploymentStatefromServicePipeline(ServicePipelineState servicePipeline)Create an instance of this class withservicePipeline()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends DeploymentState.Builder>serializableBuilderClass()ServiceInstanceStateserviceInstance()The state of the service instance associated with the deployment.ServicePipelineStateservicePipeline()The state of the service pipeline associated with the deployment.DeploymentState.BuildertoBuilder()StringtoString()Returns a string representation of this object.DeploymentState.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
component
public final ComponentState component()
The state of the component associated with the deployment.
- Returns:
- The state of the component associated with the deployment.
-
environment
public final EnvironmentState environment()
The state of the environment associated with the deployment.
- Returns:
- The state of the environment associated with the deployment.
-
serviceInstance
public final ServiceInstanceState serviceInstance()
The state of the service instance associated with the deployment.
- Returns:
- The state of the service instance associated with the deployment.
-
servicePipeline
public final ServicePipelineState servicePipeline()
The state of the service pipeline associated with the deployment.
- Returns:
- The state of the service pipeline associated with the deployment.
-
toBuilder
public DeploymentState.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DeploymentState.Builder,DeploymentState>
-
builder
public static DeploymentState.Builder builder()
-
serializableBuilderClass
public static Class<? extends DeploymentState.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromComponent
public static DeploymentState fromComponent(ComponentState component)
Create an instance of this class withcomponent()initialized to the given value.The state of the component associated with the deployment.
- Parameters:
component- The state of the component associated with the deployment.
-
fromComponent
public static DeploymentState fromComponent(Consumer<ComponentState.Builder> component)
Create an instance of this class withcomponent()initialized to the given value.The state of the component associated with the deployment.
- Parameters:
component- The state of the component associated with the deployment.
-
fromEnvironment
public static DeploymentState fromEnvironment(EnvironmentState environment)
Create an instance of this class withenvironment()initialized to the given value.The state of the environment associated with the deployment.
- Parameters:
environment- The state of the environment associated with the deployment.
-
fromEnvironment
public static DeploymentState fromEnvironment(Consumer<EnvironmentState.Builder> environment)
Create an instance of this class withenvironment()initialized to the given value.The state of the environment associated with the deployment.
- Parameters:
environment- The state of the environment associated with the deployment.
-
fromServiceInstance
public static DeploymentState fromServiceInstance(ServiceInstanceState serviceInstance)
Create an instance of this class withserviceInstance()initialized to the given value.The state of the service instance associated with the deployment.
- Parameters:
serviceInstance- The state of the service instance associated with the deployment.
-
fromServiceInstance
public static DeploymentState fromServiceInstance(Consumer<ServiceInstanceState.Builder> serviceInstance)
Create an instance of this class withserviceInstance()initialized to the given value.The state of the service instance associated with the deployment.
- Parameters:
serviceInstance- The state of the service instance associated with the deployment.
-
fromServicePipeline
public static DeploymentState fromServicePipeline(ServicePipelineState servicePipeline)
Create an instance of this class withservicePipeline()initialized to the given value.The state of the service pipeline associated with the deployment.
- Parameters:
servicePipeline- The state of the service pipeline associated with the deployment.
-
fromServicePipeline
public static DeploymentState fromServicePipeline(Consumer<ServicePipelineState.Builder> servicePipeline)
Create an instance of this class withservicePipeline()initialized to the given value.The state of the service pipeline associated with the deployment.
- Parameters:
servicePipeline- The state of the service pipeline associated with the deployment.
-
type
public DeploymentState.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beDeploymentState.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beDeploymentState.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-