/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateCapacityReservationRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateCapacityReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
* information, see Ensure
* Idempotency.
*
* The instance type for which to reserve capacity. For more information, see Instance types in the
* Amazon EC2 User Guide.
*
* The type of operating system for which to reserve capacity.
*
* The Availability Zone in which to create the Capacity Reservation.
*
* The ID of the Availability Zone in which to create the Capacity Reservation.
*
* Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy
* settings:
*
*
*
* The number of instances for which to reserve capacity.
*
* Valid range: 1 - 1000
*
* Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated
* throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This
* optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized
* instance.
*
* Deprecated.
*
* The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
* capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
*
* You must provide an
* If the
* Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following
* end types:
*
*
*
* Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
*
*
*
* Default:
* The tags to apply to the Capacity Reservation during launch.
*
* The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
*
* The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For
* more information, see Capacity
* Reservations for cluster placement groups in the Amazon EC2 User Guide.
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
* information, see Ensure
* Idempotency.
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
* information, see Ensure
* Idempotency.
*
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
* information, see Ensure
* Idempotency.
*
* The instance type for which to reserve capacity. For more information, see Instance types in the
* Amazon EC2 User Guide.
*
* The instance type for which to reserve capacity. For more information, see Instance types in the
* Amazon EC2 User Guide.
*
* The instance type for which to reserve capacity. For more information, see Instance types in the
* Amazon EC2 User Guide.
*
* The type of operating system for which to reserve capacity.
*
* The type of operating system for which to reserve capacity.
*
* The type of operating system for which to reserve capacity.
*
* The type of operating system for which to reserve capacity.
*
* The Availability Zone in which to create the Capacity Reservation.
*
* The Availability Zone in which to create the Capacity Reservation.
*
* The Availability Zone in which to create the Capacity Reservation.
*
* The ID of the Availability Zone in which to create the Capacity Reservation.
*
* The ID of the Availability Zone in which to create the Capacity Reservation.
*
* The ID of the Availability Zone in which to create the Capacity Reservation.
*
* Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy
* settings:
*
*
*
*
*/
private String tenancy;
/**
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
* Services accounts.
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
* single Amazon Web Services account.
* expired
when it reaches its end date and time.
* EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
* EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
* from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
* to end between 13:30:55 and 14:30:55 on 5/31/2019.
*
*
*/
private String endDateType;
/**
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
* an EndDate
if the EndDateType
is unlimited
.
* limited
- The Capacity Reservation expires automatically at a specified date and time. You must
* provide an EndDate
value if the EndDateType
value is limited
.
*
*
* open
- The Capacity Reservation automatically matches all instances that have matching attributes
* (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
* Reservation automatically without specifying any additional parameters.
* targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
* type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
* permitted instances can use the reserved capacity.
* open
*
*
*
* @param tenancy
* Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following
* tenancy settings:default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
* Services accounts.
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
* single Amazon Web Services account.
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon
* Web Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
* to a single Amazon Web Services account.
*
* Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy * settings: *
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
* single Amazon Web Services account.
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon
* Web Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
* to a single Amazon Web Services account.
*
* Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy * settings: *
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
* single Amazon Web Services account.
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon
* Web Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
* to a single Amazon Web Services account.
*
* Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy * settings: *
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
* single Amazon Web Services account.
*
* default
- The Capacity Reservation is created on hardware that is shared with other Amazon
* Web Services accounts.
*
* dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
* to a single Amazon Web Services account.
*
* The number of instances for which to reserve capacity. *
** Valid range: 1 - 1000 *
* * @param instanceCount * The number of instances for which to reserve capacity. ** Valid range: 1 - 1000 */ public void setInstanceCount(Integer instanceCount) { this.instanceCount = instanceCount; } /** *
* The number of instances for which to reserve capacity. *
** Valid range: 1 - 1000 *
* * @return The number of instances for which to reserve capacity. ** Valid range: 1 - 1000 */ public Integer getInstanceCount() { return this.instanceCount; } /** *
* The number of instances for which to reserve capacity. *
** Valid range: 1 - 1000 *
* * @param instanceCount * The number of instances for which to reserve capacity. ** Valid range: 1 - 1000 * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withInstanceCount(Integer instanceCount) { setInstanceCount(instanceCount); return this; } /** *
* Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated * throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This * optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized * instance. *
* * @param ebsOptimized * Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O * performance. This optimization isn't available with all instance types. Additional usage charges apply * when using an EBS- optimized instance. */ public void setEbsOptimized(Boolean ebsOptimized) { this.ebsOptimized = ebsOptimized; } /** ** Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated * throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This * optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized * instance. *
* * @return Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O * performance. This optimization isn't available with all instance types. Additional usage charges apply * when using an EBS- optimized instance. */ public Boolean getEbsOptimized() { return this.ebsOptimized; } /** ** Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated * throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This * optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized * instance. *
* * @param ebsOptimized * Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O * performance. This optimization isn't available with all instance types. Additional usage charges apply * when using an EBS- optimized instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withEbsOptimized(Boolean ebsOptimized) { setEbsOptimized(ebsOptimized); return this; } /** ** Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated * throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This * optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized * instance. *
* * @return Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides * dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O * performance. This optimization isn't available with all instance types. Additional usage charges apply * when using an EBS- optimized instance. */ public Boolean isEbsOptimized() { return this.ebsOptimized; } /** ** Deprecated. *
* * @param ephemeralStorage * Deprecated. */ public void setEphemeralStorage(Boolean ephemeralStorage) { this.ephemeralStorage = ephemeralStorage; } /** ** Deprecated. *
* * @return Deprecated. */ public Boolean getEphemeralStorage() { return this.ephemeralStorage; } /** ** Deprecated. *
* * @param ephemeralStorage * Deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withEphemeralStorage(Boolean ephemeralStorage) { setEphemeralStorage(ephemeralStorage); return this; } /** ** Deprecated. *
* * @return Deprecated. */ public Boolean isEphemeralStorage() { return this.ephemeralStorage; } /** *
* The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
* capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
* expired
when it reaches its end date and time.
*
* You must provide an EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
*
* If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
* from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
* to end between 13:30:55 and 14:30:55 on 5/31/2019.
*
expired
when it reaches its end date and time.
*
* You must provide an EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
*
* If the EndDateType
is limited
, the Capacity Reservation is cancelled within an
* hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is
* guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
*/
public void setEndDate(java.util.Date endDate) {
this.endDate = endDate;
}
/**
*
* The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
* capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
* expired
when it reaches its end date and time.
*
* You must provide an EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
*
* If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
* from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
* to end between 13:30:55 and 14:30:55 on 5/31/2019.
*
expired
when it reaches its end date and time.
*
* You must provide an EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
*
* If the EndDateType
is limited
, the Capacity Reservation is cancelled within an
* hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation
* is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
*/
public java.util.Date getEndDate() {
return this.endDate;
}
/**
*
* The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
* capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
* expired
when it reaches its end date and time.
*
* You must provide an EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
*
* If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
* from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
* to end between 13:30:55 and 14:30:55 on 5/31/2019.
*
expired
when it reaches its end date and time.
*
* You must provide an EndDate
value if EndDateType
is limited
. Omit
* EndDate
if EndDateType
is unlimited
.
*
* If the EndDateType
is limited
, the Capacity Reservation is cancelled within an
* hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is
* guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateCapacityReservationRequest withEndDate(java.util.Date endDate) {
setEndDate(endDate);
return this;
}
/**
*
* Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following * end types: *
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
* an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You must
* provide an EndDate
value if the EndDateType
value is limited
.
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
* provide an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You
* must provide an EndDate
value if the EndDateType
value is limited
.
*
* Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following * end types: *
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
* an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You must
* provide an EndDate
value if the EndDateType
value is limited
.
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
* provide an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You
* must provide an EndDate
value if the EndDateType
value is limited
.
*
* Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following * end types: *
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
* an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You must
* provide an EndDate
value if the EndDateType
value is limited
.
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
* provide an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You
* must provide an EndDate
value if the EndDateType
value is limited
.
*
* Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following * end types: *
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
* an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You must
* provide an EndDate
value if the EndDateType
value is limited
.
*
* unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
* provide an EndDate
if the EndDateType
is unlimited
.
*
* limited
- The Capacity Reservation expires automatically at a specified date and time. You
* must provide an EndDate
value if the EndDateType
value is limited
.
*
* Indicates the type of instance launches that the Capacity Reservation accepts. The options include: *
*
* open
- The Capacity Reservation automatically matches all instances that have matching attributes
* (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
* Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
* type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
* permitted instances can use the reserved capacity.
*
* Default: open
*
* open
- The Capacity Reservation automatically matches all instances that have matching
* attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
* in the Capacity Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes
* (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
* ensures that only permitted instances can use the reserved capacity.
*
* Default: open
* @see InstanceMatchCriteria
*/
public void setInstanceMatchCriteria(String instanceMatchCriteria) {
this.instanceMatchCriteria = instanceMatchCriteria;
}
/**
*
* Indicates the type of instance launches that the Capacity Reservation accepts. The options include: *
*
* open
- The Capacity Reservation automatically matches all instances that have matching attributes
* (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
* Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
* type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
* permitted instances can use the reserved capacity.
*
* Default: open
*
* open
- The Capacity Reservation automatically matches all instances that have matching
* attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
* in the Capacity Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes
* (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
* ensures that only permitted instances can use the reserved capacity.
*
* Default: open
* @see InstanceMatchCriteria
*/
public String getInstanceMatchCriteria() {
return this.instanceMatchCriteria;
}
/**
*
* Indicates the type of instance launches that the Capacity Reservation accepts. The options include: *
*
* open
- The Capacity Reservation automatically matches all instances that have matching attributes
* (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
* Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
* type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
* permitted instances can use the reserved capacity.
*
* Default: open
*
* open
- The Capacity Reservation automatically matches all instances that have matching
* attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
* in the Capacity Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes
* (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
* ensures that only permitted instances can use the reserved capacity.
*
* Default: open
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceMatchCriteria
*/
public CreateCapacityReservationRequest withInstanceMatchCriteria(String instanceMatchCriteria) {
setInstanceMatchCriteria(instanceMatchCriteria);
return this;
}
/**
*
* Indicates the type of instance launches that the Capacity Reservation accepts. The options include: *
*
* open
- The Capacity Reservation automatically matches all instances that have matching attributes
* (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
* Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
* type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
* permitted instances can use the reserved capacity.
*
* Default: open
*
* open
- The Capacity Reservation automatically matches all instances that have matching
* attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
* in the Capacity Reservation automatically without specifying any additional parameters.
*
* targeted
- The Capacity Reservation only accepts instances that have matching attributes
* (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
* ensures that only permitted instances can use the reserved capacity.
*
* Default: open
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceMatchCriteria
*/
public CreateCapacityReservationRequest withInstanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria) {
this.instanceMatchCriteria = instanceMatchCriteria.toString();
return this;
}
/**
*
* The tags to apply to the Capacity Reservation during launch. *
* * @return The tags to apply to the Capacity Reservation during launch. */ public java.util.List* The tags to apply to the Capacity Reservation during launch. *
* * @param tagSpecifications * The tags to apply to the Capacity Reservation during launch. */ public void setTagSpecifications(java.util.Collection* The tags to apply to the Capacity Reservation during launch. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagSpecifications(java.util.Collection)} or {@link #withTagSpecifications(java.util.Collection)} if * you want to override the existing values. *
* * @param tagSpecifications * The tags to apply to the Capacity Reservation during launch. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withTagSpecifications(TagSpecification... tagSpecifications) { if (this.tagSpecifications == null) { setTagSpecifications(new com.amazonaws.internal.SdkInternalList* The tags to apply to the Capacity Reservation during launch. *
* * @param tagSpecifications * The tags to apply to the Capacity Reservation during launch. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withTagSpecifications(java.util.Collection* The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. */ public void setOutpostArn(String outpostArn) { this.outpostArn = outpostArn; } /** ** The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. *
* * @return The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. */ public String getOutpostArn() { return this.outpostArn; } /** ** The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withOutpostArn(String outpostArn) { setOutpostArn(outpostArn); return this; } /** ** The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For * more information, see Capacity * Reservations for cluster placement groups in the Amazon EC2 User Guide. *
* * @param placementGroupArn * The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. * For more information, see * Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide. */ public void setPlacementGroupArn(String placementGroupArn) { this.placementGroupArn = placementGroupArn; } /** ** The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For * more information, see Capacity * Reservations for cluster placement groups in the Amazon EC2 User Guide. *
* * @return The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity * Reservation. For more information, see Capacity Reservations for cluster * placement groups in the Amazon EC2 User Guide. */ public String getPlacementGroupArn() { return this.placementGroupArn; } /** ** The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For * more information, see Capacity * Reservations for cluster placement groups in the Amazon EC2 User Guide. *
* * @param placementGroupArn * The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. * For more information, see * Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCapacityReservationRequest withPlacementGroupArn(String placementGroupArn) { setPlacementGroupArn(placementGroupArn); return this; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request