Class KeyValue
- java.lang.Object
-
- software.amazon.awssdk.services.backup.model.KeyValue
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<KeyValue.Builder,KeyValue>
@Generated("software.amazon.awssdk:codegen") public final class KeyValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KeyValue.Builder,KeyValue>
Pair of two related strings. Allowed characters are letters, white space, and numbers that can be represented in UTF-8 and the following characters:
+ - = . _ : /- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKeyValue.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyValue.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The tag key (String).List<SdkField<?>>sdkFields()static Class<? extends KeyValue.Builder>serializableBuilderClass()KeyValue.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The value of the key.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
key
public final 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}_.:/=+\-@]+)$- Returns:
- 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}_.:/=+\-@]+)$
-
value
public final String value()
The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$- Returns:
- The value of the key.
Length Constraints: Maximum length of 256.
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
-
toBuilder
public KeyValue.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<KeyValue.Builder,KeyValue>
-
builder
public static KeyValue.Builder builder()
-
serializableBuilderClass
public static Class<? extends KeyValue.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-