Interface AmazonMachineImageRecommendation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AmazonMachineImageRecommendation.Builder,,AmazonMachineImageRecommendation> SdkBuilder<AmazonMachineImageRecommendation.Builder,,AmazonMachineImageRecommendation> SdkPojo
- Enclosing class:
AmazonMachineImageRecommendation
@Mutable
@NotThreadSafe
public static interface AmazonMachineImageRecommendation.Builder
extends SdkPojo, CopyableBuilder<AmazonMachineImageRecommendation.Builder,AmazonMachineImageRecommendation>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceType(String instanceType) The recommended EC2 instance type for this AMI.securityGroups(Collection<AmazonMachineImageSecurityGroup> securityGroups) The recommended security group configurations for this AMI.securityGroups(Consumer<AmazonMachineImageSecurityGroup.Builder>... securityGroups) The recommended security group configurations for this AMI.securityGroups(AmazonMachineImageSecurityGroup... securityGroups) The recommended security group configurations for this AMI.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceType
The recommended EC2 instance type for this AMI.
- Parameters:
instanceType- The recommended EC2 instance type for this AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
AmazonMachineImageRecommendation.Builder securityGroups(Collection<AmazonMachineImageSecurityGroup> securityGroups) The recommended security group configurations for this AMI.
- Parameters:
securityGroups- The recommended security group configurations for this AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
AmazonMachineImageRecommendation.Builder securityGroups(AmazonMachineImageSecurityGroup... securityGroups) The recommended security group configurations for this AMI.
- Parameters:
securityGroups- The recommended security group configurations for this AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
AmazonMachineImageRecommendation.Builder securityGroups(Consumer<AmazonMachineImageSecurityGroup.Builder>... securityGroups) The recommended security group configurations for this AMI.
This is a convenience method that creates an instance of theAmazonMachineImageSecurityGroup.Builderavoiding the need to create one manually viaAmazonMachineImageSecurityGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecurityGroups(List<AmazonMachineImageSecurityGroup>).- Parameters:
securityGroups- a consumer that will call methods onAmazonMachineImageSecurityGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-