AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceResizePolicy.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EMR_API InstanceResizePolicy();
41
42
44
48 inline const Aws::Vector<Aws::String>& GetInstancesToTerminate() const{ return m_instancesToTerminate; }
49 inline bool InstancesToTerminateHasBeenSet() const { return m_instancesToTerminateHasBeenSet; }
50 inline void SetInstancesToTerminate(const Aws::Vector<Aws::String>& value) { m_instancesToTerminateHasBeenSet = true; m_instancesToTerminate = value; }
51 inline void SetInstancesToTerminate(Aws::Vector<Aws::String>&& value) { m_instancesToTerminateHasBeenSet = true; m_instancesToTerminate = std::move(value); }
54 inline InstanceResizePolicy& AddInstancesToTerminate(const Aws::String& value) { m_instancesToTerminateHasBeenSet = true; m_instancesToTerminate.push_back(value); return *this; }
55 inline InstanceResizePolicy& AddInstancesToTerminate(Aws::String&& value) { m_instancesToTerminateHasBeenSet = true; m_instancesToTerminate.push_back(std::move(value)); return *this; }
56 inline InstanceResizePolicy& AddInstancesToTerminate(const char* value) { m_instancesToTerminateHasBeenSet = true; m_instancesToTerminate.push_back(value); return *this; }
58
60
64 inline const Aws::Vector<Aws::String>& GetInstancesToProtect() const{ return m_instancesToProtect; }
65 inline bool InstancesToProtectHasBeenSet() const { return m_instancesToProtectHasBeenSet; }
66 inline void SetInstancesToProtect(const Aws::Vector<Aws::String>& value) { m_instancesToProtectHasBeenSet = true; m_instancesToProtect = value; }
67 inline void SetInstancesToProtect(Aws::Vector<Aws::String>&& value) { m_instancesToProtectHasBeenSet = true; m_instancesToProtect = std::move(value); }
70 inline InstanceResizePolicy& AddInstancesToProtect(const Aws::String& value) { m_instancesToProtectHasBeenSet = true; m_instancesToProtect.push_back(value); return *this; }
71 inline InstanceResizePolicy& AddInstancesToProtect(Aws::String&& value) { m_instancesToProtectHasBeenSet = true; m_instancesToProtect.push_back(std::move(value)); return *this; }
72 inline InstanceResizePolicy& AddInstancesToProtect(const char* value) { m_instancesToProtectHasBeenSet = true; m_instancesToProtect.push_back(value); return *this; }
74
76
80 inline int GetInstanceTerminationTimeout() const{ return m_instanceTerminationTimeout; }
81 inline bool InstanceTerminationTimeoutHasBeenSet() const { return m_instanceTerminationTimeoutHasBeenSet; }
82 inline void SetInstanceTerminationTimeout(int value) { m_instanceTerminationTimeoutHasBeenSet = true; m_instanceTerminationTimeout = value; }
85 private:
86
87 Aws::Vector<Aws::String> m_instancesToTerminate;
88 bool m_instancesToTerminateHasBeenSet = false;
89
90 Aws::Vector<Aws::String> m_instancesToProtect;
91 bool m_instancesToProtectHasBeenSet = false;
92
93 int m_instanceTerminationTimeout;
94 bool m_instanceTerminationTimeoutHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EMR
99} // namespace Aws
InstanceResizePolicy & AddInstancesToTerminate(const Aws::String &value)
InstanceResizePolicy & WithInstanceTerminationTimeout(int value)
void SetInstancesToProtect(Aws::Vector< Aws::String > &&value)
InstanceResizePolicy & AddInstancesToProtect(Aws::String &&value)
InstanceResizePolicy & WithInstancesToProtect(const Aws::Vector< Aws::String > &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstancesToProtect(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetInstancesToProtect() const
InstanceResizePolicy & AddInstancesToTerminate(const char *value)
const Aws::Vector< Aws::String > & GetInstancesToTerminate() const
AWS_EMR_API InstanceResizePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceResizePolicy & WithInstancesToTerminate(const Aws::Vector< Aws::String > &value)
InstanceResizePolicy & WithInstancesToTerminate(Aws::Vector< Aws::String > &&value)
InstanceResizePolicy & AddInstancesToTerminate(Aws::String &&value)
void SetInstancesToTerminate(Aws::Vector< Aws::String > &&value)
InstanceResizePolicy & AddInstancesToProtect(const char *value)
InstanceResizePolicy & WithInstancesToProtect(Aws::Vector< Aws::String > &&value)
AWS_EMR_API InstanceResizePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetInstancesToTerminate(const Aws::Vector< Aws::String > &value)
InstanceResizePolicy & AddInstancesToProtect(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue