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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SharedImagePermissions.BuilderimagePermissions(Consumer<ImagePermissions.Builder> imagePermissions)Describes the permissions for a shared image.SharedImagePermissions.BuilderimagePermissions(ImagePermissions imagePermissions)Describes the permissions for a shared image.SharedImagePermissions.BuildersharedAccountId(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
sharedAccountId
SharedImagePermissions.Builder sharedAccountId(String sharedAccountId)
The 12-digit identifier of the AWS account with which the image is shared.
- Parameters:
sharedAccountId- The 12-digit identifier of the AWS account with which the image is shared.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePermissions
SharedImagePermissions.Builder imagePermissions(ImagePermissions 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.Builderavoiding the need to create one manually viaImagePermissions.builder().When the
Consumercompletes,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:
imagePermissions(ImagePermissions)
-
-