AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
ContactVersion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/groundstation/GroundStation_EXPORTS.h>
11#include <aws/groundstation/model/VersionFailureReasonCode.h>
12#include <aws/groundstation/model/VersionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GroundStation {
24namespace Model {
25
32 public:
33 AWS_GROUNDSTATION_API ContactVersion() = default;
34 AWS_GROUNDSTATION_API ContactVersion(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GROUNDSTATION_API ContactVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetVersionId() const { return m_versionId; }
43 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
44 inline void SetVersionId(int value) {
45 m_versionIdHasBeenSet = true;
46 m_versionId = value;
47 }
48 inline ContactVersion& WithVersionId(int value) {
49 SetVersionId(value);
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
59 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
60 template <typename CreatedT = Aws::Utils::DateTime>
61 void SetCreated(CreatedT&& value) {
62 m_createdHasBeenSet = true;
63 m_created = std::forward<CreatedT>(value);
64 }
65 template <typename CreatedT = Aws::Utils::DateTime>
66 ContactVersion& WithCreated(CreatedT&& value) {
67 SetCreated(std::forward<CreatedT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetActivated() const { return m_activated; }
78 inline bool ActivatedHasBeenSet() const { return m_activatedHasBeenSet; }
79 template <typename ActivatedT = Aws::Utils::DateTime>
80 void SetActivated(ActivatedT&& value) {
81 m_activatedHasBeenSet = true;
82 m_activated = std::forward<ActivatedT>(value);
83 }
84 template <typename ActivatedT = Aws::Utils::DateTime>
85 ContactVersion& WithActivated(ActivatedT&& value) {
86 SetActivated(std::forward<ActivatedT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetSuperseded() const { return m_superseded; }
97 inline bool SupersededHasBeenSet() const { return m_supersededHasBeenSet; }
98 template <typename SupersededT = Aws::Utils::DateTime>
99 void SetSuperseded(SupersededT&& value) {
100 m_supersededHasBeenSet = true;
101 m_superseded = std::forward<SupersededT>(value);
102 }
103 template <typename SupersededT = Aws::Utils::DateTime>
104 ContactVersion& WithSuperseded(SupersededT&& value) {
105 SetSuperseded(std::forward<SupersededT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
115 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
116 template <typename LastUpdatedT = Aws::Utils::DateTime>
117 void SetLastUpdated(LastUpdatedT&& value) {
118 m_lastUpdatedHasBeenSet = true;
119 m_lastUpdated = std::forward<LastUpdatedT>(value);
120 }
121 template <typename LastUpdatedT = Aws::Utils::DateTime>
122 ContactVersion& WithLastUpdated(LastUpdatedT&& value) {
123 SetLastUpdated(std::forward<LastUpdatedT>(value));
124 return *this;
125 }
127
129
132 inline VersionStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(VersionStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::Vector<VersionFailureReasonCode>& GetFailureCodes() const { return m_failureCodes; }
149 inline bool FailureCodesHasBeenSet() const { return m_failureCodesHasBeenSet; }
150 template <typename FailureCodesT = Aws::Vector<VersionFailureReasonCode>>
151 void SetFailureCodes(FailureCodesT&& value) {
152 m_failureCodesHasBeenSet = true;
153 m_failureCodes = std::forward<FailureCodesT>(value);
154 }
155 template <typename FailureCodesT = Aws::Vector<VersionFailureReasonCode>>
156 ContactVersion& WithFailureCodes(FailureCodesT&& value) {
157 SetFailureCodes(std::forward<FailureCodesT>(value));
158 return *this;
159 }
161 m_failureCodesHasBeenSet = true;
162 m_failureCodes.push_back(value);
163 return *this;
164 }
166
168
171 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
172 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
173 template <typename FailureMessageT = Aws::String>
174 void SetFailureMessage(FailureMessageT&& value) {
175 m_failureMessageHasBeenSet = true;
176 m_failureMessage = std::forward<FailureMessageT>(value);
177 }
178 template <typename FailureMessageT = Aws::String>
179 ContactVersion& WithFailureMessage(FailureMessageT&& value) {
180 SetFailureMessage(std::forward<FailureMessageT>(value));
181 return *this;
182 }
184 private:
185 int m_versionId{0};
186
187 Aws::Utils::DateTime m_created{};
188
189 Aws::Utils::DateTime m_activated{};
190
191 Aws::Utils::DateTime m_superseded{};
192
193 Aws::Utils::DateTime m_lastUpdated{};
194
196
198
199 Aws::String m_failureMessage;
200 bool m_versionIdHasBeenSet = false;
201 bool m_createdHasBeenSet = false;
202 bool m_activatedHasBeenSet = false;
203 bool m_supersededHasBeenSet = false;
204 bool m_lastUpdatedHasBeenSet = false;
205 bool m_statusHasBeenSet = false;
206 bool m_failureCodesHasBeenSet = false;
207 bool m_failureMessageHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace GroundStation
212} // namespace Aws
void SetSuperseded(SupersededT &&value)
const Aws::String & GetFailureMessage() const
const Aws::Utils::DateTime & GetLastUpdated() const
const Aws::Utils::DateTime & GetSuperseded() const
const Aws::Vector< VersionFailureReasonCode > & GetFailureCodes() const
ContactVersion & WithLastUpdated(LastUpdatedT &&value)
AWS_GROUNDSTATION_API ContactVersion()=default
const Aws::Utils::DateTime & GetCreated() const
ContactVersion & WithCreated(CreatedT &&value)
void SetFailureCodes(FailureCodesT &&value)
ContactVersion & AddFailureCodes(VersionFailureReasonCode value)
void SetLastUpdated(LastUpdatedT &&value)
ContactVersion & WithFailureMessage(FailureMessageT &&value)
AWS_GROUNDSTATION_API ContactVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API ContactVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactVersion & WithStatus(VersionStatus value)
ContactVersion & WithActivated(ActivatedT &&value)
ContactVersion & WithVersionId(int value)
const Aws::Utils::DateTime & GetActivated() const
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFailureMessage(FailureMessageT &&value)
ContactVersion & WithFailureCodes(FailureCodesT &&value)
ContactVersion & WithSuperseded(SupersededT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue