AWS SDK for C++  1.9.157
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 
52  {
53  public:
58 
59 
63  inline const Aws::String& GetContainerName() const{ return m_containerName; }
64 
68  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
69 
73  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
74 
78  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
79 
83  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
84 
88  inline ContainerDependency& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
89 
93  inline ContainerDependency& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
94 
98  inline ContainerDependency& WithContainerName(const char* value) { SetContainerName(value); return *this;}
99 
100 
118  inline const ContainerCondition& GetCondition() const{ return m_condition; }
119 
137  inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
138 
156  inline void SetCondition(const ContainerCondition& value) { m_conditionHasBeenSet = true; m_condition = value; }
157 
175  inline void SetCondition(ContainerCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
176 
194  inline ContainerDependency& WithCondition(const ContainerCondition& value) { SetCondition(value); return *this;}
195 
213  inline ContainerDependency& WithCondition(ContainerCondition&& value) { SetCondition(std::move(value)); return *this;}
214 
215  private:
216 
217  Aws::String m_containerName;
218  bool m_containerNameHasBeenSet;
219 
220  ContainerCondition m_condition;
221  bool m_conditionHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace ECS
226 } // namespace Aws
Aws::ECS::Model::ContainerDependency::WithCondition
ContainerDependency & WithCondition(ContainerCondition &&value)
Definition: ContainerDependency.h:213
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ContainerDependency::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: ContainerDependency.h:68
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:78
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:52
Aws::ECS::Model::ContainerDependency::WithCondition
ContainerDependency & WithCondition(const ContainerCondition &value)
Definition: ContainerDependency.h:194
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:118
Aws::ECS::Model::ContainerDependency::WithContainerName
ContainerDependency & WithContainerName(Aws::String &&value)
Definition: ContainerDependency.h:93
Aws::ECS::Model::ContainerDependency::SetCondition
void SetCondition(const ContainerCondition &value)
Definition: ContainerDependency.h:156
Aws::ECS::Model::ContainerDependency::SetContainerName
void SetContainerName(const char *value)
Definition: ContainerDependency.h:83
Aws::ECS::Model::ContainerDependency::ConditionHasBeenSet
bool ConditionHasBeenSet() const
Definition: ContainerDependency.h:137
Aws::ECS::Model::ContainerDependency::SetCondition
void SetCondition(ContainerCondition &&value)
Definition: ContainerDependency.h:175
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
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:88
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ContainerDependency::GetContainerName
const Aws::String & GetContainerName() const
Definition: ContainerDependency.h:63
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:73
ECS_EXPORTS.h
Aws::ECS::Model::ContainerDependency::WithContainerName
ContainerDependency & WithContainerName(const char *value)
Definition: ContainerDependency.h:98