@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) |
<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, wait
copy
public String name()
The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and periods are allowed.
public String value()
The value of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, colons, and spaces are allowed.
public 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()
.
TargetType
public 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()
.
TargetType
public 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 String toString()
Copyright © 2019. All rights reserved.