Class CfnSpotFleet.TargetGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.TargetGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.TargetGroupProperty>
- Enclosing interface:
- CfnSpotFleet.TargetGroupProperty
@Stability(Stable)
public static final class CfnSpotFleet.TargetGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.TargetGroupProperty>
A builder for
CfnSpotFleet.TargetGroupProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnSpotFleet.TargetGroupProperty.getArn()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnSpotFleet.TargetGroupProperty.getArn()
- Parameters:
arn
- The Amazon Resource Name (ARN) of the target group. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.TargetGroupProperty>
- Returns:
- a new instance of
CfnSpotFleet.TargetGroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-