Class ResourceTargetDefinition
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.ResourceTargetDefinition
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ResourceTargetDefinition extends Object implements Serializable, Cloneable
The field that AWS CloudFormation will change, such as the name of a resource's property, and whether the resource will be recreated.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceTargetDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceTargetDefinitionclone()booleanequals(Object obj)StringgetAttribute()Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.StringgetName()If theAttributevalue isProperties, the name of the property.StringgetRequiresRecreation()If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated.inthashCode()voidsetAttribute(ResourceAttribute attribute)Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.voidsetAttribute(String attribute)Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.voidsetName(String name)If theAttributevalue isProperties, the name of the property.voidsetRequiresRecreation(RequiresRecreation requiresRecreation)If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated.voidsetRequiresRecreation(String requiresRecreation)If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated.StringtoString()Returns a string representation of this object; useful for testing and debugging.ResourceTargetDefinitionwithAttribute(ResourceAttribute attribute)Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.ResourceTargetDefinitionwithAttribute(String attribute)Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.ResourceTargetDefinitionwithName(String name)If theAttributevalue isProperties, the name of the property.ResourceTargetDefinitionwithRequiresRecreation(RequiresRecreation requiresRecreation)If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated.ResourceTargetDefinitionwithRequiresRecreation(String requiresRecreation)If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated.
-
-
-
Method Detail
-
setAttribute
public void setAttribute(String attribute)
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's
Metadata,Properties, orTags.- Parameters:
attribute- Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- See Also:
ResourceAttribute
-
getAttribute
public String getAttribute()
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's
Metadata,Properties, orTags.- Returns:
- Indicates which resource attribute is triggering this update,
such as a change in the resource attribute's
Metadata,Properties, orTags. - See Also:
ResourceAttribute
-
withAttribute
public ResourceTargetDefinition withAttribute(String attribute)
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's
Metadata,Properties, orTags.- Parameters:
attribute- Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceAttribute
-
setAttribute
public void setAttribute(ResourceAttribute attribute)
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's
Metadata,Properties, orTags.- Parameters:
attribute- Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- See Also:
ResourceAttribute
-
withAttribute
public ResourceTargetDefinition withAttribute(ResourceAttribute attribute)
Indicates which resource attribute is triggering this update, such as a change in the resource attribute's
Metadata,Properties, orTags.- Parameters:
attribute- Indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceAttribute
-
setName
public void setName(String name)
If the
Attributevalue isProperties, the name of the property. For all other attributes, the value is null.- Parameters:
name- If theAttributevalue isProperties, the name of the property. For all other attributes, the value is null.
-
getName
public String getName()
If the
Attributevalue isProperties, the name of the property. For all other attributes, the value is null.- Returns:
- If the
Attributevalue isProperties, the name of the property. For all other attributes, the value is null.
-
withName
public ResourceTargetDefinition withName(String name)
If the
Attributevalue isProperties, the name of the property. For all other attributes, the value is null.- Parameters:
name- If theAttributevalue isProperties, the name of the property. For all other attributes, the value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequiresRecreation
public void setRequiresRecreation(String requiresRecreation)
If the
Attributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Parameters:
requiresRecreation- If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- See Also:
RequiresRecreation
-
getRequiresRecreation
public String getRequiresRecreation()
If the
Attributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Returns:
- If the
Attributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide. - See Also:
RequiresRecreation
-
withRequiresRecreation
public ResourceTargetDefinition withRequiresRecreation(String requiresRecreation)
If the
Attributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Parameters:
requiresRecreation- If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RequiresRecreation
-
setRequiresRecreation
public void setRequiresRecreation(RequiresRecreation requiresRecreation)
If the
Attributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Parameters:
requiresRecreation- If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- See Also:
RequiresRecreation
-
withRequiresRecreation
public ResourceTargetDefinition withRequiresRecreation(RequiresRecreation requiresRecreation)
If the
Attributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Parameters:
requiresRecreation- If theAttributevalue isProperties, indicates whether a change to this property causes the resource to be recreated. The value can beNever,Always, orConditionally. To determine the conditions for aConditionallyrecreation, see the update behavior for that property in the AWS CloudFormation User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RequiresRecreation
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceTargetDefinition clone()
-
-