AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const Aws::Utils::DateTime& GetLastStartedAt() const{ return m_lastStartedAt; }
48 inline bool LastStartedAtHasBeenSet() const { return m_lastStartedAtHasBeenSet; }
49 inline void SetLastStartedAt(const Aws::Utils::DateTime& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = value; }
50 inline void SetLastStartedAt(Aws::Utils::DateTime&& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = std::move(value); }
51 inline ManagedAgent& WithLastStartedAt(const Aws::Utils::DateTime& value) { SetLastStartedAt(value); return *this;}
52 inline ManagedAgent& WithLastStartedAt(Aws::Utils::DateTime&& value) { SetLastStartedAt(std::move(value)); return *this;}
54
56
60 inline const ManagedAgentName& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const ManagedAgentName& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(ManagedAgentName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline ManagedAgent& WithName(const ManagedAgentName& value) { SetName(value); return *this;}
65 inline ManagedAgent& WithName(ManagedAgentName&& value) { SetName(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetReason() const{ return m_reason; }
73 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
74 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
75 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
76 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
77 inline ManagedAgent& WithReason(const Aws::String& value) { SetReason(value); return *this;}
78 inline ManagedAgent& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
79 inline ManagedAgent& WithReason(const char* value) { SetReason(value); return *this;}
81
83
86 inline const Aws::String& GetLastStatus() const{ return m_lastStatus; }
87 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
88 inline void SetLastStatus(const Aws::String& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
89 inline void SetLastStatus(Aws::String&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
90 inline void SetLastStatus(const char* value) { m_lastStatusHasBeenSet = true; m_lastStatus.assign(value); }
91 inline ManagedAgent& WithLastStatus(const Aws::String& value) { SetLastStatus(value); return *this;}
92 inline ManagedAgent& WithLastStatus(Aws::String&& value) { SetLastStatus(std::move(value)); return *this;}
93 inline ManagedAgent& WithLastStatus(const char* value) { SetLastStatus(value); return *this;}
95 private:
96
97 Aws::Utils::DateTime m_lastStartedAt;
98 bool m_lastStartedAtHasBeenSet = false;
99
100 ManagedAgentName m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::String m_reason;
104 bool m_reasonHasBeenSet = false;
105
106 Aws::String m_lastStatus;
107 bool m_lastStatusHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ECS
112} // namespace Aws
AWS_ECS_API ManagedAgent & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedAgent & WithName(ManagedAgentName &&value)
ManagedAgent & WithName(const ManagedAgentName &value)
void SetLastStartedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastStartedAt() const
void SetLastStatus(const char *value)
const Aws::String & GetReason() const
void SetLastStatus(Aws::String &&value)
ManagedAgent & WithLastStatus(const Aws::String &value)
AWS_ECS_API ManagedAgent(Aws::Utils::Json::JsonView jsonValue)
ManagedAgent & WithLastStartedAt(const Aws::Utils::DateTime &value)
ManagedAgent & WithReason(const char *value)
ManagedAgent & WithLastStartedAt(Aws::Utils::DateTime &&value)
void SetLastStartedAt(Aws::Utils::DateTime &&value)
ManagedAgent & WithReason(const Aws::String &value)
void SetReason(const Aws::String &value)
ManagedAgent & WithLastStatus(Aws::String &&value)
const ManagedAgentName & GetName() const
void SetLastStatus(const Aws::String &value)
void SetName(ManagedAgentName &&value)
const Aws::String & GetLastStatus() const
ManagedAgent & WithLastStatus(const char *value)
void SetName(const ManagedAgentName &value)
void SetReason(const char *value)
ManagedAgent & WithReason(Aws::String &&value)
void SetReason(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue