AWS SDK for C++  1.9.19
AWS SDK for C++
OnDemandCapacityReservationOptions.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace EMR
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
56  inline const OnDemandCapacityReservationUsageStrategy& GetUsageStrategy() const{ return m_usageStrategy; }
57 
71  inline bool UsageStrategyHasBeenSet() const { return m_usageStrategyHasBeenSet; }
72 
86  inline void SetUsageStrategy(const OnDemandCapacityReservationUsageStrategy& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = value; }
87 
101  inline void SetUsageStrategy(OnDemandCapacityReservationUsageStrategy&& value) { m_usageStrategyHasBeenSet = true; m_usageStrategy = std::move(value); }
102 
116  inline OnDemandCapacityReservationOptions& WithUsageStrategy(const OnDemandCapacityReservationUsageStrategy& value) { SetUsageStrategy(value); return *this;}
117 
131  inline OnDemandCapacityReservationOptions& WithUsageStrategy(OnDemandCapacityReservationUsageStrategy&& value) { SetUsageStrategy(std::move(value)); return *this;}
132 
133 
142  inline const OnDemandCapacityReservationPreference& GetCapacityReservationPreference() const{ return m_capacityReservationPreference; }
143 
152  inline bool CapacityReservationPreferenceHasBeenSet() const { return m_capacityReservationPreferenceHasBeenSet; }
153 
162  inline void SetCapacityReservationPreference(const OnDemandCapacityReservationPreference& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = value; }
163 
172  inline void SetCapacityReservationPreference(OnDemandCapacityReservationPreference&& value) { m_capacityReservationPreferenceHasBeenSet = true; m_capacityReservationPreference = std::move(value); }
173 
182  inline OnDemandCapacityReservationOptions& WithCapacityReservationPreference(const OnDemandCapacityReservationPreference& value) { SetCapacityReservationPreference(value); return *this;}
183 
192  inline OnDemandCapacityReservationOptions& WithCapacityReservationPreference(OnDemandCapacityReservationPreference&& value) { SetCapacityReservationPreference(std::move(value)); return *this;}
193 
194 
199  inline const Aws::String& GetCapacityReservationResourceGroupArn() const{ return m_capacityReservationResourceGroupArn; }
200 
205  inline bool CapacityReservationResourceGroupArnHasBeenSet() const { return m_capacityReservationResourceGroupArnHasBeenSet; }
206 
211  inline void SetCapacityReservationResourceGroupArn(const Aws::String& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = value; }
212 
217  inline void SetCapacityReservationResourceGroupArn(Aws::String&& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = std::move(value); }
218 
223  inline void SetCapacityReservationResourceGroupArn(const char* value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn.assign(value); }
224 
229  inline OnDemandCapacityReservationOptions& WithCapacityReservationResourceGroupArn(const Aws::String& value) { SetCapacityReservationResourceGroupArn(value); return *this;}
230 
235  inline OnDemandCapacityReservationOptions& WithCapacityReservationResourceGroupArn(Aws::String&& value) { SetCapacityReservationResourceGroupArn(std::move(value)); return *this;}
236 
241  inline OnDemandCapacityReservationOptions& WithCapacityReservationResourceGroupArn(const char* value) { SetCapacityReservationResourceGroupArn(value); return *this;}
242 
243  private:
244 
246  bool m_usageStrategyHasBeenSet;
247 
248  OnDemandCapacityReservationPreference m_capacityReservationPreference;
249  bool m_capacityReservationPreferenceHasBeenSet;
250 
251  Aws::String m_capacityReservationResourceGroupArn;
252  bool m_capacityReservationResourceGroupArnHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace EMR
257 } // namespace Aws
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationResourceGroupArn
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(const Aws::String &value)
Definition: OnDemandCapacityReservationOptions.h:229
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationPreference
void SetCapacityReservationPreference(OnDemandCapacityReservationPreference &&value)
Definition: OnDemandCapacityReservationOptions.h:172
EMR_EXPORTS.h
Aws::EMR::Model::OnDemandCapacityReservationOptions::GetCapacityReservationResourceGroupArn
const Aws::String & GetCapacityReservationResourceGroupArn() const
Definition: OnDemandCapacityReservationOptions.h:199
Aws::EMR::Model::OnDemandCapacityReservationOptions::UsageStrategyHasBeenSet
bool UsageStrategyHasBeenSet() const
Definition: OnDemandCapacityReservationOptions.h:71
OnDemandCapacityReservationUsageStrategy.h
Aws::EMR::Model::OnDemandCapacityReservationOptions
Definition: OnDemandCapacityReservationOptions.h:35
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationResourceGroupArn
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(const char *value)
Definition: OnDemandCapacityReservationOptions.h:241
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(Aws::String &&value)
Definition: OnDemandCapacityReservationOptions.h:217
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationPreference
void SetCapacityReservationPreference(const OnDemandCapacityReservationPreference &value)
Definition: OnDemandCapacityReservationOptions.h:162
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithUsageStrategy
OnDemandCapacityReservationOptions & WithUsageStrategy(const OnDemandCapacityReservationUsageStrategy &value)
Definition: OnDemandCapacityReservationOptions.h:116
Aws::EMR::Model::OnDemandCapacityReservationOptions::CapacityReservationResourceGroupArnHasBeenSet
bool CapacityReservationResourceGroupArnHasBeenSet() const
Definition: OnDemandCapacityReservationOptions.h:205
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::OnDemandCapacityReservationOptions::OnDemandCapacityReservationOptions
OnDemandCapacityReservationOptions()
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithUsageStrategy
OnDemandCapacityReservationOptions & WithUsageStrategy(OnDemandCapacityReservationUsageStrategy &&value)
Definition: OnDemandCapacityReservationOptions.h:131
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetUsageStrategy
void SetUsageStrategy(const OnDemandCapacityReservationUsageStrategy &value)
Definition: OnDemandCapacityReservationOptions.h:86
Aws::EMR::Model::OnDemandCapacityReservationOptions::GetUsageStrategy
const OnDemandCapacityReservationUsageStrategy & GetUsageStrategy() const
Definition: OnDemandCapacityReservationOptions.h:56
Aws::EMR::Model::OnDemandCapacityReservationUsageStrategy
OnDemandCapacityReservationUsageStrategy
Definition: OnDemandCapacityReservationUsageStrategy.h:17
Aws::EMR::Model::OnDemandCapacityReservationOptions::GetCapacityReservationPreference
const OnDemandCapacityReservationPreference & GetCapacityReservationPreference() const
Definition: OnDemandCapacityReservationOptions.h:142
Aws::EMR::Model::OnDemandCapacityReservationPreference
OnDemandCapacityReservationPreference
Definition: OnDemandCapacityReservationPreference.h:17
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(const char *value)
Definition: OnDemandCapacityReservationOptions.h:223
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetCapacityReservationResourceGroupArn
void SetCapacityReservationResourceGroupArn(const Aws::String &value)
Definition: OnDemandCapacityReservationOptions.h:211
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationPreference
OnDemandCapacityReservationOptions & WithCapacityReservationPreference(OnDemandCapacityReservationPreference &&value)
Definition: OnDemandCapacityReservationOptions.h:192
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationResourceGroupArn
OnDemandCapacityReservationOptions & WithCapacityReservationResourceGroupArn(Aws::String &&value)
Definition: OnDemandCapacityReservationOptions.h:235
Aws::EMR::Model::OnDemandCapacityReservationOptions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::OnDemandCapacityReservationOptions::WithCapacityReservationPreference
OnDemandCapacityReservationOptions & WithCapacityReservationPreference(const OnDemandCapacityReservationPreference &value)
Definition: OnDemandCapacityReservationOptions.h:182
Aws::EMR::Model::OnDemandCapacityReservationOptions::operator=
OnDemandCapacityReservationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::OnDemandCapacityReservationOptions::CapacityReservationPreferenceHasBeenSet
bool CapacityReservationPreferenceHasBeenSet() const
Definition: OnDemandCapacityReservationOptions.h:152
Aws::EMR::Model::OnDemandCapacityReservationOptions::SetUsageStrategy
void SetUsageStrategy(OnDemandCapacityReservationUsageStrategy &&value)
Definition: OnDemandCapacityReservationOptions.h:101
OnDemandCapacityReservationPreference.h
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::OnDemandCapacityReservationOptions::OnDemandCapacityReservationOptions
OnDemandCapacityReservationOptions(Aws::Utils::Json::JsonView jsonValue)