public class DeleteInstanceProfileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeleteInstanceProfile operation
.
Deletes the specified instance profile. The instance profile must not have an associated role.
IMPORTANT: Make sure you do not have any Amazon EC2 instances running with the instance profile 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.
For more information about instance profiles, go to About Instance Profiles .
NOOP
Constructor and Description |
---|
DeleteInstanceProfileRequest() |
Modifier and Type | Method and Description |
---|---|
DeleteInstanceProfileRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getInstanceProfileName()
The name of the instance profile to delete.
|
int |
hashCode() |
void |
setInstanceProfileName(String instanceProfileName)
The name of the instance profile to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteInstanceProfileRequest |
withInstanceProfileName(String instanceProfileName)
The name of the instance profile to delete.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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 delete.public DeleteInstanceProfileRequest 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 delete.public String toString()
toString
in class Object
Object.toString()
public DeleteInstanceProfileRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.