Class ResourceChange
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.ResourceChange
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ResourceChange extends Object implements Serializable, Cloneable
The
ResourceChangestructure describes the resource and the action that AWS CloudFormation will perform on it if you execute this change set.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceChangeclone()booleanequals(Object obj)StringgetAction()The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).List<ResourceChangeDetail>getDetails()For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.StringgetLogicalResourceId()The resource's logical ID, which is defined in the stack's template.StringgetPhysicalResourceId()The resource's physical ID (resource name).StringgetReplacement()For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.StringgetResourceType()The type of AWS CloudFormation resource, such asAWS::S3::Bucket.List<String>getScope()For theModifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.inthashCode()voidsetAction(ChangeAction action)The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).voidsetAction(String action)The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).voidsetDetails(Collection<ResourceChangeDetail> details)For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.voidsetLogicalResourceId(String logicalResourceId)The resource's logical ID, which is defined in the stack's template.voidsetPhysicalResourceId(String physicalResourceId)The resource's physical ID (resource name).voidsetReplacement(Replacement replacement)For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.voidsetReplacement(String replacement)For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.voidsetResourceType(String resourceType)The type of AWS CloudFormation resource, such asAWS::S3::Bucket.voidsetScope(Collection<String> scope)For theModifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.StringtoString()Returns a string representation of this object; useful for testing and debugging.ResourceChangewithAction(ChangeAction action)The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).ResourceChangewithAction(String action)The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).ResourceChangewithDetails(ResourceChangeDetail... details)For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.ResourceChangewithDetails(Collection<ResourceChangeDetail> details)For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.ResourceChangewithLogicalResourceId(String logicalResourceId)The resource's logical ID, which is defined in the stack's template.ResourceChangewithPhysicalResourceId(String physicalResourceId)The resource's physical ID (resource name).ResourceChangewithReplacement(Replacement replacement)For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.ResourceChangewithReplacement(String replacement)For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.ResourceChangewithResourceType(String resourceType)The type of AWS CloudFormation resource, such asAWS::S3::Bucket.ResourceChangewithScope(ResourceAttribute... scope)For theModifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.ResourceChangewithScope(String... scope)For theModifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.ResourceChangewithScope(Collection<String> scope)For theModifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.
-
-
-
Method Detail
-
setAction
public void setAction(String action)
The action that AWS CloudFormation takes on the resource, such as
Add(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Parameters:
action- The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- See Also:
ChangeAction
-
getAction
public String getAction()
The action that AWS CloudFormation takes on the resource, such as
Add(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Returns:
- The action that AWS CloudFormation takes on the resource, such as
Add(adds a new resource),Modify(changes a resource), orRemove(deletes a resource). - See Also:
ChangeAction
-
withAction
public ResourceChange withAction(String action)
The action that AWS CloudFormation takes on the resource, such as
Add(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Parameters:
action- The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction
-
setAction
public void setAction(ChangeAction action)
The action that AWS CloudFormation takes on the resource, such as
Add(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Parameters:
action- The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- See Also:
ChangeAction
-
withAction
public ResourceChange withAction(ChangeAction action)
The action that AWS CloudFormation takes on the resource, such as
Add(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Parameters:
action- The action that AWS CloudFormation takes on the resource, such asAdd(adds a new resource),Modify(changes a resource), orRemove(deletes a resource).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChangeAction
-
setLogicalResourceId
public void setLogicalResourceId(String logicalResourceId)
The resource's logical ID, which is defined in the stack's template.
- Parameters:
logicalResourceId- The resource's logical ID, which is defined in the stack's template.
-
getLogicalResourceId
public String getLogicalResourceId()
The resource's logical ID, which is defined in the stack's template.
- Returns:
- The resource's logical ID, which is defined in the stack's template.
-
withLogicalResourceId
public ResourceChange withLogicalResourceId(String logicalResourceId)
The resource's logical ID, which is defined in the stack's template.
- Parameters:
logicalResourceId- The resource's logical ID, which is defined in the stack's template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPhysicalResourceId
public void setPhysicalResourceId(String physicalResourceId)
The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
- Parameters:
physicalResourceId- The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
-
getPhysicalResourceId
public String getPhysicalResourceId()
The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
- Returns:
- The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
-
withPhysicalResourceId
public ResourceChange withPhysicalResourceId(String physicalResourceId)
The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
- Parameters:
physicalResourceId- The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceType
public void setResourceType(String resourceType)
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket.- Parameters:
resourceType- The type of AWS CloudFormation resource, such asAWS::S3::Bucket.
-
getResourceType
public String getResourceType()
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket.- Returns:
- The type of AWS CloudFormation resource, such as
AWS::S3::Bucket.
-
withResourceType
public ResourceChange withResourceType(String resourceType)
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket.- Parameters:
resourceType- The type of AWS CloudFormation resource, such asAWS::S3::Bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReplacement
public void setReplacement(String replacement)
For the
Modifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Parameters:
replacement- For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- See Also:
Replacement
-
getReplacement
public String getReplacement()
For the
Modifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Returns:
- For the
Modifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever. - See Also:
Replacement
-
withReplacement
public ResourceChange withReplacement(String replacement)
For the
Modifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Parameters:
replacement- For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Replacement
-
setReplacement
public void setReplacement(Replacement replacement)
For the
Modifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Parameters:
replacement- For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- See Also:
Replacement
-
withReplacement
public ResourceChange withReplacement(Replacement replacement)
For the
Modifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Parameters:
replacement- For theModifyaction, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreationproperty in theResourceTargetDefinitionstructure. For example, if theRequiresRecreationfield isAlwaysand theEvaluationfield isStatic,ReplacementisTrue. If theRequiresRecreationfield isAlwaysand theEvaluationfield isDynamic,ReplacementisConditionally.If you have multiple changes with different
RequiresRecreationvalues, theReplacementvalue depends on the change with the most impact. ARequiresRecreationvalue ofAlwayshas the most impact, followed byConditionally, and thenNever.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Replacement
-
getScope
public List<String> getScope()
For the
Modifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- Returns:
- For the
Modifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags. - See Also:
ResourceAttribute
-
setScope
public void setScope(Collection<String> scope)
For the
Modifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- Parameters:
scope- For theModifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- See Also:
ResourceAttribute
-
withScope
public ResourceChange withScope(String... scope)
For the
Modifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.NOTE: This method appends the values to the existing list (if any). Use
setScope(java.util.Collection)orwithScope(java.util.Collection)if you want to override the existing values.- Parameters:
scope- For theModifyaction, 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
-
withScope
public ResourceChange withScope(Collection<String> scope)
For the
Modifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- Parameters:
scope- For theModifyaction, 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
-
withScope
public ResourceChange withScope(ResourceAttribute... scope)
For the
Modifyaction, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata,Properties, orTags.- Parameters:
scope- For theModifyaction, 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
-
getDetails
public List<ResourceChangeDetail> getDetails()
For the
Modifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.- Returns:
- For the
Modifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.
-
setDetails
public void setDetails(Collection<ResourceChangeDetail> details)
For the
Modifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.- Parameters:
details- For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.
-
withDetails
public ResourceChange withDetails(ResourceChangeDetail... details)
For the
Modifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.NOTE: This method appends the values to the existing list (if any). Use
setDetails(java.util.Collection)orwithDetails(java.util.Collection)if you want to override the existing values.- Parameters:
details- For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDetails
public ResourceChange withDetails(Collection<ResourceChangeDetail> details)
For the
Modifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.- Parameters:
details- For theModifyaction, a list ofResourceChangeDetailstructures that describes the changes that AWS CloudFormation will make to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ResourceChange clone()
-
-