@Generated(value="software.amazon.awssdk:codegen") public final class KeyValuePair extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KeyValuePair.Builder,KeyValuePair>
A key-value pair object.
Modifier and Type | Class and Description |
---|---|
static interface |
KeyValuePair.Builder |
Modifier and Type | Method and Description |
---|---|
static KeyValuePair.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the key-value pair.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends KeyValuePair.Builder> |
serializableBuilderClass() |
KeyValuePair.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value of the key-value pair.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String name()
The name of the key-value pair. For environment variables, this is the name of the environment variable.
public String value()
The value of the key-value pair. For environment variables, this is the value of the environment variable.
public KeyValuePair.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<KeyValuePair.Builder,KeyValuePair>
public static KeyValuePair.Builder builder()
public static Class<? extends KeyValuePair.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.