@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyValue extends Object implements Serializable, Cloneable, StructuredPojo
Pair of two related strings. Allowed characters are letters, white space, and numbers that can be represented in
UTF-8 and the following characters: + - = . _ : /
Constructor and Description |
---|
KeyValue() |
Modifier and Type | Method and Description |
---|---|
KeyValue |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key (String).
|
String |
getValue()
The value of the key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The tag key (String).
|
void |
setValue(String value)
The value of the key.
|
String |
toString()
Returns a string representation of this object.
|
KeyValue |
withKey(String key)
The tag key (String).
|
KeyValue |
withValue(String value)
The value of the key.
|
public void setKey(String key)
The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$
key
- The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$
public String getKey()
The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$
aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$
public KeyValue withKey(String key)
The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$
key
- The tag key (String). The key can't start with aws:
.
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$
public void setValue(String value)
The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
value
- The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
public String getValue()
The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
Length Constraints: Maximum length of 256.
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
public KeyValue withValue(String value)
The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
value
- The value of the key.
Length Constraints: Maximum length of 256.
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.