Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class AddRoleToInstanceProfileRequest

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

public class AddRoleToInstanceProfileRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the AddRoleToInstanceProfile operation.

Adds the specified role to the specified instance profile. For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .

See Also:
AmazonIdentityManagement.addRoleToInstanceProfile(AddRoleToInstanceProfileRequest), Serialized Form

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

AddRoleToInstanceProfileRequest

public AddRoleToInstanceProfileRequest()
Method Detail

getInstanceProfileName

public java.lang.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(java.lang.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 AddRoleToInstanceProfileRequest withInstanceProfileName(java.lang.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 java.lang.String getRoleName()
Name of the role to add.

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

Returns:
Name of the role to add.

setRoleName

public void setRoleName(java.lang.String roleName)
Name of the role to add.

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

Parameters:
roleName - Name of the role to add.

withRoleName

public AddRoleToInstanceProfileRequest withRoleName(java.lang.String roleName)
Name of the role to add.

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 add.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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