Interface ListPolicyVersionsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPolicyVersionsResponse.Builder,ListPolicyVersionsResponse>,IamResponse.Builder,SdkBuilder<ListPolicyVersionsResponse.Builder,ListPolicyVersionsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListPolicyVersionsResponse
@Mutable @NotThreadSafe public static interface ListPolicyVersionsResponse.Builder extends IamResponse.Builder, SdkPojo, CopyableBuilder<ListPolicyVersionsResponse.Builder,ListPolicyVersionsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListPolicyVersionsResponse.BuilderisTruncated(Boolean isTruncated)A flag that indicates whether there are more items to return.ListPolicyVersionsResponse.Buildermarker(String marker)WhenIsTruncatedistrue, this element is present and contains the value to use for theMarkerparameter in a subsequent pagination request.ListPolicyVersionsResponse.Builderversions(Collection<PolicyVersion> versions)A list of policy versions.ListPolicyVersionsResponse.Builderversions(Consumer<PolicyVersion.Builder>... versions)A list of policy versions.ListPolicyVersionsResponse.Builderversions(PolicyVersion... versions)A list of policy versions.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
versions
ListPolicyVersionsResponse.Builder versions(Collection<PolicyVersion> versions)
A list of policy versions.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
- Parameters:
versions- A list of policy versions.For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versions
ListPolicyVersionsResponse.Builder versions(PolicyVersion... versions)
A list of policy versions.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
- Parameters:
versions- A list of policy versions.For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versions
ListPolicyVersionsResponse.Builder versions(Consumer<PolicyVersion.Builder>... versions)
A list of policy versions.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
This is a convenience method that creates an instance of thePolicyVersion.Builderavoiding the need to create one manually viaPolicyVersion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#versions(List.) - Parameters:
versions- a consumer that will call methods onPolicyVersion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#versions(java.util.Collection)
-
isTruncated
ListPolicyVersionsResponse.Builder isTruncated(Boolean isTruncated)
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the
Markerrequest parameter to retrieve more items. Note that IAM might return fewer than theMaxItemsnumber of results even when there are more results available. We recommend that you checkIsTruncatedafter every call to ensure that you receive all your results.- Parameters:
isTruncated- A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using theMarkerrequest parameter to retrieve more items. Note that IAM might return fewer than theMaxItemsnumber of results even when there are more results available. We recommend that you checkIsTruncatedafter every call to ensure that you receive all your results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
marker
ListPolicyVersionsResponse.Builder marker(String marker)
When
IsTruncatedistrue, this element is present and contains the value to use for theMarkerparameter in a subsequent pagination request.- Parameters:
marker- WhenIsTruncatedistrue, this element is present and contains the value to use for theMarkerparameter in a subsequent pagination request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-