Interface CreatePermissionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreatePermissionResponse.Builder,,CreatePermissionResponse> RamResponse.Builder,SdkBuilder<CreatePermissionResponse.Builder,,CreatePermissionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreatePermissionResponse
@Mutable
@NotThreadSafe
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.Builderpermission(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
copyMethods inherited from interface software.amazon.awssdk.services.ram.model.RamResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaResourceSharePermissionSummary.builder().When the
Consumercompletes,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
clientTokenrequest 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 theclientTokenrequest 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.