AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedAgentStateChange.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/ManagedAgentName.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ECS_API ManagedAgentStateChange() = default;
40
41
43
46 inline const Aws::String& GetContainerName() const { return m_containerName; }
47 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
48 template<typename ContainerNameT = Aws::String>
49 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
50 template<typename ContainerNameT = Aws::String>
51 ManagedAgentStateChange& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
53
55
58 inline ManagedAgentName GetManagedAgentName() const { return m_managedAgentName; }
59 inline bool ManagedAgentNameHasBeenSet() const { return m_managedAgentNameHasBeenSet; }
60 inline void SetManagedAgentName(ManagedAgentName value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = value; }
63
65
68 inline const Aws::String& GetStatus() const { return m_status; }
69 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
70 template<typename StatusT = Aws::String>
71 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
72 template<typename StatusT = Aws::String>
73 ManagedAgentStateChange& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
75
77
80 inline const Aws::String& GetReason() const { return m_reason; }
81 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
82 template<typename ReasonT = Aws::String>
83 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
84 template<typename ReasonT = Aws::String>
85 ManagedAgentStateChange& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
87 private:
88
89 Aws::String m_containerName;
90 bool m_containerNameHasBeenSet = false;
91
93 bool m_managedAgentNameHasBeenSet = false;
94
95 Aws::String m_status;
96 bool m_statusHasBeenSet = false;
97
98 Aws::String m_reason;
99 bool m_reasonHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ECS
104} // 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