Interface AmiDistributionConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AmiDistributionConfiguration.Builder,AmiDistributionConfiguration>,SdkBuilder<AmiDistributionConfiguration.Builder,AmiDistributionConfiguration>,SdkPojo
- Enclosing class:
- AmiDistributionConfiguration
public static interface AmiDistributionConfiguration.Builder extends SdkPojo, CopyableBuilder<AmiDistributionConfiguration.Builder,AmiDistributionConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AmiDistributionConfiguration.BuilderamiTags(Map<String,String> amiTags)The tags to apply to AMIs distributed to this Region.AmiDistributionConfiguration.Builderdescription(String description)The description of the AMI distribution configuration.AmiDistributionConfiguration.BuilderkmsKeyId(String kmsKeyId)The KMS key identifier used to encrypt the distributed image.default AmiDistributionConfiguration.BuilderlaunchPermission(Consumer<LaunchPermissionConfiguration.Builder> launchPermission)Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.AmiDistributionConfiguration.BuilderlaunchPermission(LaunchPermissionConfiguration launchPermission)Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.AmiDistributionConfiguration.Buildername(String name)The name of the output AMI.AmiDistributionConfiguration.BuildertargetAccountIds(String... targetAccountIds)The ID of an account to which you want to distribute an image.AmiDistributionConfiguration.BuildertargetAccountIds(Collection<String> targetAccountIds)The ID of an account to which you want to distribute an image.-
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 Detail
-
name
AmiDistributionConfiguration.Builder name(String name)
The name of the output AMI.
- Parameters:
name- The name of the output AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
AmiDistributionConfiguration.Builder description(String description)
The description of the AMI distribution configuration. Minimum and maximum length are in characters.
- Parameters:
description- The description of the AMI distribution configuration. Minimum and maximum length are in characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAccountIds
AmiDistributionConfiguration.Builder targetAccountIds(Collection<String> targetAccountIds)
The ID of an account to which you want to distribute an image.
- Parameters:
targetAccountIds- The ID of an account to which you want to distribute an image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetAccountIds
AmiDistributionConfiguration.Builder targetAccountIds(String... targetAccountIds)
The ID of an account to which you want to distribute an image.
- Parameters:
targetAccountIds- The ID of an account to which you want to distribute an image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiTags
AmiDistributionConfiguration.Builder amiTags(Map<String,String> amiTags)
The tags to apply to AMIs distributed to this Region.
- Parameters:
amiTags- The tags to apply to AMIs distributed to this Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
AmiDistributionConfiguration.Builder kmsKeyId(String kmsKeyId)
The KMS key identifier used to encrypt the distributed image.
- Parameters:
kmsKeyId- The KMS key identifier used to encrypt the distributed image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchPermission
AmiDistributionConfiguration.Builder launchPermission(LaunchPermissionConfiguration launchPermission)
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
- Parameters:
launchPermission- Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchPermission
default AmiDistributionConfiguration.Builder launchPermission(Consumer<LaunchPermissionConfiguration.Builder> launchPermission)
Launch permissions can be used to configure which Amazon Web Services accounts can use the AMI to launch instances.
This is a convenience method that creates an instance of theLaunchPermissionConfiguration.Builderavoiding the need to create one manually viaLaunchPermissionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolaunchPermission(LaunchPermissionConfiguration).- Parameters:
launchPermission- a consumer that will call methods onLaunchPermissionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
launchPermission(LaunchPermissionConfiguration)
-
-