@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetachPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DetachPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
DetachPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicyId()
The unique identifier (ID) of the policy you want to detach.
|
String |
getTargetId()
The unique identifier (ID) of the root, OU, or account from which you want to detach the policy.
|
int |
hashCode() |
void |
setPolicyId(String policyId)
The unique identifier (ID) of the policy you want to detach.
|
void |
setTargetId(String targetId)
The unique identifier (ID) of the root, OU, or account from which you want to detach the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DetachPolicyRequest |
withPolicyId(String policyId)
The unique identifier (ID) of the policy you want to detach.
|
DetachPolicyRequest |
withTargetId(String targetId)
The unique identifier (ID) of the root, OU, or account from which you want to detach the policy.
|
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 setPolicyId(String policyId)
The unique identifier (ID) of the policy you want to detach. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
policyId
- The unique identifier (ID) of the policy you want to detach. You can get the ID from the
ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public String getPolicyId()
The unique identifier (ID) of the policy you want to detach. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public DetachPolicyRequest withPolicyId(String policyId)
The unique identifier (ID) of the policy you want to detach. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
policyId
- The unique identifier (ID) of the policy you want to detach. You can get the ID from the
ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public void setTargetId(String targetId)
The unique identifier (ID) of the root, OU, or account from which you want to detach the policy. You can get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
targetId
- The unique identifier (ID) of the root, OU, or account from which you want to detach the policy. You can
get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts
operations.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public String getTargetId()
The unique identifier (ID) of the root, OU, or account from which you want to detach the policy. You can get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public DetachPolicyRequest withTargetId(String targetId)
The unique identifier (ID) of the root, OU, or account from which you want to detach the policy. You can get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
targetId
- The unique identifier (ID) of the root, OU, or account from which you want to detach the policy. You can
get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts
operations.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public String toString()
toString
in class Object
Object.toString()
public DetachPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.