AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedAgent.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/ecs/model/ManagedAgentName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ECS_API ManagedAgent() = default;
41
42
44
47 inline const Aws::Utils::DateTime& GetLastStartedAt() const { return m_lastStartedAt; }
48 inline bool LastStartedAtHasBeenSet() const { return m_lastStartedAtHasBeenSet; }
49 template<typename LastStartedAtT = Aws::Utils::DateTime>
50 void SetLastStartedAt(LastStartedAtT&& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = std::forward<LastStartedAtT>(value); }
51 template<typename LastStartedAtT = Aws::Utils::DateTime>
52 ManagedAgent& WithLastStartedAt(LastStartedAtT&& value) { SetLastStartedAt(std::forward<LastStartedAtT>(value)); return *this;}
54
56
60 inline ManagedAgentName GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(ManagedAgentName value) { m_nameHasBeenSet = true; m_name = value; }
63 inline ManagedAgent& WithName(ManagedAgentName value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetReason() const { return m_reason; }
71 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
72 template<typename ReasonT = Aws::String>
73 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
74 template<typename ReasonT = Aws::String>
75 ManagedAgent& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
77
79
82 inline const Aws::String& GetLastStatus() const { return m_lastStatus; }
83 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
84 template<typename LastStatusT = Aws::String>
85 void SetLastStatus(LastStatusT&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::forward<LastStatusT>(value); }
86 template<typename LastStatusT = Aws::String>
87 ManagedAgent& WithLastStatus(LastStatusT&& value) { SetLastStatus(std::forward<LastStatusT>(value)); return *this;}
89 private:
90
91 Aws::Utils::DateTime m_lastStartedAt{};
92 bool m_lastStartedAtHasBeenSet = false;
93
95 bool m_nameHasBeenSet = false;
96
97 Aws::String m_reason;
98 bool m_reasonHasBeenSet = false;
99
100 Aws::String m_lastStatus;
101 bool m_lastStatusHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ECS
106} // 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