@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 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.
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 with which to attach the attribute.
|
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 with which to attach the attribute.
|
void |
setTargetType(TargetType targetType)
The type of the target with which to attach the attribute.
|
void |
setValue(String value)
The value of the attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 with which to attach the attribute.
|
Attribute |
withTargetType(TargetType targetType)
The type of the target with which to attach the attribute.
|
Attribute |
withValue(String value)
The value of the attribute.
|
public void setName(String name)
The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and periods are allowed.
name
- The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and
periods are allowed.public String getName()
The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and periods are allowed.
public Attribute withName(String name)
The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and periods are allowed.
name
- The name of the attribute. Up to 128 letters (uppercase and lowercase), numbers, hyphens, underscores, and
periods are allowed.public void setValue(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.
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 getValue()
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 Attribute withValue(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.
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 void setTargetType(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
- 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 getTargetType()
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 Attribute withTargetType(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
- 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 void setTargetType(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).
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 Attribute withTargetType(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).
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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.