public class AttachPrincipalPolicyRequest extends AmazonWebServiceRequest implements Serializable
Attaches the specified policy to the specified principal (certificate or other credential).
| Constructor and Description |
|---|
AttachPrincipalPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getPolicyName()
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy name.
public void setPolicyName(String policyName)
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.
public AttachPrincipalPolicyRequest withPolicyName(String policyName)
The policy name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.
public String getPrincipal()
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
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 AttachPrincipalPolicyRequest withPrincipal(String principal)
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Returns a reference to this object so that method calls can be chained together.
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 ObjectObject.toString()Copyright © 2017. All rights reserved.