public class ResourceTargetDefinition
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The field that AWS CloudFormation will change, such as the name of a resource's property, and whether the resource will be recreated.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute
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 |
name
If the
Attribute value is Properties , the name
of the property. |
private java.lang.String |
requiresRecreation
If the
Attribute value is Properties , indicates
whether a change to this property causes the resource to be recreated. |
Constructor and Description |
---|
ResourceTargetDefinition() |
Modifier and Type | Method and Description |
---|---|
ResourceTargetDefinition |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's
Metadata ,
Properties , or Tags . |
java.lang.String |
getName()
If the
Attribute value is Properties , the name
of the property. |
java.lang.String |
getRequiresRecreation()
If the
Attribute value is Properties , indicates
whether a change to this property causes the resource to be recreated. |
int |
hashCode() |
void |
setAttribute(ResourceAttribute attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's
Metadata ,
Properties , or Tags . |
void |
setAttribute(java.lang.String attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's
Metadata ,
Properties , or Tags . |
void |
setName(java.lang.String name)
If the
Attribute value is Properties , the name
of the property. |
void |
setRequiresRecreation(RequiresRecreation requiresRecreation)
If the
Attribute value is Properties , indicates
whether a change to this property causes the resource to be recreated. |
void |
setRequiresRecreation(java.lang.String requiresRecreation)
If the
Attribute value is Properties , indicates
whether a change to this property causes the resource to be recreated. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceTargetDefinition |
withAttribute(ResourceAttribute attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's
Metadata ,
Properties , or Tags . |
ResourceTargetDefinition |
withAttribute(java.lang.String attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's
Metadata ,
Properties , or Tags . |
ResourceTargetDefinition |
withName(java.lang.String name)
If the
Attribute value is Properties , the name
of the property. |
ResourceTargetDefinition |
withRequiresRecreation(RequiresRecreation requiresRecreation)
If the
Attribute value is Properties , indicates
whether a change to this property causes the resource to be recreated. |
ResourceTargetDefinition |
withRequiresRecreation(java.lang.String requiresRecreation)
If the
Attribute value is Properties , indicates
whether a change to this property causes the resource to be recreated. |
private java.lang.String attribute
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 name
If the Attribute
value is Properties
, the name
of the property. For all other attributes, the value is null.
private java.lang.String requiresRecreation
If the Attribute
value is Properties
, indicates
whether a change to this property causes the resource to be recreated.
The value can be Never
, Always
, or
Conditionally
. To determine the conditions for a
Conditionally
recreation, see the update behavior for that
property in the AWS CloudFormation User Guide.
public void setAttribute(java.lang.String attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's Metadata
,
Properties
, or Tags
.
attribute
- Indicates which resource attribute is triggering this update, such
as a change in the resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public java.lang.String getAttribute()
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's Metadata
,
Properties
, or Tags
.
Metadata
, Properties
, or
Tags
.ResourceAttribute
public ResourceTargetDefinition withAttribute(java.lang.String attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's Metadata
,
Properties
, or Tags
.
attribute
- Indicates which resource attribute is triggering this update, such
as a change in the resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public void setAttribute(ResourceAttribute attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's Metadata
,
Properties
, or Tags
.
attribute
- Indicates which resource attribute is triggering this update, such
as a change in the resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public ResourceTargetDefinition withAttribute(ResourceAttribute attribute)
Indicates which resource attribute is triggering this update, such as a
change in the resource attribute's Metadata
,
Properties
, or Tags
.
attribute
- Indicates which resource attribute is triggering this update, such
as a change in the resource attribute's Metadata
,
Properties
, or Tags
.ResourceAttribute
public void setName(java.lang.String name)
If the Attribute
value is Properties
, the name
of the property. For all other attributes, the value is null.
name
- If the Attribute
value is Properties
,
the name of the property. For all other attributes, the value is
null.public java.lang.String getName()
If the Attribute
value is Properties
, the name
of the property. For all other attributes, the value is null.
Attribute
value is Properties
,
the name of the property. For all other attributes, the value is
null.public ResourceTargetDefinition withName(java.lang.String name)
If the Attribute
value is Properties
, the name
of the property. For all other attributes, the value is null.
name
- If the Attribute
value is Properties
,
the name of the property. For all other attributes, the value is
null.public void setRequiresRecreation(java.lang.String requiresRecreation)
If the Attribute
value is Properties
, indicates
whether a change to this property causes the resource to be recreated.
The value can be Never
, Always
, or
Conditionally
. To determine the conditions for a
Conditionally
recreation, see the update behavior for that
property in the AWS CloudFormation User Guide.
requiresRecreation
- If the Attribute
value is Properties
,
indicates whether a change to this property causes the resource to
be recreated. The value can be Never
,
Always
, or Conditionally
. To determine
the conditions for a Conditionally
recreation, see
the update behavior for that property in the AWS CloudFormation User Guide.RequiresRecreation
public java.lang.String getRequiresRecreation()
If the Attribute
value is Properties
, indicates
whether a change to this property causes the resource to be recreated.
The value can be Never
, Always
, or
Conditionally
. To determine the conditions for a
Conditionally
recreation, see the update behavior for that
property in the AWS CloudFormation User Guide.
Attribute
value is Properties
,
indicates whether a change to this property causes the resource
to be recreated. The value can be Never
,
Always
, or Conditionally
. To determine
the conditions for a Conditionally
recreation, see
the update behavior for that property in the AWS CloudFormation User Guide.RequiresRecreation
public ResourceTargetDefinition withRequiresRecreation(java.lang.String requiresRecreation)
If the Attribute
value is Properties
, indicates
whether a change to this property causes the resource to be recreated.
The value can be Never
, Always
, or
Conditionally
. To determine the conditions for a
Conditionally
recreation, see the update behavior for that
property in the AWS CloudFormation User Guide.
requiresRecreation
- If the Attribute
value is Properties
,
indicates whether a change to this property causes the resource to
be recreated. The value can be Never
,
Always
, or Conditionally
. To determine
the conditions for a Conditionally
recreation, see
the update behavior for that property in the AWS CloudFormation User Guide.RequiresRecreation
public void setRequiresRecreation(RequiresRecreation requiresRecreation)
If the Attribute
value is Properties
, indicates
whether a change to this property causes the resource to be recreated.
The value can be Never
, Always
, or
Conditionally
. To determine the conditions for a
Conditionally
recreation, see the update behavior for that
property in the AWS CloudFormation User Guide.
requiresRecreation
- If the Attribute
value is Properties
,
indicates whether a change to this property causes the resource to
be recreated. The value can be Never
,
Always
, or Conditionally
. To determine
the conditions for a Conditionally
recreation, see
the update behavior for that property in the AWS CloudFormation User Guide.RequiresRecreation
public ResourceTargetDefinition withRequiresRecreation(RequiresRecreation requiresRecreation)
If the Attribute
value is Properties
, indicates
whether a change to this property causes the resource to be recreated.
The value can be Never
, Always
, or
Conditionally
. To determine the conditions for a
Conditionally
recreation, see the update behavior for that
property in the AWS CloudFormation User Guide.
requiresRecreation
- If the Attribute
value is Properties
,
indicates whether a change to this property causes the resource to
be recreated. The value can be Never
,
Always
, or Conditionally
. To determine
the conditions for a Conditionally
recreation, see
the update behavior for that property in the AWS CloudFormation User Guide.RequiresRecreation
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 ResourceTargetDefinition clone()
clone
in class java.lang.Object