@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhysicalResourceIdContextKeyValuePair extends Object implements Serializable, Cloneable
Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a resource that contains the targeted resource.
Constructor and Description |
---|
PhysicalResourceIdContextKeyValuePair() |
Modifier and Type | Method and Description |
---|---|
PhysicalResourceIdContextKeyValuePair |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The resource context key.
|
String |
getValue()
The resource context value.
|
int |
hashCode() |
void |
setKey(String key)
The resource context key.
|
void |
setValue(String value)
The resource context value.
|
String |
toString()
Returns a string representation of this object.
|
PhysicalResourceIdContextKeyValuePair |
withKey(String key)
The resource context key.
|
PhysicalResourceIdContextKeyValuePair |
withValue(String value)
The resource context value.
|
public PhysicalResourceIdContextKeyValuePair()
public void setKey(String key)
The resource context key.
key
- The resource context key.public String getKey()
The resource context key.
public PhysicalResourceIdContextKeyValuePair withKey(String key)
The resource context key.
key
- The resource context key.public void setValue(String value)
The resource context value.
value
- The resource context value.public String getValue()
The resource context value.
public PhysicalResourceIdContextKeyValuePair withValue(String value)
The resource context value.
value
- The resource context value.public String toString()
toString
in class Object
Object.toString()
public PhysicalResourceIdContextKeyValuePair clone()