@Generated(value="software.amazon.awssdk:codegen") public class Attribute extends Object implements StructuredPojo, 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 EC2 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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of the attribute.
|
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 |
targetTypeString()
The type of the target with which to attach the attribute.
|
Attribute.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
The value of the attribute.
|
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 Amazon Resource Name (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
targetTypeString()
.
TargetType
public String targetTypeString()
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 Amazon Resource Name (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
targetTypeString()
.
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Attribute.Builder,Attribute>
public static Attribute.Builder builder()
public static Class<? extends Attribute.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.