@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 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 with which to attach the attribute.
|
String |
getValue()
The value of the attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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.
|
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. The name
must contain between 1 and 128 characters and 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 and 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 and name may contain
letters (uppercase and lowercase), numbers, hyphens, underscores, forward slashes, back slashes, or periods.
name
must contain between 1 and 128 characters and 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 and 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 and 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 and may contain
letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, back
slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.
value
- The value of the attribute. The value
must contain between 1 and 128 characters and may
contain letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward
slashes, back slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.public String getValue()
The value of the attribute. The value
must contain between 1 and 128 characters and may contain
letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, back
slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.
value
must contain between 1 and 128 characters and may
contain letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward
slashes, back slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.public Attribute withValue(String value)
The value of the attribute. The value
must contain between 1 and 128 characters and may contain
letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward slashes, back
slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.
value
- The value of the attribute. The value
must contain between 1 and 128 characters and may
contain letters (uppercase and lowercase), numbers, hyphens, underscores, periods, at signs (@), forward
slashes, back slashes, colons, or spaces. The value cannot contain any leading or trailing whitespace.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 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 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 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 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 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 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 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 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 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)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.