AWS SDK for C++  1.9.44
AWS SDK for C++
Public Member Functions | List of all members
Aws::EMR::Model::OnDemandCapacityReservationOptions Class Reference

#include <OnDemandCapacityReservationOptions.h>

Public Member Functions

 OnDemandCapacityReservationOptions ()
 
 OnDemandCapacityReservationOptions (Aws::Utils::Json::JsonView jsonValue)
 
OnDemandCapacityReservationOptionsoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const OnDemandCapacityReservationUsageStrategyGetUsageStrategy () const
 
bool UsageStrategyHasBeenSet () const
 
void SetUsageStrategy (const OnDemandCapacityReservationUsageStrategy &value)
 
void SetUsageStrategy (OnDemandCapacityReservationUsageStrategy &&value)
 
OnDemandCapacityReservationOptionsWithUsageStrategy (const OnDemandCapacityReservationUsageStrategy &value)
 
OnDemandCapacityReservationOptionsWithUsageStrategy (OnDemandCapacityReservationUsageStrategy &&value)
 
const OnDemandCapacityReservationPreferenceGetCapacityReservationPreference () const
 
bool CapacityReservationPreferenceHasBeenSet () const
 
void SetCapacityReservationPreference (const OnDemandCapacityReservationPreference &value)
 
void SetCapacityReservationPreference (OnDemandCapacityReservationPreference &&value)
 
OnDemandCapacityReservationOptionsWithCapacityReservationPreference (const OnDemandCapacityReservationPreference &value)
 
OnDemandCapacityReservationOptionsWithCapacityReservationPreference (OnDemandCapacityReservationPreference &&value)
 
const Aws::StringGetCapacityReservationResourceGroupArn () const
 
bool CapacityReservationResourceGroupArnHasBeenSet () const
 
void SetCapacityReservationResourceGroupArn (const Aws::String &value)
 
void SetCapacityReservationResourceGroupArn (Aws::String &&value)
 
void SetCapacityReservationResourceGroupArn (const char *value)
 
OnDemandCapacityReservationOptionsWithCapacityReservationResourceGroupArn (const Aws::String &value)
 
OnDemandCapacityReservationOptionsWithCapacityReservationResourceGroupArn (Aws::String &&value)
 
OnDemandCapacityReservationOptionsWithCapacityReservationResourceGroupArn (const char *value)
 

Detailed Description

Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

See Also:

AWS API Reference

Definition at line 34 of file OnDemandCapacityReservationOptions.h.

Constructor & Destructor Documentation

◆ OnDemandCapacityReservationOptions() [1/2]

Aws::EMR::Model::OnDemandCapacityReservationOptions::OnDemandCapacityReservationOptions ( )

◆ OnDemandCapacityReservationOptions() [2/2]

Aws::EMR::Model::OnDemandCapacityReservationOptions::OnDemandCapacityReservationOptions ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ CapacityReservationPreferenceHasBeenSet()

bool Aws::EMR::Model::OnDemandCapacityReservationOptions::CapacityReservationPreferenceHasBeenSet ( ) const
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 152 of file OnDemandCapacityReservationOptions.h.

◆ CapacityReservationResourceGroupArnHasBeenSet()

bool Aws::EMR::Model::OnDemandCapacityReservationOptions::CapacityReservationResourceGroupArnHasBeenSet ( ) const
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 205 of file OnDemandCapacityReservationOptions.h.

◆ GetCapacityReservationPreference()

const OnDemandCapacityReservationPreference& Aws::EMR::Model::OnDemandCapacityReservationOptions::GetCapacityReservationPreference ( ) const
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 142 of file OnDemandCapacityReservationOptions.h.

◆ GetCapacityReservationResourceGroupArn()

const Aws::String& Aws::EMR::Model::OnDemandCapacityReservationOptions::GetCapacityReservationResourceGroupArn ( ) const
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 199 of file OnDemandCapacityReservationOptions.h.

◆ GetUsageStrategy()

const OnDemandCapacityReservationUsageStrategy& Aws::EMR::Model::OnDemandCapacityReservationOptions::GetUsageStrategy ( ) const
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 56 of file OnDemandCapacityReservationOptions.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::EMR::Model::OnDemandCapacityReservationOptions::Jsonize ( ) const

◆ operator=()

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetCapacityReservationPreference() [1/2]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationPreference ( const OnDemandCapacityReservationPreference value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 162 of file OnDemandCapacityReservationOptions.h.

◆ SetCapacityReservationPreference() [2/2]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationPreference ( OnDemandCapacityReservationPreference &&  value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 172 of file OnDemandCapacityReservationOptions.h.

◆ SetCapacityReservationResourceGroupArn() [1/3]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationResourceGroupArn ( Aws::String &&  value)
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 217 of file OnDemandCapacityReservationOptions.h.

◆ SetCapacityReservationResourceGroupArn() [2/3]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationResourceGroupArn ( const Aws::String value)
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 211 of file OnDemandCapacityReservationOptions.h.

◆ SetCapacityReservationResourceGroupArn() [3/3]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationResourceGroupArn ( const char *  value)
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 223 of file OnDemandCapacityReservationOptions.h.

◆ SetUsageStrategy() [1/2]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetUsageStrategy ( const OnDemandCapacityReservationUsageStrategy value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 86 of file OnDemandCapacityReservationOptions.h.

◆ SetUsageStrategy() [2/2]

void Aws::EMR::Model::OnDemandCapacityReservationOptions::SetUsageStrategy ( OnDemandCapacityReservationUsageStrategy &&  value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 101 of file OnDemandCapacityReservationOptions.h.

◆ UsageStrategyHasBeenSet()

bool Aws::EMR::Model::OnDemandCapacityReservationOptions::UsageStrategyHasBeenSet ( ) const
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 71 of file OnDemandCapacityReservationOptions.h.

◆ WithCapacityReservationPreference() [1/2]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationPreference ( const OnDemandCapacityReservationPreference value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 182 of file OnDemandCapacityReservationOptions.h.

◆ WithCapacityReservationPreference() [2/2]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationPreference ( OnDemandCapacityReservationPreference &&  value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 192 of file OnDemandCapacityReservationOptions.h.

◆ WithCapacityReservationResourceGroupArn() [1/3]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationResourceGroupArn ( Aws::String &&  value)
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 235 of file OnDemandCapacityReservationOptions.h.

◆ WithCapacityReservationResourceGroupArn() [2/3]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationResourceGroupArn ( const Aws::String value)
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 229 of file OnDemandCapacityReservationOptions.h.

◆ WithCapacityReservationResourceGroupArn() [3/3]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationResourceGroupArn ( const char *  value)
inline

The ARN of the Capacity Reservation resource group in which to run the instance.

Definition at line 241 of file OnDemandCapacityReservationOptions.h.

◆ WithUsageStrategy() [1/2]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithUsageStrategy ( const OnDemandCapacityReservationUsageStrategy value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 116 of file OnDemandCapacityReservationOptions.h.

◆ WithUsageStrategy() [2/2]

OnDemandCapacityReservationOptions& Aws::EMR::Model::OnDemandCapacityReservationOptions::WithUsageStrategy ( OnDemandCapacityReservationUsageStrategy &&  value)
inline

Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.

Definition at line 131 of file OnDemandCapacityReservationOptions.h.


The documentation for this class was generated from the following file: