Interface LaunchPermissionModifications.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchPermissionModifications.Builder,
,LaunchPermissionModifications> SdkBuilder<LaunchPermissionModifications.Builder,
,LaunchPermissionModifications> SdkPojo
- Enclosing class:
LaunchPermissionModifications
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Collection<LaunchPermission> add) The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.add
(Consumer<LaunchPermission.Builder>... add) The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.add
(LaunchPermission... add) The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.remove
(Collection<LaunchPermission> remove) The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.remove
(Consumer<LaunchPermission.Builder>... remove) The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.remove
(LaunchPermission... remove) The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.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
-
add
The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.
- Parameters:
add
- The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
add
The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.
- Parameters:
add
- The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
add
The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.
This is a convenience method that creates an instance of theLaunchPermission.Builder
avoiding the need to create one manually viaLaunchPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadd(List<LaunchPermission>)
.- Parameters:
add
- a consumer that will call methods onLaunchPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
remove
The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.
- Parameters:
remove
- The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remove
The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.
- Parameters:
remove
- The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remove
The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.
This is a convenience method that creates an instance of theLaunchPermission.Builder
avoiding the need to create one manually viaLaunchPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremove(List<LaunchPermission>)
.- Parameters:
remove
- a consumer that will call methods onLaunchPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-