@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceChange extends Object implements Serializable, Cloneable, StructuredPojo
Information about a resource change that will occur when a plan is executed.
Constructor and Description |
---|
ResourceChange() |
Modifier and Type | Method and Description |
---|---|
ResourceChange |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The change action.
|
List<ResourceChangeDetail> |
getDetails()
Information about the resource changes.
|
String |
getLogicalResourceId()
The ID of the resource, as defined in the CloudFormation template.
|
String |
getPhysicalResourceId()
The ID of the resource, if it was already created.
|
String |
getReplacement()
If the change type is
Modify , indicates whether the existing resource is deleted and replaced with a
new one. |
String |
getResourceType()
The type of resource.
|
List<String> |
getScope()
The change scope.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
The change action.
|
void |
setDetails(Collection<ResourceChangeDetail> details)
Information about the resource changes.
|
void |
setLogicalResourceId(String logicalResourceId)
The ID of the resource, as defined in the CloudFormation template.
|
void |
setPhysicalResourceId(String physicalResourceId)
The ID of the resource, if it was already created.
|
void |
setReplacement(String replacement)
If the change type is
Modify , indicates whether the existing resource is deleted and replaced with a
new one. |
void |
setResourceType(String resourceType)
The type of resource.
|
void |
setScope(Collection<String> scope)
The change scope.
|
String |
toString()
Returns a string representation of this object.
|
ResourceChange |
withAction(ChangeAction action)
The change action.
|
ResourceChange |
withAction(String action)
The change action.
|
ResourceChange |
withDetails(Collection<ResourceChangeDetail> details)
Information about the resource changes.
|
ResourceChange |
withDetails(ResourceChangeDetail... details)
Information about the resource changes.
|
ResourceChange |
withLogicalResourceId(String logicalResourceId)
The ID of the resource, as defined in the CloudFormation template.
|
ResourceChange |
withPhysicalResourceId(String physicalResourceId)
The ID of the resource, if it was already created.
|
ResourceChange |
withReplacement(Replacement replacement)
If the change type is
Modify , indicates whether the existing resource is deleted and replaced with a
new one. |
ResourceChange |
withReplacement(String replacement)
If the change type is
Modify , indicates whether the existing resource is deleted and replaced with a
new one. |
ResourceChange |
withResourceType(String resourceType)
The type of resource.
|
ResourceChange |
withScope(Collection<String> scope)
The change scope.
|
ResourceChange |
withScope(ResourceAttribute... scope)
The change scope.
|
ResourceChange |
withScope(String... scope)
The change scope.
|
public void setAction(String action)
The change action.
action
- The change action.ChangeAction
public String getAction()
The change action.
ChangeAction
public ResourceChange withAction(String action)
The change action.
action
- The change action.ChangeAction
public ResourceChange withAction(ChangeAction action)
The change action.
action
- The change action.ChangeAction
public void setLogicalResourceId(String logicalResourceId)
The ID of the resource, as defined in the CloudFormation template.
logicalResourceId
- The ID of the resource, as defined in the CloudFormation template.public String getLogicalResourceId()
The ID of the resource, as defined in the CloudFormation template.
public ResourceChange withLogicalResourceId(String logicalResourceId)
The ID of the resource, as defined in the CloudFormation template.
logicalResourceId
- The ID of the resource, as defined in the CloudFormation template.public void setPhysicalResourceId(String physicalResourceId)
The ID of the resource, if it was already created.
physicalResourceId
- The ID of the resource, if it was already created.public String getPhysicalResourceId()
The ID of the resource, if it was already created.
public ResourceChange withPhysicalResourceId(String physicalResourceId)
The ID of the resource, if it was already created.
physicalResourceId
- The ID of the resource, if it was already created.public void setResourceType(String resourceType)
The type of resource.
resourceType
- The type of resource.public String getResourceType()
The type of resource.
public ResourceChange withResourceType(String resourceType)
The type of resource.
resourceType
- The type of resource.public void setReplacement(String replacement)
If the change type is Modify
, indicates whether the existing resource is deleted and replaced with a
new one.
replacement
- If the change type is Modify
, indicates whether the existing resource is deleted and replaced
with a new one.Replacement
public String getReplacement()
If the change type is Modify
, indicates whether the existing resource is deleted and replaced with a
new one.
Modify
, indicates whether the existing resource is deleted and
replaced with a new one.Replacement
public ResourceChange withReplacement(String replacement)
If the change type is Modify
, indicates whether the existing resource is deleted and replaced with a
new one.
replacement
- If the change type is Modify
, indicates whether the existing resource is deleted and replaced
with a new one.Replacement
public ResourceChange withReplacement(Replacement replacement)
If the change type is Modify
, indicates whether the existing resource is deleted and replaced with a
new one.
replacement
- If the change type is Modify
, indicates whether the existing resource is deleted and replaced
with a new one.Replacement
public List<String> getScope()
The change scope.
ResourceAttribute
public void setScope(Collection<String> scope)
The change scope.
scope
- The change scope.ResourceAttribute
public ResourceChange withScope(String... scope)
The change scope.
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
- The change scope.ResourceAttribute
public ResourceChange withScope(Collection<String> scope)
The change scope.
scope
- The change scope.ResourceAttribute
public ResourceChange withScope(ResourceAttribute... scope)
The change scope.
scope
- The change scope.ResourceAttribute
public List<ResourceChangeDetail> getDetails()
Information about the resource changes.
public void setDetails(Collection<ResourceChangeDetail> details)
Information about the resource changes.
details
- Information about the resource changes.public ResourceChange withDetails(ResourceChangeDetail... details)
Information about the resource changes.
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
- Information about the resource changes.public ResourceChange withDetails(Collection<ResourceChangeDetail> details)
Information about the resource changes.
details
- Information about the resource changes.public String toString()
toString
in class Object
Object.toString()
public ResourceChange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.