@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetLinkResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetLinkResult() |
Modifier and Type | Method and Description |
---|---|
GetLinkResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
GetLinkResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
GetLinkResult |
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 you assigned to this link, with the variables resolved to their actual values.
|
String |
getLabelTemplate()
The exact label template that was specified when the link was created, with the template variables not resolved.
|
LinkConfiguration |
getLinkConfiguration()
This structure includes filters that specify which metric namespaces and which log groups are shared from the
source account to the monitoring account.
|
List<String> |
getResourceTypes()
The resource types supported by this link.
|
String |
getSinkArn()
The ARN of the sink that is used for this link.
|
Map<String,String> |
getTags()
The tags assigned to the link.
|
int |
hashCode() |
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 you assigned to this link, with the variables resolved to their actual values.
|
void |
setLabelTemplate(String labelTemplate)
The exact label template that was specified when the link was created, with the template variables not resolved.
|
void |
setLinkConfiguration(LinkConfiguration linkConfiguration)
This structure includes filters that specify which metric namespaces and which log groups are shared from the
source account to the monitoring account.
|
void |
setResourceTypes(Collection<String> resourceTypes)
The resource types supported by this link.
|
void |
setSinkArn(String sinkArn)
The ARN of the sink that is used for this link.
|
void |
setTags(Map<String,String> tags)
The tags assigned to the link.
|
String |
toString()
Returns a string representation of this object.
|
GetLinkResult |
withArn(String arn)
The ARN of the link.
|
GetLinkResult |
withId(String id)
The random ID string that Amazon Web Services generated as part of the link ARN.
|
GetLinkResult |
withLabel(String label)
The label that you assigned to this link, with the variables resolved to their actual values.
|
GetLinkResult |
withLabelTemplate(String labelTemplate)
The exact label template that was specified when the link was created, with the template variables not resolved.
|
GetLinkResult |
withLinkConfiguration(LinkConfiguration linkConfiguration)
This structure includes filters that specify which metric namespaces and which log groups are shared from the
source account to the monitoring account.
|
GetLinkResult |
withResourceTypes(Collection<String> resourceTypes)
The resource types supported by this link.
|
GetLinkResult |
withResourceTypes(String... resourceTypes)
The resource types supported by this link.
|
GetLinkResult |
withSinkArn(String sinkArn)
The ARN of the sink that is used for this link.
|
GetLinkResult |
withTags(Map<String,String> tags)
The tags assigned to the link.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 GetLinkResult 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 GetLinkResult 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 you assigned to this link, with the variables resolved to their actual values.
label
- The label that you assigned to this link, with the variables resolved to their actual values.public String getLabel()
The label that you assigned to this link, with the variables resolved to their actual values.
public GetLinkResult withLabel(String label)
The label that you assigned to this link, with the variables resolved to their actual values.
label
- The label that you assigned to this link, with the variables resolved to their actual values.public void setLabelTemplate(String labelTemplate)
The exact label template that was specified when the link was created, with the template variables not resolved.
labelTemplate
- The exact label template that was specified when the link was created, with the template variables not
resolved.public String getLabelTemplate()
The exact label template that was specified when the link was created, with the template variables not resolved.
public GetLinkResult withLabelTemplate(String labelTemplate)
The exact label template that was specified when the link was created, with the template variables not resolved.
labelTemplate
- The exact label template that was specified when the link was created, with the template variables not
resolved.public void setLinkConfiguration(LinkConfiguration linkConfiguration)
This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.
linkConfiguration
- This structure includes filters that specify which metric namespaces and which log groups are shared from
the source account to the monitoring account.public LinkConfiguration getLinkConfiguration()
This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.
public GetLinkResult withLinkConfiguration(LinkConfiguration linkConfiguration)
This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.
linkConfiguration
- This structure includes filters that specify which metric namespaces and which log groups are shared from
the source account to the monitoring account.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 GetLinkResult 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 GetLinkResult 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 is used for this link.
sinkArn
- The ARN of the sink that is used for this link.public String getSinkArn()
The ARN of the sink that is used for this link.
public GetLinkResult withSinkArn(String sinkArn)
The ARN of the sink that is used for this link.
sinkArn
- The ARN of the sink that is used for this link.public Map<String,String> getTags()
The tags assigned to the link.
public void setTags(Map<String,String> tags)
The tags assigned to the link.
tags
- The tags assigned to the link.public GetLinkResult withTags(Map<String,String> tags)
The tags assigned to the link.
tags
- The tags assigned to the link.public GetLinkResult addTagsEntry(String key, String value)
public GetLinkResult clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public GetLinkResult clone()