public class DeleteRoleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
NOOP| Constructor and Description |
|---|
DeleteRoleRequest() |
| Modifier and Type | Method and Description |
|---|---|
DeleteRoleRequest |
clone() |
boolean |
equals(Object obj) |
String |
getRoleName()
The name of the role to delete.
|
int |
hashCode() |
void |
setRoleName(String roleName)
The name of the role to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteRoleRequest |
withRoleName(String roleName)
The name of the role to delete.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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 delete.public DeleteRoleRequest 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 delete.public String toString()
toString in class ObjectObject.toString()public DeleteRoleRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.