AWS SDK for C++

AWS SDK for C++ Version 1.11.856

Loading...
Searching...
No Matches
InquirySummary.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/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Artifact {
24namespace Model {
25
32 public:
33 AWS_ARTIFACT_API InquirySummary() = default;
34 AWS_ARTIFACT_API InquirySummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 InquirySummary& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 InquirySummary& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetId() const { return m_id; }
79 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 template <typename IdT = Aws::String>
81 void SetId(IdT&& value) {
82 m_idHasBeenSet = true;
83 m_id = std::forward<IdT>(value);
84 }
85 template <typename IdT = Aws::String>
86 InquirySummary& WithId(IdT&& value) {
87 SetId(std::forward<IdT>(value));
88 return *this;
89 }
91
93
96 inline InquiryStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(InquiryStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline InquiryStatusMessage GetStatusMessage() const { return m_statusMessage; }
113 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
115 m_statusMessageHasBeenSet = true;
116 m_statusMessage = value;
117 }
119 SetStatusMessage(value);
120 return *this;
121 }
123
125
128 inline InputSource GetInputSource() const { return m_inputSource; }
129 inline bool InputSourceHasBeenSet() const { return m_inputSourceHasBeenSet; }
130 inline void SetInputSource(InputSource value) {
131 m_inputSourceHasBeenSet = true;
132 m_inputSource = value;
133 }
135 SetInputSource(value);
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 InquirySummary& WithCreatedAt(CreatedAtT&& value) {
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_arn;
159
160 Aws::String m_name;
161
162 Aws::String m_id;
163
165
167
168 InputSource m_inputSource{InputSource::NOT_SET};
169
170 Aws::Utils::DateTime m_createdAt{};
171 bool m_arnHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_idHasBeenSet = false;
174 bool m_statusHasBeenSet = false;
175 bool m_statusMessageHasBeenSet = false;
176 bool m_inputSourceHasBeenSet = false;
177 bool m_createdAtHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace Artifact
182} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetArn() const
InquiryStatusMessage GetStatusMessage() const
const Aws::Utils::DateTime & GetCreatedAt() const
InquirySummary & WithStatusMessage(InquiryStatusMessage value)
void SetStatusMessage(InquiryStatusMessage value)
InquirySummary & WithName(NameT &&value)
InquirySummary & WithStatus(InquiryStatus value)
InquirySummary & WithCreatedAt(CreatedAtT &&value)
void SetStatus(InquiryStatus value)
AWS_ARTIFACT_API InquirySummary(Aws::Utils::Json::JsonView jsonValue)
InquirySummary & WithInputSource(InputSource value)
AWS_ARTIFACT_API InquirySummary()=default
void SetInputSource(InputSource value)
const Aws::String & GetName() const
AWS_ARTIFACT_API InquirySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
InquirySummary & WithId(IdT &&value)
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
InquirySummary & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue