@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Attribute extends Object implements Serializable, Cloneable, StructuredPojo
An attribute is a name-value pair that's associated with an Amazon ECS object. Use attributes 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.
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the attribute.
|
String |
getTargetId()
The ID of the target.
|
String |
getTargetType()
The type of the target to attach the attribute with.
|
String |
getValue()
The value of the attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the attribute.
|
void |
setTargetId(String targetId)
The ID of the target.
|
void |
setTargetType(String targetType)
The type of the target to attach the attribute with.
|
void |
setTargetType(TargetType targetType)
The type of the target to attach the attribute with.
|
void |
setValue(String value)
The value of the attribute.
|
String |
toString()
Returns a string representation of this object.
|
Attribute |
withName(String name)
The name of the attribute.
|
Attribute |
withTargetId(String targetId)
The ID of the target.
|
Attribute |
withTargetType(String targetType)
The type of the target to attach the attribute with.
|
Attribute |
withTargetType(TargetType targetType)
The type of the target to attach the attribute with.
|
Attribute |
withValue(String value)
The value of the attribute.
|
public void setName(String name)
The name of the attribute. The name
must contain between 1 and 128 characters. The name may contain
letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\),
or periods (.).
name
- The name of the attribute. The name
must contain between 1 and 128 characters. The name may
contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/),
back slashes (\), or periods (.).public String getName()
The name of the attribute. The name
must contain between 1 and 128 characters. The name may contain
letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\),
or periods (.).
name
must contain between 1 and 128 characters. The name may
contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/),
back slashes (\), or periods (.).public Attribute withName(String name)
The name of the attribute. The name
must contain between 1 and 128 characters. The name may contain
letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\),
or periods (.).
name
- The name of the attribute. The name
must contain between 1 and 128 characters. The name may
contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/),
back slashes (\), or periods (.).public void setValue(String value)
The value of the attribute. The value
must contain between 1 and 128 characters. It can contain
letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward
slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.
value
- The value of the attribute. The value
must contain between 1 and 128 characters. It can
contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs
(@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a
space.public String getValue()
The value of the attribute. The value
must contain between 1 and 128 characters. It can contain
letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward
slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.
value
must contain between 1 and 128 characters. It can
contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs
(@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a
space.public Attribute withValue(String value)
The value of the attribute. The value
must contain between 1 and 128 characters. It can contain
letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward
slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a space.
value
- The value of the attribute. The value
must contain between 1 and 128 characters. It can
contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs
(@), forward slashes (/), back slashes (\), colons (:), or spaces. The value can't start or end with a
space.public void setTargetType(String targetType)
The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.
targetType
- The type of the target to attach the attribute with. This parameter is required if you use the short form
ID for a resource instead of the full ARN.TargetType
public String getTargetType()
The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.
TargetType
public Attribute withTargetType(String targetType)
The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.
targetType
- The type of the target to attach the attribute with. This parameter is required if you use the short form
ID for a resource instead of the full ARN.TargetType
public void setTargetType(TargetType targetType)
The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.
targetType
- The type of the target to attach the attribute with. This parameter is required if you use the short form
ID for a resource instead of the full ARN.TargetType
public Attribute withTargetType(TargetType targetType)
The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN.
targetType
- The type of the target to attach the attribute with. This parameter is required if you use the short form
ID for a resource instead of the full ARN.TargetType
public void setTargetId(String targetId)
The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).
targetId
- The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name
(ARN).public String getTargetId()
The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).
public Attribute withTargetId(String targetId)
The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN).
targetId
- The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name
(ARN).public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.