7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/OnDemandCapacityReservationPreference.h>
10#include <aws/elasticmapreduce/model/OnDemandCapacityReservationUsageStrategy.h>
54 m_usageStrategyHasBeenSet =
true;
55 m_usageStrategy = value;
75 m_capacityReservationPreferenceHasBeenSet =
true;
76 m_capacityReservationPreference = value;
91 template <
typename CapacityReservationResourceGroupArnT = Aws::String>
93 m_capacityReservationResourceGroupArnHasBeenSet =
true;
94 m_capacityReservationResourceGroupArn = std::forward<CapacityReservationResourceGroupArnT>(value);
96 template <
typename CapacityReservationResourceGroupArnT = Aws::String>
108 bool m_usageStrategyHasBeenSet =
false;
109 bool m_capacityReservationPreferenceHasBeenSet =
false;
110 bool m_capacityReservationResourceGroupArnHasBeenSet =
false;
OnDemandCapacityReservationPreference GetCapacityReservationPreference() const
const Aws::String & GetCapacityReservationResourceGroupArn() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(CapacityReservationResourceGroupArnT &&value)
AWS_EMR_API OnDemandCapacityReservationOptions()=default
void SetCapacityReservationResourceGroupArn(CapacityReservationResourceGroupArnT &&value)
AWS_EMR_API OnDemandCapacityReservationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
OnDemandCapacityReservationUsageStrategy GetUsageStrategy() const
bool CapacityReservationPreferenceHasBeenSet() const
void SetCapacityReservationPreference(OnDemandCapacityReservationPreference value)
AWS_EMR_API OnDemandCapacityReservationOptions(Aws::Utils::Json::JsonView jsonValue)
OnDemandCapacityReservationOptions & WithUsageStrategy(OnDemandCapacityReservationUsageStrategy value)
OnDemandCapacityReservationOptions & WithCapacityReservationPreference(OnDemandCapacityReservationPreference value)
void SetUsageStrategy(OnDemandCapacityReservationUsageStrategy value)
bool CapacityReservationResourceGroupArnHasBeenSet() const
bool UsageStrategyHasBeenSet() const
OnDemandCapacityReservationPreference
OnDemandCapacityReservationUsageStrategy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue