Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class RemoveRoleFromInstanceProfileRequest

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

public class RemoveRoleFromInstanceProfileRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the RemoveRoleFromInstanceProfile operation.

Removes the specified role from the specified instance profile.

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

For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .

See Also:
AmazonIdentityManagement.removeRoleFromInstanceProfile(RemoveRoleFromInstanceProfileRequest), Serialized Form

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

RemoveRoleFromInstanceProfileRequest

public RemoveRoleFromInstanceProfileRequest()
Method Detail

getInstanceProfileName

public String getInstanceProfileName()
Name of the instance profile to update.

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

Returns:
Name of the instance profile to update.

setInstanceProfileName

public void setInstanceProfileName(String instanceProfileName)
Name of the instance profile to update.

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

Parameters:
instanceProfileName - Name of the instance profile to update.

withInstanceProfileName

public RemoveRoleFromInstanceProfileRequest withInstanceProfileName(String instanceProfileName)
Name of the instance profile to update.

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

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

Parameters:
instanceProfileName - Name of the instance profile to update.
Returns:
A reference to this updated object so that method calls can be chained together.

getRoleName

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

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

Returns:
Name of the role to remove.

setRoleName

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

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

Parameters:
roleName - Name of the role to remove.

withRoleName

public RemoveRoleFromInstanceProfileRequest withRoleName(String roleName)
Name of the role to remove.

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 remove.
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.