@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetachPrincipalPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The input for the DetachPrincipalPolicy operation.
NOOP
Constructor and Description |
---|
DetachPrincipalPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
DetachPrincipalPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the policy to detach.
|
String |
getPrincipal()
The principal.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name of the policy to detach.
|
void |
setPrincipal(String principal)
The principal.
|
String |
toString()
Returns a string representation of this object.
|
DetachPrincipalPolicyRequest |
withPolicyName(String policyName)
The name of the policy to detach.
|
DetachPrincipalPolicyRequest |
withPrincipal(String principal)
The principal.
|
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 name of the policy to detach.
policyName
- The name of the policy to detach.public String getPolicyName()
The name of the policy to detach.
public DetachPrincipalPolicyRequest withPolicyName(String policyName)
The name of the policy to detach.
policyName
- The name of the policy to detach.public void setPrincipal(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 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).
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(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 String toString()
toString
in class Object
Object.toString()
public DetachPrincipalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()