@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeAccountPoliciesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
DescribeAccountPoliciesRequest() |
| Modifier and Type | Method and Description |
|---|---|
DescribeAccountPoliciesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAccountIdentifiers()
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account.
|
String |
getPolicyName()
Use this parameter to limit the returned policies to only the policy with the name that you specify.
|
String |
getPolicyType()
Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.
|
int |
hashCode() |
void |
setAccountIdentifiers(Collection<String> accountIdentifiers)
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account.
|
void |
setPolicyName(String policyName)
Use this parameter to limit the returned policies to only the policy with the name that you specify.
|
void |
setPolicyType(String policyType)
Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.
|
String |
toString()
Returns a string representation of this object.
|
DescribeAccountPoliciesRequest |
withAccountIdentifiers(Collection<String> accountIdentifiers)
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account.
|
DescribeAccountPoliciesRequest |
withAccountIdentifiers(String... accountIdentifiers)
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account.
|
DescribeAccountPoliciesRequest |
withPolicyName(String policyName)
Use this parameter to limit the returned policies to only the policy with the name that you specify.
|
DescribeAccountPoliciesRequest |
withPolicyType(PolicyType policyType)
Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.
|
DescribeAccountPoliciesRequest |
withPolicyType(String policyType)
Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.
|
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, withSdkRequestTimeoutpublic void setPolicyType(String policyType)
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
policyType - Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.PolicyTypepublic String getPolicyType()
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
PolicyTypepublic DescribeAccountPoliciesRequest withPolicyType(String policyType)
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
policyType - Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.PolicyTypepublic DescribeAccountPoliciesRequest withPolicyType(PolicyType policyType)
Use this parameter to limit the returned policies to only the policies that match the policy type that you specify.
policyType - Use this parameter to limit the returned policies to only the policies that match the policy type that you
specify.PolicyTypepublic void setPolicyName(String policyName)
Use this parameter to limit the returned policies to only the policy with the name that you specify.
policyName - Use this parameter to limit the returned policies to only the policy with the name that you specify.public String getPolicyName()
Use this parameter to limit the returned policies to only the policy with the name that you specify.
public DescribeAccountPoliciesRequest withPolicyName(String policyName)
Use this parameter to limit the returned policies to only the policy with the name that you specify.
policyName - Use this parameter to limit the returned policies to only the policy with the name that you specify.public List<String> getAccountIdentifiers()
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
If you omit this parameter, only the policy in the current account is returned.
public void setAccountIdentifiers(Collection<String> accountIdentifiers)
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
accountIdentifiers - If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account. If you do, the operation
returns the account policy for the specified account. Currently, you can specify only one account ID in
this parameter.
If you omit this parameter, only the policy in the current account is returned.
public DescribeAccountPoliciesRequest withAccountIdentifiers(String... accountIdentifiers)
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
NOTE: This method appends the values to the existing list (if any). Use
setAccountIdentifiers(java.util.Collection) or withAccountIdentifiers(java.util.Collection) if
you want to override the existing values.
accountIdentifiers - If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account. If you do, the operation
returns the account policy for the specified account. Currently, you can specify only one account ID in
this parameter.
If you omit this parameter, only the policy in the current account is returned.
public DescribeAccountPoliciesRequest withAccountIdentifiers(Collection<String> accountIdentifiers)
If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.
If you omit this parameter, only the policy in the current account is returned.
accountIdentifiers - If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account
observability, you can use this to specify the account ID of a source account. If you do, the operation
returns the account policy for the specified account. Currently, you can specify only one account ID in
this parameter.
If you omit this parameter, only the policy in the current account is returned.
public String toString()
toString in class ObjectObject.toString()public DescribeAccountPoliciesRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()