Interface CreatePermissionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreatePermissionResponse.Builder,
,CreatePermissionResponse> RamResponse.Builder
,SdkBuilder<CreatePermissionResponse.Builder,
,CreatePermissionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreatePermissionResponse
public static interface CreatePermissionResponse.Builder
extends RamResponse.Builder, SdkPojo, CopyableBuilder<CreatePermissionResponse.Builder,CreatePermissionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) The idempotency identifier associated with this request.default CreatePermissionResponse.Builder
permission
(Consumer<ResourceSharePermissionSummary.Builder> permission) A structure with information about this customer managed permission.permission
(ResourceSharePermissionSummary permission) A structure with information about this customer managed permission.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ram.model.RamResponse.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 Details
-
permission
default CreatePermissionResponse.Builder permission(Consumer<ResourceSharePermissionSummary.Builder> permission) A structure with information about this customer managed permission.
This is a convenience method that creates an instance of theResourceSharePermissionSummary.Builder
avoiding the need to create one manually viaResourceSharePermissionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topermission(ResourceSharePermissionSummary)
.- Parameters:
permission
- a consumer that will call methods onResourceSharePermissionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the
clientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call.- Parameters:
clientToken
- The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in theclientToken
request parameter of that later call. All other parameters must also have the same values that you used in the first call.- Returns:
- Returns a reference to this object so that method calls can be chained together.