Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class DeleteRoleRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.DeleteRoleRequest
All Implemented Interfaces:
Serializable

public class DeleteRoleRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteRole operation.

Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles .

IMPORTANT:Make sure you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

See Also:
AmazonIdentityManagement.deleteRole(DeleteRoleRequest), Serialized Form

Constructor Summary
DeleteRoleRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getRoleName()
          Name of the role to delete.
 int hashCode()
           
 void setRoleName(String roleName)
          Name of the role to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteRoleRequest withRoleName(String roleName)
          Name of the role to delete.
 
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

DeleteRoleRequest

public DeleteRoleRequest()
Method Detail

getRoleName

public String getRoleName()
Name of the role to delete.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Returns:
Name of the role to delete.

setRoleName

public void setRoleName(String roleName)
Name of the role to delete.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
roleName - Name of the role to delete.

withRoleName

public DeleteRoleRequest withRoleName(String roleName)
Name of the role to delete.

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

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
roleName - Name of the role to delete.
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.