public class AttachPrincipalPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the AttachPrincipalPolicy operation.
NOOP
Constructor and Description |
---|
AttachPrincipalPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
AttachPrincipalPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The policy name.
|
String |
getPrincipal()
The principal which can be a certificate ARN (as returned from the
CreateCertificate operation) or a Cognito ID.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The policy name.
|
void |
setPrincipal(String principal)
The principal which can be a certificate ARN (as returned from the
CreateCertificate operation) or a Cognito ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachPrincipalPolicyRequest |
withPolicyName(String policyName)
The policy name.
|
AttachPrincipalPolicyRequest |
withPrincipal(String principal)
The principal which can be a certificate ARN (as returned from the
CreateCertificate operation) or a Cognito ID.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPolicyName(String policyName)
The policy name.
policyName
- The policy name.public String getPolicyName()
The policy name.
public AttachPrincipalPolicyRequest withPolicyName(String policyName)
The policy name.
policyName
- The policy name.public void setPrincipal(String principal)
The principal which can be a certificate ARN (as returned from the CreateCertificate operation) or a Cognito ID.
principal
- The principal which can be a certificate ARN (as returned from the
CreateCertificate operation) or a Cognito ID.public String getPrincipal()
The principal which can be a certificate ARN (as returned from the CreateCertificate operation) or a Cognito ID.
public AttachPrincipalPolicyRequest withPrincipal(String principal)
The principal which can be a certificate ARN (as returned from the CreateCertificate operation) or a Cognito ID.
principal
- The principal which can be a certificate ARN (as returned from the
CreateCertificate operation) or a Cognito ID.public String toString()
toString
in class Object
Object.toString()
public AttachPrincipalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.