AWS SDK for C++  1.9.159
AWS SDK for C++
TaskDefinitionPlacementConstraint.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 
50  inline const TaskDefinitionPlacementConstraintType& GetType() const{ return m_type; }
51 
56  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 
62  inline void SetType(const TaskDefinitionPlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
63 
68  inline void SetType(TaskDefinitionPlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
69 
74  inline TaskDefinitionPlacementConstraint& WithType(const TaskDefinitionPlacementConstraintType& value) { SetType(value); return *this;}
75 
80  inline TaskDefinitionPlacementConstraint& WithType(TaskDefinitionPlacementConstraintType&& value) { SetType(std::move(value)); return *this;}
81 
82 
90  inline const Aws::String& GetExpression() const{ return m_expression; }
91 
99  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
100 
108  inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
109 
117  inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
118 
126  inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
127 
135  inline TaskDefinitionPlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
136 
144  inline TaskDefinitionPlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
145 
153  inline TaskDefinitionPlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
154 
155  private:
156 
158  bool m_typeHasBeenSet;
159 
160  Aws::String m_expression;
161  bool m_expressionHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace ECS
166 } // namespace Aws
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::TaskDefinitionPlacementConstraint
Definition: TaskDefinitionPlacementConstraint.h:38
Aws::ECS::Model::TaskDefinitionPlacementConstraint::SetExpression
void SetExpression(Aws::String &&value)
Definition: TaskDefinitionPlacementConstraint.h:117
Aws::ECS::Model::TaskDefinitionPlacementConstraint::WithExpression
TaskDefinitionPlacementConstraint & WithExpression(const Aws::String &value)
Definition: TaskDefinitionPlacementConstraint.h:135
Aws::ECS::Model::TaskDefinitionPlacementConstraint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
TaskDefinitionPlacementConstraintType.h
Aws::ECS::Model::TaskDefinitionPlacementConstraint::TaskDefinitionPlacementConstraint
TaskDefinitionPlacementConstraint()
Aws::ECS::Model::TaskDefinitionPlacementConstraint::WithExpression
TaskDefinitionPlacementConstraint & WithExpression(const char *value)
Definition: TaskDefinitionPlacementConstraint.h:153
Aws::ECS::Model::TaskDefinitionPlacementConstraint::ExpressionHasBeenSet
bool ExpressionHasBeenSet() const
Definition: TaskDefinitionPlacementConstraint.h:99
Aws::ECS::Model::TaskDefinitionPlacementConstraint::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: TaskDefinitionPlacementConstraint.h:56
Aws::ECS::Model::TaskDefinitionPlacementConstraint::SetType
void SetType(const TaskDefinitionPlacementConstraintType &value)
Definition: TaskDefinitionPlacementConstraint.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::TaskDefinitionPlacementConstraint::GetExpression
const Aws::String & GetExpression() const
Definition: TaskDefinitionPlacementConstraint.h:90
Aws::ECS::Model::TaskDefinitionPlacementConstraintType
TaskDefinitionPlacementConstraintType
Definition: TaskDefinitionPlacementConstraintType.h:17
Aws::ECS::Model::TaskDefinitionPlacementConstraint::TaskDefinitionPlacementConstraint
TaskDefinitionPlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::TaskDefinitionPlacementConstraint::SetExpression
void SetExpression(const Aws::String &value)
Definition: TaskDefinitionPlacementConstraint.h:108
Aws::ECS::Model::TaskDefinitionPlacementConstraint::WithExpression
TaskDefinitionPlacementConstraint & WithExpression(Aws::String &&value)
Definition: TaskDefinitionPlacementConstraint.h:144
Aws::ECS::Model::TaskDefinitionPlacementConstraint::SetExpression
void SetExpression(const char *value)
Definition: TaskDefinitionPlacementConstraint.h:126
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::TaskDefinitionPlacementConstraint::SetType
void SetType(TaskDefinitionPlacementConstraintType &&value)
Definition: TaskDefinitionPlacementConstraint.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::TaskDefinitionPlacementConstraint::WithType
TaskDefinitionPlacementConstraint & WithType(const TaskDefinitionPlacementConstraintType &value)
Definition: TaskDefinitionPlacementConstraint.h:74
Aws::ECS::Model::TaskDefinitionPlacementConstraint::WithType
TaskDefinitionPlacementConstraint & WithType(TaskDefinitionPlacementConstraintType &&value)
Definition: TaskDefinitionPlacementConstraint.h:80
Aws::ECS::Model::TaskDefinitionPlacementConstraint::GetType
const TaskDefinitionPlacementConstraintType & GetType() const
Definition: TaskDefinitionPlacementConstraint.h:50
Aws::ECS::Model::TaskDefinitionPlacementConstraint::operator=
TaskDefinitionPlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h