Interface SharedImagePermissions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SharedImagePermissions.Builder,
,SharedImagePermissions> SdkBuilder<SharedImagePermissions.Builder,
,SharedImagePermissions> SdkPojo
- Enclosing class:
SharedImagePermissions
public static interface SharedImagePermissions.Builder
extends SdkPojo, CopyableBuilder<SharedImagePermissions.Builder,SharedImagePermissions>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SharedImagePermissions.Builder
imagePermissions
(Consumer<ImagePermissions.Builder> imagePermissions) Describes the permissions for a shared image.imagePermissions
(ImagePermissions imagePermissions) Describes the permissions for a shared image.sharedAccountId
(String sharedAccountId) The 12-digit identifier of the AWS account with which the image is shared.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
imagePermissions
Describes the permissions for a shared image.
- Parameters:
imagePermissions
- Describes the permissions for a shared image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePermissions
default SharedImagePermissions.Builder imagePermissions(Consumer<ImagePermissions.Builder> imagePermissions) Describes the permissions for a shared image.
This is a convenience method that creates an instance of theImagePermissions.Builder
avoiding the need to create one manually viaImagePermissions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimagePermissions(ImagePermissions)
.- Parameters:
imagePermissions
- a consumer that will call methods onImagePermissions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also: