AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ContainerDependency.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/ContainerCondition.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
52 public:
53 AWS_ECS_API ContainerDependency() = default;
57
59
62 inline const Aws::String& GetContainerName() const { return m_containerName; }
63 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
64 template <typename ContainerNameT = Aws::String>
65 void SetContainerName(ContainerNameT&& value) {
66 m_containerNameHasBeenSet = true;
67 m_containerName = std::forward<ContainerNameT>(value);
68 }
69 template <typename ContainerNameT = Aws::String>
70 ContainerDependency& WithContainerName(ContainerNameT&& value) {
71 SetContainerName(std::forward<ContainerNameT>(value));
72 return *this;
73 }
75
77
94 inline ContainerCondition GetCondition() const { return m_condition; }
95 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
96 inline void SetCondition(ContainerCondition value) {
97 m_conditionHasBeenSet = true;
98 m_condition = value;
99 }
101 SetCondition(value);
102 return *this;
103 }
105 private:
106 Aws::String m_containerName;
107
109 bool m_containerNameHasBeenSet = false;
110 bool m_conditionHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace ECS
115} // namespace Aws
const Aws::String & GetContainerName() const
ContainerDependency & WithCondition(ContainerCondition value)
ContainerCondition GetCondition() const
AWS_ECS_API ContainerDependency()=default
AWS_ECS_API ContainerDependency & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCondition(ContainerCondition value)
ContainerDependency & WithContainerName(ContainerNameT &&value)
AWS_ECS_API ContainerDependency(Aws::Utils::Json::JsonView jsonValue)
void SetContainerName(ContainerNameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue