public class DetachPrincipalPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Removes the specified policy from the specified certificate.
Note: This API is deprecated. Please use DetachPolicy instead.
| Constructor and Description | 
|---|
| DetachPrincipalPolicyRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getPolicyName()
The name of the policy to detach.
 Constraints:
 Length: 1 - 128
 Pattern: [\w+=,.@-]+
The name of the policy to detach.
public void setPolicyName(java.lang.String policyName)
The name of the policy to detach.
 Constraints:
 Length: 1 - 128
 Pattern: [\w+=,.@-]+
policyName - The name of the policy to detach.
public DetachPrincipalPolicyRequest withPolicyName(java.lang.String policyName)
The name of the policy to detach.
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 128
 Pattern: [\w+=,.@-]+
policyName - The name of the policy to detach.
public java.lang.String getPrincipal()
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
The principal.
Valid principals are CertificateArn (arn:aws:iot:region: accountId:cert/certificateId), thingGroupArn (arn:aws:iot :region:accountId:thinggroup/groupName) and CognitoId (region:id).
public void setPrincipal(java.lang.String principal)
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
principal - The principal.
Valid principals are CertificateArn (arn:aws:iot:region: accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/ groupName) and CognitoId (region:id).
public DetachPrincipalPolicyRequest withPrincipal(java.lang.String principal)
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
Returns a reference to this object so that method calls can be chained together.
principal - The principal.
Valid principals are CertificateArn (arn:aws:iot:region: accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/ groupName) and CognitoId (region:id).
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.