@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListLinksItem extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains information about one of this source account's links to a monitoring account.
Constructor and Description |
---|
ListLinksItem() |
Modifier and Type | Method and Description |
---|---|
ListLinksItem |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the link.
|
String |
getId()
The random ID string that Amazon Web Services generated as part of the link ARN.
|
String |
getLabel()
The label that was assigned to this link at creation, with the variables resolved to their actual values.
|
List<String> |
getResourceTypes()
The resource types supported by this link.
|
String |
getSinkArn()
The ARN of the sink that this link is attached to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the link.
|
void |
setId(String id)
The random ID string that Amazon Web Services generated as part of the link ARN.
|
void |
setLabel(String label)
The label that was assigned to this link at creation, with the variables resolved to their actual values.
|
void |
setResourceTypes(Collection<String> resourceTypes)
The resource types supported by this link.
|
void |
setSinkArn(String sinkArn)
The ARN of the sink that this link is attached to.
|
String |
toString()
Returns a string representation of this object.
|
ListLinksItem |
withArn(String arn)
The ARN of the link.
|
ListLinksItem |
withId(String id)
The random ID string that Amazon Web Services generated as part of the link ARN.
|
ListLinksItem |
withLabel(String label)
The label that was assigned to this link at creation, with the variables resolved to their actual values.
|
ListLinksItem |
withResourceTypes(Collection<String> resourceTypes)
The resource types supported by this link.
|
ListLinksItem |
withResourceTypes(String... resourceTypes)
The resource types supported by this link.
|
ListLinksItem |
withSinkArn(String sinkArn)
The ARN of the sink that this link is attached to.
|
public void setArn(String arn)
The ARN of the link.
arn
- The ARN of the link.public String getArn()
The ARN of the link.
public ListLinksItem withArn(String arn)
The ARN of the link.
arn
- The ARN of the link.public void setId(String id)
The random ID string that Amazon Web Services generated as part of the link ARN.
id
- The random ID string that Amazon Web Services generated as part of the link ARN.public String getId()
The random ID string that Amazon Web Services generated as part of the link ARN.
public ListLinksItem withId(String id)
The random ID string that Amazon Web Services generated as part of the link ARN.
id
- The random ID string that Amazon Web Services generated as part of the link ARN.public void setLabel(String label)
The label that was assigned to this link at creation, with the variables resolved to their actual values.
label
- The label that was assigned to this link at creation, with the variables resolved to their actual values.public String getLabel()
The label that was assigned to this link at creation, with the variables resolved to their actual values.
public ListLinksItem withLabel(String label)
The label that was assigned to this link at creation, with the variables resolved to their actual values.
label
- The label that was assigned to this link at creation, with the variables resolved to their actual values.public List<String> getResourceTypes()
The resource types supported by this link.
public void setResourceTypes(Collection<String> resourceTypes)
The resource types supported by this link.
resourceTypes
- The resource types supported by this link.public ListLinksItem withResourceTypes(String... resourceTypes)
The resource types supported by this link.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypes(java.util.Collection)
or withResourceTypes(java.util.Collection)
if you want
to override the existing values.
resourceTypes
- The resource types supported by this link.public ListLinksItem withResourceTypes(Collection<String> resourceTypes)
The resource types supported by this link.
resourceTypes
- The resource types supported by this link.public void setSinkArn(String sinkArn)
The ARN of the sink that this link is attached to.
sinkArn
- The ARN of the sink that this link is attached to.public String getSinkArn()
The ARN of the sink that this link is attached to.
public ListLinksItem withSinkArn(String sinkArn)
The ARN of the sink that this link is attached to.
sinkArn
- The ARN of the sink that this link is attached to.public String toString()
toString
in class Object
Object.toString()
public ListLinksItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.