Class ServiceRevision
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ServiceRevision
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceRevision.Builder,ServiceRevision>
@Generated("software.amazon.awssdk:codegen") public final class ServiceRevision extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceRevision.Builder,ServiceRevision>
Information about the service revision.
A service revision contains a record of the workload configuration Amazon ECS is attempting to deploy. Whenever you create or deploy a service, Amazon ECS automatically creates and captures the configuration that you're trying to deploy in the service revision. For information about service revisions, see Amazon ECS service revisions in the Amazon Elastic Container Service Developer Guide .
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceRevision.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceRevision.Builderbuilder()List<CapacityProviderStrategyItem>capacityProviderStrategy()The capacity provider strategy the service revision uses.StringclusterArn()The ARN of the cluster that hosts the service.List<ContainerImage>containerImages()The container images the service revision uses.InstantcreatedAt()The time that the service revision was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)DeploymentEphemeralStoragefargateEphemeralStorage()Returns the value of the FargateEphemeralStorage property for this object.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)BooleanguardDutyEnabled()Indicates whether Runtime Monitoring is turned on.booleanhasCapacityProviderStrategy()For responses, this returns true if the service returned a value for the CapacityProviderStrategy property.booleanhasContainerImages()For responses, this returns true if the service returned a value for the ContainerImages property.inthashCode()booleanhasLoadBalancers()For responses, this returns true if the service returned a value for the LoadBalancers property.booleanhasServiceRegistries()For responses, this returns true if the service returned a value for the ServiceRegistries property.booleanhasVolumeConfigurations()For responses, this returns true if the service returned a value for the VolumeConfigurations property.booleanhasVpcLatticeConfigurations()For responses, this returns true if the service returned a value for the VpcLatticeConfigurations property.LaunchTypelaunchType()The launch type the service revision uses.StringlaunchTypeAsString()The launch type the service revision uses.List<LoadBalancer>loadBalancers()The load balancers the service revision uses.NetworkConfigurationnetworkConfiguration()Returns the value of the NetworkConfiguration property for this object.StringplatformFamily()The platform family the service revision uses.StringplatformVersion()For the Fargate launch type, the platform version the service revision uses.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServiceRevision.Builder>serializableBuilderClass()StringserviceArn()The ARN of the service for the service revision.ServiceConnectConfigurationserviceConnectConfiguration()Returns the value of the ServiceConnectConfiguration property for this object.List<ServiceRegistry>serviceRegistries()The service registries (for Service Discovery) the service revision uses.StringserviceRevisionArn()The ARN of the service revision.StringtaskDefinition()The task definition the service revision uses.ServiceRevision.BuildertoBuilder()StringtoString()Returns a string representation of this object.List<ServiceVolumeConfiguration>volumeConfigurations()The volumes that are configured at deployment that the service revision uses.List<VpcLatticeConfiguration>vpcLatticeConfigurations()The VPC Lattice configuration for the service revision.-
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
-
serviceRevisionArn
public final String serviceRevisionArn()
The ARN of the service revision.
- Returns:
- The ARN of the service revision.
-
serviceArn
public final String serviceArn()
The ARN of the service for the service revision.
- Returns:
- The ARN of the service for the service revision.
-
clusterArn
public final String clusterArn()
The ARN of the cluster that hosts the service.
- Returns:
- The ARN of the cluster that hosts the service.
-
taskDefinition
public final String taskDefinition()
The task definition the service revision uses.
- Returns:
- The task definition the service revision uses.
-
hasCapacityProviderStrategy
public final boolean hasCapacityProviderStrategy()
For responses, this returns true if the service returned a value for the CapacityProviderStrategy property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
capacityProviderStrategy
public final List<CapacityProviderStrategyItem> capacityProviderStrategy()
The capacity provider strategy the service revision uses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCapacityProviderStrategy()method.- Returns:
- The capacity provider strategy the service revision uses.
-
launchType
public final LaunchType launchType()
The launch type the service revision uses.
If the service returns an enum value that is not available in the current SDK version,
launchTypewill returnLaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlaunchTypeAsString().- Returns:
- The launch type the service revision uses.
- See Also:
LaunchType
-
launchTypeAsString
public final String launchTypeAsString()
The launch type the service revision uses.
If the service returns an enum value that is not available in the current SDK version,
launchTypewill returnLaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlaunchTypeAsString().- Returns:
- The launch type the service revision uses.
- See Also:
LaunchType
-
platformVersion
public final String platformVersion()
For the Fargate launch type, the platform version the service revision uses.
- Returns:
- For the Fargate launch type, the platform version the service revision uses.
-
platformFamily
public final String platformFamily()
The platform family the service revision uses.
- Returns:
- The platform family the service revision uses.
-
hasLoadBalancers
public final boolean hasLoadBalancers()
For responses, this returns true if the service returned a value for the LoadBalancers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
loadBalancers
public final List<LoadBalancer> loadBalancers()
The load balancers the service revision uses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasLoadBalancers()method.- Returns:
- The load balancers the service revision uses.
-
hasServiceRegistries
public final boolean hasServiceRegistries()
For responses, this returns true if the service returned a value for the ServiceRegistries property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
serviceRegistries
public final List<ServiceRegistry> serviceRegistries()
The service registries (for Service Discovery) the service revision uses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasServiceRegistries()method.- Returns:
- The service registries (for Service Discovery) the service revision uses.
-
networkConfiguration
public final NetworkConfiguration networkConfiguration()
Returns the value of the NetworkConfiguration property for this object.- Returns:
- The value of the NetworkConfiguration property for this object.
-
hasContainerImages
public final boolean hasContainerImages()
For responses, this returns true if the service returned a value for the ContainerImages property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
containerImages
public final List<ContainerImage> containerImages()
The container images the service revision uses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasContainerImages()method.- Returns:
- The container images the service revision uses.
-
guardDutyEnabled
public final Boolean guardDutyEnabled()
Indicates whether Runtime Monitoring is turned on.
- Returns:
- Indicates whether Runtime Monitoring is turned on.
-
serviceConnectConfiguration
public final ServiceConnectConfiguration serviceConnectConfiguration()
Returns the value of the ServiceConnectConfiguration property for this object.- Returns:
- The value of the ServiceConnectConfiguration property for this object.
-
hasVolumeConfigurations
public final boolean hasVolumeConfigurations()
For responses, this returns true if the service returned a value for the VolumeConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
volumeConfigurations
public final List<ServiceVolumeConfiguration> volumeConfigurations()
The volumes that are configured at deployment that the service revision uses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasVolumeConfigurations()method.- Returns:
- The volumes that are configured at deployment that the service revision uses.
-
fargateEphemeralStorage
public final DeploymentEphemeralStorage fargateEphemeralStorage()
Returns the value of the FargateEphemeralStorage property for this object.- Returns:
- The value of the FargateEphemeralStorage property for this object.
-
createdAt
public final Instant createdAt()
The time that the service revision was created. The format is yyyy-mm-dd HH:mm:ss.SSSSS.
- Returns:
- The time that the service revision was created. The format is yyyy-mm-dd HH:mm:ss.SSSSS.
-
hasVpcLatticeConfigurations
public final boolean hasVpcLatticeConfigurations()
For responses, this returns true if the service returned a value for the VpcLatticeConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
vpcLatticeConfigurations
public final List<VpcLatticeConfiguration> vpcLatticeConfigurations()
The VPC Lattice configuration for the service revision.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasVpcLatticeConfigurations()method.- Returns:
- The VPC Lattice configuration for the service revision.
-
toBuilder
public ServiceRevision.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceRevision.Builder,ServiceRevision>
-
builder
public static ServiceRevision.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceRevision.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-