AWS SDK for C++

AWS SDK for C++ Version 1.11.856

Loading...
Searching...
No Matches
InquiryDetail.h
1
6#pragma once
7#include <aws/artifact/Artifact_EXPORTS.h>
8#include <aws/artifact/model/InputSource.h>
9#include <aws/artifact/model/InquiryStatus.h>
10#include <aws/artifact/model/InquiryStatusMessage.h>
11#include <aws/artifact/model/InquirySupportMode.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Artifact {
25namespace Model {
26
34 public:
35 AWS_ARTIFACT_API InquiryDetail() = default;
36 AWS_ARTIFACT_API InquiryDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 InquiryDetail& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 InquiryDetail& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template <typename IdT = Aws::String>
83 void SetId(IdT&& value) {
84 m_idHasBeenSet = true;
85 m_id = std::forward<IdT>(value);
86 }
87 template <typename IdT = Aws::String>
88 InquiryDetail& WithId(IdT&& value) {
89 SetId(std::forward<IdT>(value));
90 return *this;
91 }
93
95
98 inline InquiryStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(InquiryStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline InquiryStatusMessage GetStatusMessage() const { return m_statusMessage; }
115 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
117 m_statusMessageHasBeenSet = true;
118 m_statusMessage = value;
119 }
121 SetStatusMessage(value);
122 return *this;
123 }
125
127
130 inline InputSource GetInputSource() const { return m_inputSource; }
131 inline bool InputSourceHasBeenSet() const { return m_inputSourceHasBeenSet; }
132 inline void SetInputSource(InputSource value) {
133 m_inputSourceHasBeenSet = true;
134 m_inputSource = value;
135 }
137 SetInputSource(value);
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
147 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
148 template <typename CreatedAtT = Aws::Utils::DateTime>
149 void SetCreatedAt(CreatedAtT&& value) {
150 m_createdAtHasBeenSet = true;
151 m_createdAt = std::forward<CreatedAtT>(value);
152 }
153 template <typename CreatedAtT = Aws::Utils::DateTime>
154 InquiryDetail& WithCreatedAt(CreatedAtT&& value) {
155 SetCreatedAt(std::forward<CreatedAtT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
165 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
167 void SetUpdatedAt(UpdatedAtT&& value) {
168 m_updatedAtHasBeenSet = true;
169 m_updatedAt = std::forward<UpdatedAtT>(value);
170 }
171 template <typename UpdatedAtT = Aws::Utils::DateTime>
172 InquiryDetail& WithUpdatedAt(UpdatedAtT&& value) {
173 SetUpdatedAt(std::forward<UpdatedAtT>(value));
174 return *this;
175 }
177
179
183 inline InquirySupportMode GetSupportMode() const { return m_supportMode; }
184 inline bool SupportModeHasBeenSet() const { return m_supportModeHasBeenSet; }
186 m_supportModeHasBeenSet = true;
187 m_supportMode = value;
188 }
190 SetSupportMode(value);
191 return *this;
192 }
194 private:
195 Aws::String m_arn;
196
197 Aws::String m_name;
198
199 Aws::String m_id;
200
202
204
205 InputSource m_inputSource{InputSource::NOT_SET};
206
207 Aws::Utils::DateTime m_createdAt{};
208
209 Aws::Utils::DateTime m_updatedAt{};
210
212 bool m_arnHasBeenSet = false;
213 bool m_nameHasBeenSet = false;
214 bool m_idHasBeenSet = false;
215 bool m_statusHasBeenSet = false;
216 bool m_statusMessageHasBeenSet = false;
217 bool m_inputSourceHasBeenSet = false;
218 bool m_createdAtHasBeenSet = false;
219 bool m_updatedAtHasBeenSet = false;
220 bool m_supportModeHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace Artifact
225} // namespace Aws
void SetSupportMode(InquirySupportMode value)
void SetStatus(InquiryStatus value)
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ARTIFACT_API InquiryDetail()=default
InquiryDetail & WithStatusMessage(InquiryStatusMessage value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
InquirySupportMode GetSupportMode() const
InquiryDetail & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
InquiryDetail & WithArn(ArnT &&value)
const Aws::String & GetArn() const
void SetStatusMessage(InquiryStatusMessage value)
InquiryDetail & WithName(NameT &&value)
void SetInputSource(InputSource value)
InquiryDetail & WithSupportMode(InquirySupportMode value)
InquiryDetail & WithStatus(InquiryStatus value)
InquiryDetail & WithUpdatedAt(UpdatedAtT &&value)
InquiryDetail & WithCreatedAt(CreatedAtT &&value)
InquiryDetail & WithInputSource(InputSource value)
const Aws::String & GetName() const
InquiryStatusMessage GetStatusMessage() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetId() const
AWS_ARTIFACT_API InquiryDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_ARTIFACT_API InquiryDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue