@Generated(value="software.amazon.awssdk:codegen") public final class Attribute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Attribute.Builder,Attribute>
An attribute is a name-value pair associated with an Amazon ECS object. Attributes enable you to extend the Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Attribute.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Attribute.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 attribute.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Attribute.Builder> |
serializableBuilderClass() |
String |
targetId()
The ID of the target.
|
TargetType |
targetType()
The type of the target with which to attach the attribute.
|
String |
targetTypeAsString()
The type of the target with which to attach the attribute.
|
Attribute.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value of the attribute.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the attribute. The name must contain between 1 and 128 characters and name may contain
letters (uppercase and lowercase), numbers, hyphens, underscores, forward slashes, back slashes, or periods.
name must contain between 1 and 128 characters and name may
contain letters (uppercase and lowercase), numbers, hyphens, underscores, forward slashes, back slashes,
or periods.public final String value()
The value of the attribute. The value must contain between 1 and 128 characters and may contain
letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, back
slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.
value must contain between 1 and 128 characters and may
contain letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward
slashes, back slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.public final TargetType targetType()
The type of the target with which to attach the attribute. This parameter is required if you use the short form ID for a resource instead of the full ARN.
If the service returns an enum value that is not available in the current SDK version, targetType will
return TargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
targetTypeAsString().
TargetTypepublic final String targetTypeAsString()
The type of the target with which to attach the attribute. This parameter is required if you use the short form ID for a resource instead of the full ARN.
If the service returns an enum value that is not available in the current SDK version, targetType will
return TargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
targetTypeAsString().
TargetTypepublic final String targetId()
The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).
public Attribute.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Attribute.Builder,Attribute>public static Attribute.Builder builder()
public static Class<? extends Attribute.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.