Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.rds.model
Class AddTagsToResourceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.rds.model.AddTagsToResourceRequest

public class AddTagsToResourceRequest
extends AmazonWebServiceRequest

Container for the parameters to the AddTagsToResource operation.

Adds metadata tags to a DB Instance. These tags can also be used with cost allocation reporting to track cost associated with a DB Instance.

For an overview on tagging DB Instances, see DB Instance Tags.

See Also:
AmazonRDS.addTagsToResource(AddTagsToResourceRequest)

Constructor Summary
AddTagsToResourceRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getResourceName()
          The DB Instance the tags will be added to.
 List<Tag> getTags()
          The tags to be assigned to the DB Instance.
 int hashCode()
           
 void setResourceName(String resourceName)
          The DB Instance the tags will be added to.
 void setTags(Collection<Tag> tags)
          The tags to be assigned to the DB Instance.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AddTagsToResourceRequest withResourceName(String resourceName)
          The DB Instance the tags will be added to.
 AddTagsToResourceRequest withTags(Collection<Tag> tags)
          The tags to be assigned to the DB Instance.
 AddTagsToResourceRequest withTags(Tag... tags)
          The tags to be assigned to the DB Instance.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddTagsToResourceRequest

public AddTagsToResourceRequest()
Method Detail

getResourceName

public String getResourceName()
The DB Instance the tags will be added to.

Returns:
The DB Instance the tags will be added to.

setResourceName

public void setResourceName(String resourceName)
The DB Instance the tags will be added to.

Parameters:
resourceName - The DB Instance the tags will be added to.

withResourceName

public AddTagsToResourceRequest withResourceName(String resourceName)
The DB Instance the tags will be added to.

Returns a reference to this object so that method calls can be chained together.

Parameters:
resourceName - The DB Instance the tags will be added to.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public List<Tag> getTags()
The tags to be assigned to the DB Instance.

Returns:
The tags to be assigned to the DB Instance.

setTags

public void setTags(Collection<Tag> tags)
The tags to be assigned to the DB Instance.

Parameters:
tags - The tags to be assigned to the DB Instance.

withTags

public AddTagsToResourceRequest withTags(Tag... tags)
The tags to be assigned to the DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - The tags to be assigned to the DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public AddTagsToResourceRequest withTags(Collection<Tag> tags)
The tags to be assigned to the DB Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - The tags to be assigned to the DB Instance.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.