AWS SDK for C++  1.9.153
AWS SDK for C++
PlacementConstraint.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 
38  {
39  public:
44 
45 
52  inline const PlacementConstraintType& GetType() const{ return m_type; }
53 
60  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 
68  inline void SetType(const PlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
69 
76  inline void SetType(PlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
77 
84  inline PlacementConstraint& WithType(const PlacementConstraintType& value) { SetType(value); return *this;}
85 
92  inline PlacementConstraint& WithType(PlacementConstraintType&& value) { SetType(std::move(value)); return *this;}
93 
94 
104  inline const Aws::String& GetExpression() const{ return m_expression; }
105 
115  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
116 
126  inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
127 
137  inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
138 
148  inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
149 
159  inline PlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
160 
170  inline PlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
171 
181  inline PlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
182 
183  private:
184 
186  bool m_typeHasBeenSet;
187 
188  Aws::String m_expression;
189  bool m_expressionHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace ECS
194 } // namespace Aws
Aws::ECS::Model::PlacementConstraint::PlacementConstraint
PlacementConstraint()
Aws::ECS::Model::PlacementConstraint::WithExpression
PlacementConstraint & WithExpression(const char *value)
Definition: PlacementConstraint.h:181
Aws::ECS::Model::PlacementConstraint::SetExpression
void SetExpression(const char *value)
Definition: PlacementConstraint.h:148
Aws::ECS::Model::PlacementConstraint::GetExpression
const Aws::String & GetExpression() const
Definition: PlacementConstraint.h:104
Aws::ECS::Model::PlacementConstraint::SetType
void SetType(PlacementConstraintType &&value)
Definition: PlacementConstraint.h:76
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::PlacementConstraintType
PlacementConstraintType
Definition: PlacementConstraintType.h:17
Aws::ECS::Model::PlacementConstraint::SetExpression
void SetExpression(const Aws::String &value)
Definition: PlacementConstraint.h:126
PlacementConstraintType.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PlacementConstraint::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PlacementConstraint.h:60
Aws::ECS::Model::PlacementConstraint
Definition: PlacementConstraint.h:38
Aws::ECS::Model::PlacementConstraint::ExpressionHasBeenSet
bool ExpressionHasBeenSet() const
Definition: PlacementConstraint.h:115
Aws::ECS::Model::PlacementConstraint::WithExpression
PlacementConstraint & WithExpression(Aws::String &&value)
Definition: PlacementConstraint.h:170
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::PlacementConstraint::PlacementConstraint
PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::PlacementConstraint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::PlacementConstraint::WithType
PlacementConstraint & WithType(const PlacementConstraintType &value)
Definition: PlacementConstraint.h:84
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::PlacementConstraint::WithType
PlacementConstraint & WithType(PlacementConstraintType &&value)
Definition: PlacementConstraint.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::PlacementConstraint::SetExpression
void SetExpression(Aws::String &&value)
Definition: PlacementConstraint.h:137
Aws::ECS::Model::PlacementConstraint::GetType
const PlacementConstraintType & GetType() const
Definition: PlacementConstraint.h:52
ECS_EXPORTS.h
Aws::ECS::Model::PlacementConstraint::SetType
void SetType(const PlacementConstraintType &value)
Definition: PlacementConstraint.h:68
Aws::ECS::Model::PlacementConstraint::WithExpression
PlacementConstraint & WithExpression(const Aws::String &value)
Definition: PlacementConstraint.h:159
Aws::ECS::Model::PlacementConstraint::operator=
PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)