AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ManagedAgent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/ManagedAgentName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API ManagedAgent() = default;
36
38
41 inline const Aws::Utils::DateTime& GetLastStartedAt() const { return m_lastStartedAt; }
42 inline bool LastStartedAtHasBeenSet() const { return m_lastStartedAtHasBeenSet; }
43 template <typename LastStartedAtT = Aws::Utils::DateTime>
44 void SetLastStartedAt(LastStartedAtT&& value) {
45 m_lastStartedAtHasBeenSet = true;
46 m_lastStartedAt = std::forward<LastStartedAtT>(value);
47 }
48 template <typename LastStartedAtT = Aws::Utils::DateTime>
49 ManagedAgent& WithLastStartedAt(LastStartedAtT&& value) {
50 SetLastStartedAt(std::forward<LastStartedAtT>(value));
51 return *this;
52 }
54
56
60 inline ManagedAgentName GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(ManagedAgentName value) {
63 m_nameHasBeenSet = true;
64 m_name = value;
65 }
67 SetName(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetReason() const { return m_reason; }
77 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
78 template <typename ReasonT = Aws::String>
79 void SetReason(ReasonT&& value) {
80 m_reasonHasBeenSet = true;
81 m_reason = std::forward<ReasonT>(value);
82 }
83 template <typename ReasonT = Aws::String>
84 ManagedAgent& WithReason(ReasonT&& value) {
85 SetReason(std::forward<ReasonT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLastStatus() const { return m_lastStatus; }
95 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
96 template <typename LastStatusT = Aws::String>
97 void SetLastStatus(LastStatusT&& value) {
98 m_lastStatusHasBeenSet = true;
99 m_lastStatus = std::forward<LastStatusT>(value);
100 }
101 template <typename LastStatusT = Aws::String>
102 ManagedAgent& WithLastStatus(LastStatusT&& value) {
103 SetLastStatus(std::forward<LastStatusT>(value));
104 return *this;
105 }
107 private:
108 Aws::Utils::DateTime m_lastStartedAt{};
109
111
112 Aws::String m_reason;
113
114 Aws::String m_lastStatus;
115 bool m_lastStartedAtHasBeenSet = false;
116 bool m_nameHasBeenSet = false;
117 bool m_reasonHasBeenSet = false;
118 bool m_lastStatusHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ECS
123} // namespace Aws
void SetName(ManagedAgentName value)
AWS_ECS_API ManagedAgent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastStartedAt() const
const Aws::String & GetReason() const
ManagedAgentName GetName() const
AWS_ECS_API ManagedAgent(Aws::Utils::Json::JsonView jsonValue)
void SetLastStartedAt(LastStartedAtT &&value)
void SetReason(ReasonT &&value)
ManagedAgent & WithReason(ReasonT &&value)
void SetLastStatus(LastStatusT &&value)
ManagedAgent & WithLastStatus(LastStatusT &&value)
const Aws::String & GetLastStatus() const
ManagedAgent & WithName(ManagedAgentName value)
AWS_ECS_API ManagedAgent()=default
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedAgent & WithLastStartedAt(LastStartedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue