Interface ListPolicyVersionsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListPolicyVersionsResponse.Builder,ListPolicyVersionsResponse>
,IotResponse.Builder
,SdkBuilder<ListPolicyVersionsResponse.Builder,ListPolicyVersionsResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- ListPolicyVersionsResponse
public static interface ListPolicyVersionsResponse.Builder extends IotResponse.Builder, SdkPojo, CopyableBuilder<ListPolicyVersionsResponse.Builder,ListPolicyVersionsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListPolicyVersionsResponse.Builder
policyVersions(Collection<PolicyVersion> policyVersions)
The policy versions.ListPolicyVersionsResponse.Builder
policyVersions(Consumer<PolicyVersion.Builder>... policyVersions)
The policy versions.ListPolicyVersionsResponse.Builder
policyVersions(PolicyVersion... policyVersions)
The policy versions.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
policyVersions
ListPolicyVersionsResponse.Builder policyVersions(Collection<PolicyVersion> policyVersions)
The policy versions.
- Parameters:
policyVersions
- The policy versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVersions
ListPolicyVersionsResponse.Builder policyVersions(PolicyVersion... policyVersions)
The policy versions.
- Parameters:
policyVersions
- The policy versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyVersions
ListPolicyVersionsResponse.Builder policyVersions(Consumer<PolicyVersion.Builder>... policyVersions)
The policy versions.
This is a convenience method that creates an instance of thePolicyVersion.Builder
avoiding the need to create one manually viaPolicyVersion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#policyVersions(List
.) - Parameters:
policyVersions
- 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:
#policyVersions(java.util.Collection
)
-
-