public class DetachPrincipalPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
The input for the DetachPrincipalPolicy operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyName
The name of the policy to detach.
|
private java.lang.String |
principal
The principal.
|
NOOP
Constructor and Description |
---|
DetachPrincipalPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
DetachPrincipalPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyName()
The name of the policy to detach.
|
java.lang.String |
getPrincipal()
The principal.
|
int |
hashCode() |
void |
setPolicyName(java.lang.String policyName)
The name of the policy to detach.
|
void |
setPrincipal(java.lang.String principal)
The principal.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachPrincipalPolicyRequest |
withPolicyName(java.lang.String policyName)
The name of the policy to detach.
|
DetachPrincipalPolicyRequest |
withPrincipal(java.lang.String principal)
The principal.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String policyName
The name of the policy to detach.
private java.lang.String principal
The principal.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
public void setPolicyName(java.lang.String policyName)
The name of the policy to detach.
policyName
- The name of the policy to detach.public java.lang.String getPolicyName()
The name of the policy to detach.
public DetachPrincipalPolicyRequest withPolicyName(java.lang.String policyName)
The name of the policy to detach.
policyName
- The name of the policy to detach.public void setPrincipal(java.lang.String principal)
The principal.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
principal
- The principal.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
public java.lang.String getPrincipal()
The principal.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
public DetachPrincipalPolicyRequest withPrincipal(java.lang.String principal)
The principal.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
principal
- The principal.
If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DetachPrincipalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()