AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AgentStatusSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/AgentStatusType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30 public:
31 AWS_CONNECT_API AgentStatusSummary() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 AgentStatusSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
66 AgentStatusSummary& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 AgentStatusSummary& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline AgentStatusType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(AgentStatusType value) {
97 m_typeHasBeenSet = true;
98 m_type = value;
99 }
101 SetType(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
111 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
112 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
113 void SetLastModifiedTime(LastModifiedTimeT&& value) {
114 m_lastModifiedTimeHasBeenSet = true;
115 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
116 }
117 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
118 AgentStatusSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
119 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
129 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
130 template <typename LastModifiedRegionT = Aws::String>
131 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
132 m_lastModifiedRegionHasBeenSet = true;
133 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
134 }
135 template <typename LastModifiedRegionT = Aws::String>
136 AgentStatusSummary& WithLastModifiedRegion(LastModifiedRegionT&& value) {
137 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_id;
143
144 Aws::String m_arn;
145
146 Aws::String m_name;
147
149
150 Aws::Utils::DateTime m_lastModifiedTime{};
151
152 Aws::String m_lastModifiedRegion;
153 bool m_idHasBeenSet = false;
154 bool m_arnHasBeenSet = false;
155 bool m_nameHasBeenSet = false;
156 bool m_typeHasBeenSet = false;
157 bool m_lastModifiedTimeHasBeenSet = false;
158 bool m_lastModifiedRegionHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Connect
163} // namespace Aws
AgentStatusSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_CONNECT_API AgentStatusSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedRegion(LastModifiedRegionT &&value)
AgentStatusSummary & WithType(AgentStatusType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECT_API AgentStatusSummary(Aws::Utils::Json::JsonView jsonValue)
AgentStatusSummary & WithId(IdT &&value)
const Aws::String & GetLastModifiedRegion() const
AgentStatusSummary & WithArn(ArnT &&value)
AgentStatusSummary & WithLastModifiedRegion(LastModifiedRegionT &&value)
AWS_CONNECT_API AgentStatusSummary()=default
AgentStatusSummary & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue