Class S3ObjectTag
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.S3ObjectTag
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<S3ObjectTag.Builder,S3ObjectTag>
@Generated("software.amazon.awssdk:codegen") public final class S3ObjectTag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3ObjectTag.Builder,S3ObjectTag>
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket. For more information, see Categorizing your storage using tags in the Amazon Simple Storage Service User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
S3ObjectTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3ObjectTag.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
key()
The key of the tag.List<SdkField<?>>
sdkFields()
static Class<? extends S3ObjectTag.Builder>
serializableBuilderClass()
S3ObjectTag.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
value()
The value of the tag.-
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 key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin with
aws
:.- Returns:
- The key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin with
aws
:.
-
value
public final String value()
The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
- Returns:
- The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
-
toBuilder
public S3ObjectTag.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<S3ObjectTag.Builder,S3ObjectTag>
-
builder
public static S3ObjectTag.Builder builder()
-
serializableBuilderClass
public static Class<? extends S3ObjectTag.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-