AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ManagedAgentStateChange.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/ManagedAgentName.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
30 public:
31 AWS_ECS_API ManagedAgentStateChange() = default;
35
37
40 inline const Aws::String& GetContainerName() const { return m_containerName; }
41 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
42 template <typename ContainerNameT = Aws::String>
43 void SetContainerName(ContainerNameT&& value) {
44 m_containerNameHasBeenSet = true;
45 m_containerName = std::forward<ContainerNameT>(value);
46 }
47 template <typename ContainerNameT = Aws::String>
48 ManagedAgentStateChange& WithContainerName(ContainerNameT&& value) {
49 SetContainerName(std::forward<ContainerNameT>(value));
50 return *this;
51 }
53
55
58 inline ManagedAgentName GetManagedAgentName() const { return m_managedAgentName; }
59 inline bool ManagedAgentNameHasBeenSet() const { return m_managedAgentNameHasBeenSet; }
61 m_managedAgentNameHasBeenSet = true;
62 m_managedAgentName = value;
63 }
66 return *this;
67 }
69
71
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template <typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) {
78 m_statusHasBeenSet = true;
79 m_status = std::forward<StatusT>(value);
80 }
81 template <typename StatusT = Aws::String>
83 SetStatus(std::forward<StatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetReason() const { return m_reason; }
93 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
94 template <typename ReasonT = Aws::String>
95 void SetReason(ReasonT&& value) {
96 m_reasonHasBeenSet = true;
97 m_reason = std::forward<ReasonT>(value);
98 }
99 template <typename ReasonT = Aws::String>
101 SetReason(std::forward<ReasonT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_containerName;
107
109
110 Aws::String m_status;
111
112 Aws::String m_reason;
113 bool m_containerNameHasBeenSet = false;
114 bool m_managedAgentNameHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_reasonHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ECS
121} // namespace Aws
ManagedAgentStateChange & WithStatus(StatusT &&value)
ManagedAgentStateChange & WithManagedAgentName(ManagedAgentName value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ManagedAgentStateChange(Aws::Utils::Json::JsonView jsonValue)
ManagedAgentStateChange & WithReason(ReasonT &&value)
AWS_ECS_API ManagedAgentStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedAgentStateChange & WithContainerName(ContainerNameT &&value)
AWS_ECS_API ManagedAgentStateChange()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue