@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
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 an Amazon
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 an Amazon
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 an Amazon
Cognito ID.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 an Amazon Cognito ID.
principal
- The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an
Amazon Cognito ID.public String getPrincipal()
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
public AttachPrincipalPolicyRequest withPrincipal(String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
principal
- The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an
Amazon Cognito ID.public String toString()
toString
in class Object
Object.toString()
public AttachPrincipalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.