@Generated(value="software.amazon.awssdk:codegen") public class ListPoliciesForTargetRequest extends OrganizationsRequest implements ToCopyableBuilder<ListPoliciesForTargetRequest.Builder,ListPoliciesForTargetRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
ListPoliciesForTargetRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static ListPoliciesForTargetRequest.Builder |
builder() |
boolean |
equals(Object obj) |
PolicyType |
filter()
The type of policy that you want to include in the returned list.
|
String |
filterString()
The type of policy that you want to include in the returned list.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
maxResults()
(Optional) Use this to limit the number of results you want included in the response.
|
String |
nextToken()
Use this parameter if you receive a
NextToken response in a previous request that indicates that
there is more output available. |
static Class<? extends ListPoliciesForTargetRequest.Builder> |
serializableBuilderClass() |
String |
targetId()
The unique identifier (ID) of the root, organizational unit, or account whose policies you want to list.
|
ListPoliciesForTargetRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String targetId()
The unique identifier (ID) of the root, organizational unit, or account whose policies you want to list.
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 PolicyType filter()
The type of policy that you want to include in the returned list.
If the service returns an enum value that is not available in the current SDK version, filter
will
return PolicyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
filterString()
.
PolicyType
public String filterString()
The type of policy that you want to include in the returned list.
If the service returns an enum value that is not available in the current SDK version, filter
will
return PolicyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
filterString()
.
PolicyType
public String nextToken()
Use this parameter if you receive a NextToken
response in a previous request that indicates that
there is more output available. Set it to the value of the previous call's NextToken
response to
indicate where the output should continue from.
NextToken
response in a previous request that indicates
that there is more output available. Set it to the value of the previous call's NextToken
response to indicate where the output should continue from.public Integer maxResults()
(Optional) Use this to limit the number of results you want included in the response. If you do not include this
parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum
you specify, the NextToken
response element is present and has a value (is not null). Include that
value as the NextToken
request parameter in the next call to the operation to get the next part of
the results. Note that Organizations might return fewer results than the maximum even when there are more results
available. You should check NextToken
after every operation to ensure that you receive all of the
results.
NextToken
response element is present and has a
value (is not null). Include that value as the NextToken
request parameter in the next call
to the operation to get the next part of the results. Note that Organizations might return fewer results
than the maximum even when there are more results available. You should check NextToken
after every operation to ensure that you receive all of the results.public ListPoliciesForTargetRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ListPoliciesForTargetRequest.Builder,ListPoliciesForTargetRequest>
toBuilder
in class OrganizationsRequest
public static ListPoliciesForTargetRequest.Builder builder()
public static Class<? extends ListPoliciesForTargetRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.