AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40
41
43
46 inline const Aws::String& GetContainerName() const{ return m_containerName; }
47 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
48 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
49 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
50 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
51 inline ManagedAgentStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
52 inline ManagedAgentStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
53 inline ManagedAgentStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;}
55
57
60 inline const ManagedAgentName& GetManagedAgentName() const{ return m_managedAgentName; }
61 inline bool ManagedAgentNameHasBeenSet() const { return m_managedAgentNameHasBeenSet; }
62 inline void SetManagedAgentName(const ManagedAgentName& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = value; }
63 inline void SetManagedAgentName(ManagedAgentName&& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = std::move(value); }
65 inline ManagedAgentStateChange& WithManagedAgentName(ManagedAgentName&& value) { SetManagedAgentName(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetStatus() const{ return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
75 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
76 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
77 inline ManagedAgentStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
78 inline ManagedAgentStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
79 inline ManagedAgentStateChange& WithStatus(const char* value) { SetStatus(value); return *this;}
81
83
86 inline const Aws::String& GetReason() const{ return m_reason; }
87 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
88 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
89 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
90 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
91 inline ManagedAgentStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;}
92 inline ManagedAgentStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
93 inline ManagedAgentStateChange& WithReason(const char* value) { SetReason(value); return *this;}
95 private:
96
97 Aws::String m_containerName;
98 bool m_containerNameHasBeenSet = false;
99
100 ManagedAgentName m_managedAgentName;
101 bool m_managedAgentNameHasBeenSet = false;
102
103 Aws::String m_status;
104 bool m_statusHasBeenSet = false;
105
106 Aws::String m_reason;
107 bool m_reasonHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ECS
112} // namespace Aws
void SetManagedAgentName(const ManagedAgentName &value)
ManagedAgentStateChange & WithManagedAgentName(const ManagedAgentName &value)
ManagedAgentStateChange & WithStatus(const char *value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedAgentStateChange & WithContainerName(Aws::String &&value)
AWS_ECS_API ManagedAgentStateChange(Aws::Utils::Json::JsonView jsonValue)
ManagedAgentStateChange & WithStatus(Aws::String &&value)
void SetManagedAgentName(ManagedAgentName &&value)
ManagedAgentStateChange & WithReason(Aws::String &&value)
ManagedAgentStateChange & WithManagedAgentName(ManagedAgentName &&value)
void SetContainerName(const Aws::String &value)
ManagedAgentStateChange & WithReason(const Aws::String &value)
ManagedAgentStateChange & WithContainerName(const Aws::String &value)
AWS_ECS_API ManagedAgentStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
const ManagedAgentName & GetManagedAgentName() const
ManagedAgentStateChange & WithContainerName(const char *value)
ManagedAgentStateChange & WithStatus(const Aws::String &value)
ManagedAgentStateChange & WithReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue