public class RemoveRoleFromInstanceProfileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 .
NOOP
Constructor and Description |
---|
RemoveRoleFromInstanceProfileRequest() |
Modifier and Type | Method and Description |
---|---|
RemoveRoleFromInstanceProfileRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getInstanceProfileName()
The name of the instance profile to update.
|
String |
getRoleName()
The name of the role to remove.
|
int |
hashCode() |
void |
setInstanceProfileName(String instanceProfileName)
The name of the instance profile to update.
|
void |
setRoleName(String roleName)
The name of the role to remove.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RemoveRoleFromInstanceProfileRequest |
withInstanceProfileName(String instanceProfileName)
The name of the instance profile to update.
|
RemoveRoleFromInstanceProfileRequest |
withRoleName(String roleName)
The name of the role to remove.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public RemoveRoleFromInstanceProfileRequest()
public String getInstanceProfileName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setInstanceProfileName(String instanceProfileName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
instanceProfileName
- The name of the instance profile to update.public RemoveRoleFromInstanceProfileRequest withInstanceProfileName(String instanceProfileName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
instanceProfileName
- The name of the instance profile to update.public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The name of the role to remove.public RemoveRoleFromInstanceProfileRequest withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The name of the role to remove.public String toString()
toString
in class Object
Object.toString()
public RemoveRoleFromInstanceProfileRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.