StructuredPojo
, ToCopyableBuilder<Attribute.Builder,Attribute>
@Generated("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 | Description |
---|---|---|
static interface |
Attribute.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Attribute.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
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.
|
String |
targetType() |
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.
|
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 String 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).
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.