AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OnDemandCapacityReservationOptions.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/OnDemandCapacityReservationUsageStrategy.h>
9#include <aws/elasticmapreduce/model/OnDemandCapacityReservationPreference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
57 inline const OnDemandCapacityReservationUsageStrategy& GetUsageStrategy() const{ return m_usageStrategy; }
58 inline bool UsageStrategyHasBeenSet() const { return m_usageStrategyHasBeenSet; }
59 inline void SetUsageStrategy(const OnDemandCapacityReservationUsageStrategy& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = value; }
60 inline void SetUsageStrategy(OnDemandCapacityReservationUsageStrategy&& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = std::move(value); }
64
66
74 inline const OnDemandCapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
75 inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
76 inline void SetCapacityReservationPreference(const OnDemandCapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
77 inline void SetCapacityReservationPreference(OnDemandCapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
81
83
87 inline const Aws::String& GetCapacityReservationResourceGroupArn() const{ return m_capacityReservationResourceGroupArn; }
88 inline bool CapacityReservationResourceGroupArnHasBeenSet() const { return m_capacityReservationResourceGroupArnHasBeenSet; }
89 inline void SetCapacityReservationResourceGroupArn(const Aws::String& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = value; }
90 inline void SetCapacityReservationResourceGroupArn(Aws::String&& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = std::move(value); }
91 inline void SetCapacityReservationResourceGroupArn(const char* value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn.assign(value); }
96 private:
97
99 bool m_usageStrategyHasBeenSet = false;
100
101 OnDemandCapacityReservationPreference m_capacityReservationPreference;
102 bool m_capacityReservationPreferenceHasBeenSet = false;
103
104 Aws::String m_capacityReservationResourceGroupArn;
105 bool m_capacityReservationResourceGroupArnHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EMR
110} // namespace Aws
const OnDemandCapacityReservationUsageStrategy & GetUsageStrategy() const
OnDemandCapacityReservationOptions & WithUsageStrategy(OnDemandCapacityReservationUsageStrategy &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageStrategy(OnDemandCapacityReservationUsageStrategy &&value)
AWS_EMR_API OnDemandCapacityReservationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(const Aws::String &value)
AWS_EMR_API OnDemandCapacityReservationOptions(Aws::Utils::Json::JsonView jsonValue)
void SetUsageStrategy(const OnDemandCapacityReservationUsageStrategy &value)
OnDemandCapacityReservationOptions & WithUsageStrategy(const OnDemandCapacityReservationUsageStrategy &value)
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(Aws::String &&value)
void SetCapacityReservationPreference(OnDemandCapacityReservationPreference &&value)
void SetCapacityReservationPreference(const OnDemandCapacityReservationPreference &value)
OnDemandCapacityReservationOptions & WithCapacityReservationPreference(OnDemandCapacityReservationPreference &&value)
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(const char *value)
const OnDemandCapacityReservationPreference & GetCapacityReservationPreference() const
OnDemandCapacityReservationOptions & WithCapacityReservationPreference(const OnDemandCapacityReservationPreference &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue