public static final class CfnLaunchTemplate.CapacityReservationTargetProperty.Builder
extends java.lang.Object
CfnLaunchTemplate.CapacityReservationTargetProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLaunchTemplate.CapacityReservationTargetProperty |
build()
Builds the configured instance.
|
CfnLaunchTemplate.CapacityReservationTargetProperty.Builder |
capacityReservationId(java.lang.String capacityReservationId)
|
CfnLaunchTemplate.CapacityReservationTargetProperty.Builder |
capacityReservationResourceGroupArn(java.lang.String capacityReservationResourceGroupArn)
|
public CfnLaunchTemplate.CapacityReservationTargetProperty.Builder capacityReservationId(java.lang.String capacityReservationId)
capacityReservationId
- The ID of the Capacity Reservation in which to run the instance.this
public CfnLaunchTemplate.CapacityReservationTargetProperty.Builder capacityReservationResourceGroupArn(java.lang.String capacityReservationResourceGroupArn)
CfnLaunchTemplate.CapacityReservationTargetProperty.getCapacityReservationResourceGroupArn()
capacityReservationResourceGroupArn
- The ARN of the Capacity Reservation resource group in which to run the instance.this
public CfnLaunchTemplate.CapacityReservationTargetProperty build()
CfnLaunchTemplate.CapacityReservationTargetProperty
java.lang.NullPointerException
- if any required attribute was not provided