AWS SDK for C++  1.9.40
AWS SDK for C++
PlacementStrategy.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
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 ECS
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
55  inline const PlacementStrategyType& GetType() const{ return m_type; }
56 
67  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 
79  inline void SetType(const PlacementStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
80 
91  inline void SetType(PlacementStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
92 
103  inline PlacementStrategy& WithType(const PlacementStrategyType& value) { SetType(value); return *this;}
104 
115  inline PlacementStrategy& WithType(PlacementStrategyType&& value) { SetType(std::move(value)); return *this;}
116 
117 
127  inline const Aws::String& GetField() const{ return m_field; }
128 
138  inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
139 
149  inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
150 
160  inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
161 
171  inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
172 
182  inline PlacementStrategy& WithField(const Aws::String& value) { SetField(value); return *this;}
183 
193  inline PlacementStrategy& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
194 
204  inline PlacementStrategy& WithField(const char* value) { SetField(value); return *this;}
205 
206  private:
207 
208  PlacementStrategyType m_type;
209  bool m_typeHasBeenSet;
210 
211  Aws::String m_field;
212  bool m_fieldHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace ECS
217 } // namespace Aws
Aws::ECS::Model::PlacementStrategy::SetField
void SetField(const Aws::String &value)
Definition: PlacementStrategy.h:149
PlacementStrategyType.h
Aws::ECS::Model::PlacementStrategy::PlacementStrategy
PlacementStrategy()
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::PlacementStrategy::FieldHasBeenSet
bool FieldHasBeenSet() const
Definition: PlacementStrategy.h:138
Aws::ECS::Model::PlacementStrategy::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PlacementStrategy.h:67
Aws::ECS::Model::PlacementStrategy::SetField
void SetField(Aws::String &&value)
Definition: PlacementStrategy.h:160
Aws::ECS::Model::PlacementStrategy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PlacementStrategy::WithType
PlacementStrategy & WithType(const PlacementStrategyType &value)
Definition: PlacementStrategy.h:103
Aws::ECS::Model::PlacementStrategy::SetType
void SetType(PlacementStrategyType &&value)
Definition: PlacementStrategy.h:91
Aws::ECS::Model::PlacementStrategyType
PlacementStrategyType
Definition: PlacementStrategyType.h:17
Aws::ECS::Model::PlacementStrategy::operator=
PlacementStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::PlacementStrategy::WithField
PlacementStrategy & WithField(const char *value)
Definition: PlacementStrategy.h:204
Aws::ECS::Model::PlacementStrategy::WithType
PlacementStrategy & WithType(PlacementStrategyType &&value)
Definition: PlacementStrategy.h:115
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::PlacementStrategy::SetField
void SetField(const char *value)
Definition: PlacementStrategy.h:171
Aws::ECS::Model::PlacementStrategy::SetType
void SetType(const PlacementStrategyType &value)
Definition: PlacementStrategy.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PlacementStrategy
Definition: PlacementStrategy.h:37
Aws::ECS::Model::PlacementStrategy::PlacementStrategy
PlacementStrategy(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::PlacementStrategy::WithField
PlacementStrategy & WithField(Aws::String &&value)
Definition: PlacementStrategy.h:193
Aws::ECS::Model::PlacementStrategy::WithField
PlacementStrategy & WithField(const Aws::String &value)
Definition: PlacementStrategy.h:182
Aws::ECS::Model::PlacementStrategy::GetType
const PlacementStrategyType & GetType() const
Definition: PlacementStrategy.h:55
Aws::ECS::Model::PlacementStrategy::GetField
const Aws::String & GetField() const
Definition: PlacementStrategy.h:127
ECS_EXPORTS.h