public static interface CreatePolicyResponse.Builder extends IamResponse.Builder, CopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>
Modifier and Type | Method and Description |
---|---|
default CreatePolicyResponse.Builder |
policy(Consumer<Policy.Builder> policy)
A structure containing details about the new policy.
|
CreatePolicyResponse.Builder |
policy(Policy policy)
A structure containing details about the new policy.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CreatePolicyResponse.Builder policy(Policy policy)
A structure containing details about the new policy.
policy
- A structure containing details about the new policy.default CreatePolicyResponse.Builder policy(Consumer<Policy.Builder> policy)
A structure containing details about the new policy.
This is a convenience that creates an instance of thePolicy.Builder
avoiding the need to create one
manually via Policy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to policy(Policy)
.policy
- a consumer that will call methods on Policy.Builder
policy(Policy)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.