AWS SDK for C++  1.9.73
AWS SDK for C++
ContainerDependency.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 
51  {
52  public:
57 
58 
62  inline const Aws::String& GetContainerName() const{ return m_containerName; }
63 
67  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
68 
72  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
73 
77  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
78 
82  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
83 
87  inline ContainerDependency& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
88 
92  inline ContainerDependency& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
93 
97  inline ContainerDependency& WithContainerName(const char* value) { SetContainerName(value); return *this;}
98 
99 
117  inline const ContainerCondition& GetCondition() const{ return m_condition; }
118 
136  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
137 
155  inline void SetCondition(const ContainerCondition& value) { m_conditionHasBeenSet = true; m_condition = value; }
156 
174  inline void SetCondition(ContainerCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
175 
193  inline ContainerDependency& WithCondition(const ContainerCondition& value) { SetCondition(value); return *this;}
194 
212  inline ContainerDependency& WithCondition(ContainerCondition&& value) { SetCondition(std::move(value)); return *this;}
213 
214  private:
215 
216  Aws::String m_containerName;
217  bool m_containerNameHasBeenSet;
218 
219  ContainerCondition m_condition;
220  bool m_conditionHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace ECS
225 } // namespace Aws
Aws::ECS::Model::ContainerDependency::WithCondition
ContainerDependency & WithCondition(ContainerCondition &&value)
Definition: ContainerDependency.h:212
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ContainerDependency::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: ContainerDependency.h:67
Aws::ECS::Model::ContainerDependency::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ContainerCondition.h
Aws::ECS::Model::ContainerDependency::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: ContainerDependency.h:77
Aws::ECS::Model::ContainerCondition
ContainerCondition
Definition: ContainerCondition.h:17
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ContainerDependency
Definition: ContainerDependency.h:51
Aws::ECS::Model::ContainerDependency::WithCondition
ContainerDependency & WithCondition(const ContainerCondition &value)
Definition: ContainerDependency.h:193
Aws::ECS::Model::ContainerDependency::ContainerDependency
ContainerDependency()
Aws::ECS::Model::ContainerDependency::ContainerDependency
ContainerDependency(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ContainerDependency::GetCondition
const ContainerCondition & GetCondition() const
Definition: ContainerDependency.h:117
Aws::ECS::Model::ContainerDependency::WithContainerName
ContainerDependency & WithContainerName(Aws::String &&value)
Definition: ContainerDependency.h:92
Aws::ECS::Model::ContainerDependency::SetCondition
void SetCondition(const ContainerCondition &value)
Definition: ContainerDependency.h:155
Aws::ECS::Model::ContainerDependency::SetContainerName
void SetContainerName(const char *value)
Definition: ContainerDependency.h:82
Aws::ECS::Model::ContainerDependency::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: ContainerDependency.h:136
Aws::ECS::Model::ContainerDependency::SetCondition
void SetCondition(ContainerCondition &&value)
Definition: ContainerDependency.h:174
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::ContainerDependency::operator=
ContainerDependency & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ContainerDependency::WithContainerName
ContainerDependency & WithContainerName(const Aws::String &value)
Definition: ContainerDependency.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ContainerDependency::GetContainerName
const Aws::String & GetContainerName() const
Definition: ContainerDependency.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ContainerDependency::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: ContainerDependency.h:72
ECS_EXPORTS.h
Aws::ECS::Model::ContainerDependency::WithContainerName
ContainerDependency & WithContainerName(const char *value)
Definition: ContainerDependency.h:97