AWS SDK for C++  1.9.19
AWS SDK for C++
PlacementType.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
48 
54  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
55 
61  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
62 
68  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
69 
75  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
76 
82  inline PlacementType& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
83 
89  inline PlacementType& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
90 
96  inline PlacementType& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
97 
98 
107  inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
108 
117  inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
118 
127  inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
128 
137  inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
138 
147  inline PlacementType& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
148 
157  inline PlacementType& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
158 
167  inline PlacementType& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
168 
177  inline PlacementType& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
178 
187  inline PlacementType& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
188 
189  private:
190 
191  Aws::String m_availabilityZone;
192  bool m_availabilityZoneHasBeenSet;
193 
194  Aws::Vector<Aws::String> m_availabilityZones;
195  bool m_availabilityZonesHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace EMR
200 } // namespace Aws
Aws::EMR::Model::PlacementType::WithAvailabilityZone
PlacementType & WithAvailabilityZone(const char *value)
Definition: PlacementType.h:96
Aws::EMR::Model::PlacementType::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: PlacementType.h:68
EMR_EXPORTS.h
Aws::EMR::Model::PlacementType::WithAvailabilityZones
PlacementType & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
Definition: PlacementType.h:157
Aws::EMR::Model::PlacementType::SetAvailabilityZones
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
Definition: PlacementType.h:127
Aws::EMR::Model::PlacementType::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: PlacementType.h:47
Aws::EMR::Model::PlacementType::AddAvailabilityZones
PlacementType & AddAvailabilityZones(Aws::String &&value)
Definition: PlacementType.h:177
Aws::EMR::Model::PlacementType::operator=
PlacementType & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::PlacementType
Definition: PlacementType.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EMR::Model::PlacementType::AvailabilityZonesHasBeenSet
bool AvailabilityZonesHasBeenSet() const
Definition: PlacementType.h:117
Aws::EMR::Model::PlacementType::PlacementType
PlacementType()
Aws::EMR::Model::PlacementType::WithAvailabilityZone
PlacementType & WithAvailabilityZone(Aws::String &&value)
Definition: PlacementType.h:89
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::PlacementType::AddAvailabilityZones
PlacementType & AddAvailabilityZones(const Aws::String &value)
Definition: PlacementType.h:167
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::PlacementType::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::PlacementType::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: PlacementType.h:54
Aws::EMR::Model::PlacementType::AddAvailabilityZones
PlacementType & AddAvailabilityZones(const char *value)
Definition: PlacementType.h:187
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::PlacementType::GetAvailabilityZones
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
Definition: PlacementType.h:107
Aws::EMR::Model::PlacementType::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: PlacementType.h:61
Aws::EMR::Model::PlacementType::WithAvailabilityZone
PlacementType & WithAvailabilityZone(const Aws::String &value)
Definition: PlacementType.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::PlacementType::PlacementType
PlacementType(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::PlacementType::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: PlacementType.h:75
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::PlacementType::SetAvailabilityZones
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
Definition: PlacementType.h:137
Aws::EMR::Model::PlacementType::WithAvailabilityZones
PlacementType & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
Definition: PlacementType.h:147