Class TargetInstances
- java.lang.Object
-
- software.amazon.awssdk.services.codedeploy.model.TargetInstances
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetInstances.Builder,TargetInstances>
@Generated("software.amazon.awssdk:codegen") public final class TargetInstances extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetInstances.Builder,TargetInstances>
Information about the instances to be used in the replacement environment in a blue/green deployment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetInstances.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>autoScalingGroups()The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.static TargetInstances.Builderbuilder()EC2TagSetec2TagSet()Information about the groups of Amazon EC2 instance tags that an instance must be identified by in order for it to be included in the replacement environment for a blue/green deployment.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAutoScalingGroups()For responses, this returns true if the service returned a value for the AutoScalingGroups property.inthashCode()booleanhasTagFilters()For responses, this returns true if the service returned a value for the TagFilters property.List<SdkField<?>>sdkFields()static Class<? extends TargetInstances.Builder>serializableBuilderClass()List<EC2TagFilter>tagFilters()The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment.TargetInstances.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
hasTagFilters
public final boolean hasTagFilters()
For responses, this returns true if the service returned a value for the TagFilters 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.
-
tagFilters
public final List<EC2TagFilter> tagFilters()
The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as
ec2TagSet.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
hasTagFilters()method.- Returns:
- The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment
for a blue/green deployment. Cannot be used in the same call as
ec2TagSet.
-
hasAutoScalingGroups
public final boolean hasAutoScalingGroups()
For responses, this returns true if the service returned a value for the AutoScalingGroups 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.
-
autoScalingGroups
public final List<String> autoScalingGroups()
The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.
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
hasAutoScalingGroups()method.- Returns:
- The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment.
-
ec2TagSet
public final EC2TagSet ec2TagSet()
Information about the groups of Amazon EC2 instance tags that an instance must be identified by in order for it to be included in the replacement environment for a blue/green deployment. Cannot be used in the same call as
tagFilters.- Returns:
- Information about the groups of Amazon EC2 instance tags that an instance must be identified by in order
for it to be included in the replacement environment for a blue/green deployment. Cannot be used in the
same call as
tagFilters.
-
toBuilder
public TargetInstances.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetInstances.Builder,TargetInstances>
-
builder
public static TargetInstances.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetInstances.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.
-
-