AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ApplicationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/ApplicationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService {
22namespace Model {
23
30 public:
31 AWS_OPENSEARCHSERVICE_API ApplicationSummary() = default;
32 AWS_OPENSEARCHSERVICE_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API ApplicationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_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 ApplicationSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetArn() const { return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
64 ApplicationSummary& WithArn(ArnT&& value) {
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
82 ApplicationSummary& WithName(NameT&& value) {
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
93 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
94 template <typename EndpointT = Aws::String>
95 void SetEndpoint(EndpointT&& value) {
96 m_endpointHasBeenSet = true;
97 m_endpoint = std::forward<EndpointT>(value);
98 }
99 template <typename EndpointT = Aws::String>
100 ApplicationSummary& WithEndpoint(EndpointT&& value) {
101 SetEndpoint(std::forward<EndpointT>(value));
102 return *this;
103 }
105
107
112 inline ApplicationStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(ApplicationStatus value) {
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
129 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
130 template <typename CreatedAtT = Aws::Utils::DateTime>
131 void SetCreatedAt(CreatedAtT&& value) {
132 m_createdAtHasBeenSet = true;
133 m_createdAt = std::forward<CreatedAtT>(value);
134 }
135 template <typename CreatedAtT = Aws::Utils::DateTime>
136 ApplicationSummary& WithCreatedAt(CreatedAtT&& value) {
137 SetCreatedAt(std::forward<CreatedAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
147 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
148 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
149 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
150 m_lastUpdatedAtHasBeenSet = true;
151 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
152 }
153 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
154 ApplicationSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
155 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_id;
161
162 Aws::String m_arn;
163
164 Aws::String m_name;
165
166 Aws::String m_endpoint;
167
169
170 Aws::Utils::DateTime m_createdAt{};
171
172 Aws::Utils::DateTime m_lastUpdatedAt{};
173 bool m_idHasBeenSet = false;
174 bool m_arnHasBeenSet = false;
175 bool m_nameHasBeenSet = false;
176 bool m_endpointHasBeenSet = false;
177 bool m_statusHasBeenSet = false;
178 bool m_createdAtHasBeenSet = false;
179 bool m_lastUpdatedAtHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace OpenSearchService
184} // namespace Aws
ApplicationSummary & WithStatus(ApplicationStatus value)
ApplicationSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_OPENSEARCHSERVICE_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue)
ApplicationSummary & WithName(NameT &&value)
AWS_OPENSEARCHSERVICE_API ApplicationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API ApplicationSummary()=default
const Aws::Utils::DateTime & GetCreatedAt() const
ApplicationSummary & WithEndpoint(EndpointT &&value)
ApplicationSummary & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue