public class ResourceChange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The ResourceChange
structure describes the resource and the
action that AWS CloudFormation will perform on it if you execute this change
set.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
action
The action that AWS CloudFormation takes on the resource, such as
Add (adds a new resource), Modify (changes a
resource), or Remove (deletes a resource). |
private SdkInternalList<ResourceChangeDetail> |
details
For the
Modify action, a list of
ResourceChangeDetail structures that describes the changes
that AWS CloudFormation will make to the resource. |
private java.lang.String |
logicalResourceId
The resource's logical ID, which is defined in the stack's template.
|
private java.lang.String |
physicalResourceId
The resource's physical ID (resource name).
|
private java.lang.String |
replacement
For the
Modify action, indicates whether AWS CloudFormation
will replace the resource by creating a new one and deleting the old one. |
private java.lang.String |
resourceType
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket . |
private SdkInternalList<java.lang.String> |
scope
For the
Modify action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata , Properties , or Tags . |
Constructor and Description |
---|
ResourceChange() |
Modifier and Type | Method and Description |
---|---|
ResourceChange |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAction()
The action that AWS CloudFormation takes on the resource, such as
Add (adds a new resource), Modify (changes a
resource), or Remove (deletes a resource). |
java.util.List<ResourceChangeDetail> |
getDetails()
For the
Modify action, a list of
ResourceChangeDetail structures that describes the changes
that AWS CloudFormation will make to the resource. |
java.lang.String |
getLogicalResourceId()
The resource's logical ID, which is defined in the stack's template.
|
java.lang.String |
getPhysicalResourceId()
The resource's physical ID (resource name).
|
java.lang.String |
getReplacement()
For the
Modify action, indicates whether AWS CloudFormation
will replace the resource by creating a new one and deleting the old one. |
java.lang.String |
getResourceType()
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket . |
java.util.List<java.lang.String> |
getScope()
For the
Modify action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata , Properties , or Tags . |
int |
hashCode() |
void |
setAction(ChangeAction action)
The action that AWS CloudFormation takes on the resource, such as
Add (adds a new resource), Modify (changes a
resource), or Remove (deletes a resource). |
void |
setAction(java.lang.String action)
The action that AWS CloudFormation takes on the resource, such as
Add (adds a new resource), Modify (changes a
resource), or Remove (deletes a resource). |
void |
setDetails(java.util.Collection<ResourceChangeDetail> details)
For the
Modify action, a list of
ResourceChangeDetail structures that describes the changes
that AWS CloudFormation will make to the resource. |
void |
setLogicalResourceId(java.lang.String logicalResourceId)
The resource's logical ID, which is defined in the stack's template.
|
void |
setPhysicalResourceId(java.lang.String physicalResourceId)
The resource's physical ID (resource name).
|
void |
setReplacement(Replacement replacement)
For the
Modify action, indicates whether AWS CloudFormation
will replace the resource by creating a new one and deleting the old one. |
void |
setReplacement(java.lang.String replacement)
For the
Modify action, indicates whether AWS CloudFormation
will replace the resource by creating a new one and deleting the old one. |
void |
setResourceType(java.lang.String resourceType)
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket . |
void |
setScope(java.util.Collection<java.lang.String> scope)
For the
Modify action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata , Properties , or Tags . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceChange |
withAction(ChangeAction action)
The action that AWS CloudFormation takes on the resource, such as
Add (adds a new resource), Modify (changes a
resource), or Remove (deletes a resource). |
ResourceChange |
withAction(java.lang.String action)
The action that AWS CloudFormation takes on the resource, such as
Add (adds a new resource), Modify (changes a
resource), or Remove (deletes a resource). |
ResourceChange |
withDetails(java.util.Collection<ResourceChangeDetail> details)
For the
Modify action, a list of
ResourceChangeDetail structures that describes the changes
that AWS CloudFormation will make to the resource. |
ResourceChange |
withDetails(ResourceChangeDetail... details)
For the
Modify action, a list of
ResourceChangeDetail structures that describes the changes
that AWS CloudFormation will make to the resource. |
ResourceChange |
withLogicalResourceId(java.lang.String logicalResourceId)
The resource's logical ID, which is defined in the stack's template.
|
ResourceChange |
withPhysicalResourceId(java.lang.String physicalResourceId)
The resource's physical ID (resource name).
|
ResourceChange |
withReplacement(Replacement replacement)
For the
Modify action, indicates whether AWS CloudFormation
will replace the resource by creating a new one and deleting the old one. |
ResourceChange |
withReplacement(java.lang.String replacement)
For the
Modify action, indicates whether AWS CloudFormation
will replace the resource by creating a new one and deleting the old one. |
ResourceChange |
withResourceType(java.lang.String resourceType)
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket . |
ResourceChange |
withScope(java.util.Collection<java.lang.String> scope)
For the
Modify action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata , Properties , or Tags . |
ResourceChange |
withScope(ResourceAttribute... scope)
For the
Modify action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata , Properties , or Tags . |
ResourceChange |
withScope(java.lang.String... scope)
For the
Modify action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata , Properties , or Tags . |
private java.lang.String action
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a
resource), or Remove
(deletes a resource).
private java.lang.String logicalResourceId
The resource's logical ID, which is defined in the stack's template.
private java.lang.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.
private java.lang.String resourceType
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.
private java.lang.String replacement
For the Modify
action, 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 the RequiresRecreation
property in the ResourceTargetDefinition
structure. For
example, if the RequiresRecreation
field is
Always
and the Evaluation
field is
Static
, Replacement
is True
. If
the RequiresRecreation
field is Always
and the
Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the Replacement
value depends on the change with the most impact. A
RequiresRecreation
value of Always
has the most
impact, followed by Conditionally
, and then
Never
.
private SdkInternalList<java.lang.String> scope
For the Modify
action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata
, Properties
, or Tags
.
private SdkInternalList<ResourceChangeDetail> details
For the Modify
action, a list of
ResourceChangeDetail
structures that describes the changes
that AWS CloudFormation will make to the resource.
public void setAction(java.lang.String action)
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a
resource), or Remove
(deletes a resource).
action
- The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a resource), or Remove
(deletes a resource).ChangeAction
public java.lang.String getAction()
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a
resource), or Remove
(deletes a resource).
Add
(adds a new resource), Modify
(changes a resource), or Remove
(deletes a
resource).ChangeAction
public ResourceChange withAction(java.lang.String action)
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a
resource), or Remove
(deletes a resource).
action
- The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a resource), or Remove
(deletes a resource).ChangeAction
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), or Remove
(deletes a resource).
action
- The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a resource), or Remove
(deletes a resource).ChangeAction
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), or Remove
(deletes a resource).
action
- The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource), Modify
(changes a resource), or Remove
(deletes a resource).ChangeAction
public void setLogicalResourceId(java.lang.String logicalResourceId)
The resource's logical ID, which is defined in the stack's template.
logicalResourceId
- The resource's logical ID, which is defined in the stack's
template.public java.lang.String getLogicalResourceId()
The resource's logical ID, which is defined in the stack's template.
public ResourceChange withLogicalResourceId(java.lang.String logicalResourceId)
The resource's logical ID, which is defined in the stack's template.
logicalResourceId
- The resource's logical ID, which is defined in the stack's
template.public void setPhysicalResourceId(java.lang.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.
physicalResourceId
- The resource's physical ID (resource name). Resources that you are
adding don't have physical IDs because they haven't been created.public java.lang.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.
public ResourceChange withPhysicalResourceId(java.lang.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.
physicalResourceId
- The resource's physical ID (resource name). Resources that you are
adding don't have physical IDs because they haven't been created.public void setResourceType(java.lang.String resourceType)
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.
resourceType
- The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.public java.lang.String getResourceType()
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.
AWS::S3::Bucket
.public ResourceChange withResourceType(java.lang.String resourceType)
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.
resourceType
- The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.public void setReplacement(java.lang.String replacement)
For the Modify
action, 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 the RequiresRecreation
property in the ResourceTargetDefinition
structure. For
example, if the RequiresRecreation
field is
Always
and the Evaluation
field is
Static
, Replacement
is True
. If
the RequiresRecreation
field is Always
and the
Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the Replacement
value depends on the change with the most impact. A
RequiresRecreation
value of Always
has the most
impact, followed by Conditionally
, and then
Never
.
replacement
- For the Modify
action, 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 the
RequiresRecreation
property in the
ResourceTargetDefinition
structure. For example, if
the RequiresRecreation
field is Always
and the Evaluation
field is Static
,
Replacement
is True
. If the
RequiresRecreation
field is Always
and
the Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the
Replacement
value depends on the change with the most
impact. A RequiresRecreation
value of
Always
has the most impact, followed by
Conditionally
, and then Never
.
Replacement
public java.lang.String getReplacement()
For the Modify
action, 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 the RequiresRecreation
property in the ResourceTargetDefinition
structure. For
example, if the RequiresRecreation
field is
Always
and the Evaluation
field is
Static
, Replacement
is True
. If
the RequiresRecreation
field is Always
and the
Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the Replacement
value depends on the change with the most impact. A
RequiresRecreation
value of Always
has the most
impact, followed by Conditionally
, and then
Never
.
Modify
action, 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 the
RequiresRecreation
property in the
ResourceTargetDefinition
structure. For example, if
the RequiresRecreation
field is Always
and the Evaluation
field is Static
,
Replacement
is True
. If the
RequiresRecreation
field is Always
and
the Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the
Replacement
value depends on the change with the
most impact. A RequiresRecreation
value of
Always
has the most impact, followed by
Conditionally
, and then Never
.
Replacement
public ResourceChange withReplacement(java.lang.String replacement)
For the Modify
action, 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 the RequiresRecreation
property in the ResourceTargetDefinition
structure. For
example, if the RequiresRecreation
field is
Always
and the Evaluation
field is
Static
, Replacement
is True
. If
the RequiresRecreation
field is Always
and the
Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the Replacement
value depends on the change with the most impact. A
RequiresRecreation
value of Always
has the most
impact, followed by Conditionally
, and then
Never
.
replacement
- For the Modify
action, 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 the
RequiresRecreation
property in the
ResourceTargetDefinition
structure. For example, if
the RequiresRecreation
field is Always
and the Evaluation
field is Static
,
Replacement
is True
. If the
RequiresRecreation
field is Always
and
the Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the
Replacement
value depends on the change with the most
impact. A RequiresRecreation
value of
Always
has the most impact, followed by
Conditionally
, and then Never
.
Replacement
public void setReplacement(Replacement replacement)
For the Modify
action, 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 the RequiresRecreation
property in the ResourceTargetDefinition
structure. For
example, if the RequiresRecreation
field is
Always
and the Evaluation
field is
Static
, Replacement
is True
. If
the RequiresRecreation
field is Always
and the
Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the Replacement
value depends on the change with the most impact. A
RequiresRecreation
value of Always
has the most
impact, followed by Conditionally
, and then
Never
.
replacement
- For the Modify
action, 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 the
RequiresRecreation
property in the
ResourceTargetDefinition
structure. For example, if
the RequiresRecreation
field is Always
and the Evaluation
field is Static
,
Replacement
is True
. If the
RequiresRecreation
field is Always
and
the Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the
Replacement
value depends on the change with the most
impact. A RequiresRecreation
value of
Always
has the most impact, followed by
Conditionally
, and then Never
.
Replacement
public ResourceChange withReplacement(Replacement replacement)
For the Modify
action, 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 the RequiresRecreation
property in the ResourceTargetDefinition
structure. For
example, if the RequiresRecreation
field is
Always
and the Evaluation
field is
Static
, Replacement
is True
. If
the RequiresRecreation
field is Always
and the
Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the Replacement
value depends on the change with the most impact. A
RequiresRecreation
value of Always
has the most
impact, followed by Conditionally
, and then
Never
.
replacement
- For the Modify
action, 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 the
RequiresRecreation
property in the
ResourceTargetDefinition
structure. For example, if
the RequiresRecreation
field is Always
and the Evaluation
field is Static
,
Replacement
is True
. If the
RequiresRecreation
field is Always
and
the Evaluation
field is Dynamic
,
Replacement
is Conditionally
.
If you have multiple changes with different
RequiresRecreation
values, the
Replacement
value depends on the change with the most
impact. A RequiresRecreation
value of
Always
has the most impact, followed by
Conditionally
, and then Never
.
Replacement
public java.util.List<java.lang.String> getScope()
For the Modify
action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata
, Properties
, or Tags
.
Modify
action, indicates which resource
attribute is triggering this update, such as a change in the
resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public void setScope(java.util.Collection<java.lang.String> scope)
For the Modify
action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata
, Properties
, or Tags
.
scope
- For the Modify
action, indicates which resource
attribute is triggering this update, such as a change in the
resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public ResourceChange withScope(java.lang.String... scope)
For the Modify
action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata
, Properties
, or Tags
.
NOTE: This method appends the values to the existing list (if
any). Use setScope(java.util.Collection)
or
withScope(java.util.Collection)
if you want to override the
existing values.
scope
- For the Modify
action, indicates which resource
attribute is triggering this update, such as a change in the
resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public ResourceChange withScope(java.util.Collection<java.lang.String> scope)
For the Modify
action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata
, Properties
, or Tags
.
scope
- For the Modify
action, indicates which resource
attribute is triggering this update, such as a change in the
resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public ResourceChange withScope(ResourceAttribute... scope)
For the Modify
action, indicates which resource attribute is
triggering this update, such as a change in the resource attribute's
Metadata
, Properties
, or Tags
.
scope
- For the Modify
action, indicates which resource
attribute is triggering this update, such as a change in the
resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public java.util.List<ResourceChangeDetail> getDetails()
For the Modify
action, a list of
ResourceChangeDetail
structures that describes the changes
that AWS CloudFormation will make to the resource.
Modify
action, a list of
ResourceChangeDetail
structures that describes the
changes that AWS CloudFormation will make to the resource.public void setDetails(java.util.Collection<ResourceChangeDetail> details)
For the Modify
action, a list of
ResourceChangeDetail
structures that describes the changes
that AWS CloudFormation will make to the resource.
details
- For the Modify
action, a list of
ResourceChangeDetail
structures that describes the
changes that AWS CloudFormation will make to the resource.public ResourceChange withDetails(ResourceChangeDetail... details)
For the Modify
action, a list of
ResourceChangeDetail
structures 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)
or
withDetails(java.util.Collection)
if you want to override the
existing values.
details
- For the Modify
action, a list of
ResourceChangeDetail
structures that describes the
changes that AWS CloudFormation will make to the resource.public ResourceChange withDetails(java.util.Collection<ResourceChangeDetail> details)
For the Modify
action, a list of
ResourceChangeDetail
structures that describes the changes
that AWS CloudFormation will make to the resource.
details
- For the Modify
action, a list of
ResourceChangeDetail
structures that describes the
changes that AWS CloudFormation will make to the resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ResourceChange clone()
clone
in class java.lang.Object