AWS SDK for C++  1.9.105
AWS SDK for C++
ExportSnapshotRecord.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace Lightsail
28 {
29 namespace Model
30 {
31 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
59  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
74  inline ExportSnapshotRecord& WithName(const Aws::String& value) { SetName(value); return *this;}
75 
79  inline ExportSnapshotRecord& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 
84  inline ExportSnapshotRecord& WithName(const char* value) { SetName(value); return *this;}
85 
86 
90  inline const Aws::String& GetArn() const{ return m_arn; }
91 
95  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
96 
100  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
101 
105  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
106 
110  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
111 
115  inline ExportSnapshotRecord& WithArn(const Aws::String& value) { SetArn(value); return *this;}
116 
120  inline ExportSnapshotRecord& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
121 
125  inline ExportSnapshotRecord& WithArn(const char* value) { SetArn(value); return *this;}
126 
127 
131  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
132 
136  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
137 
141  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
142 
146  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
147 
151  inline ExportSnapshotRecord& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
152 
156  inline ExportSnapshotRecord& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
157 
158 
163  inline const ResourceLocation& GetLocation() const{ return m_location; }
164 
169  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
170 
175  inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
176 
181  inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
182 
187  inline ExportSnapshotRecord& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
188 
193  inline ExportSnapshotRecord& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
194 
195 
199  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
200 
204  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
205 
209  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
210 
214  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
215 
219  inline ExportSnapshotRecord& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
220 
224  inline ExportSnapshotRecord& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
225 
226 
230  inline const RecordState& GetState() const{ return m_state; }
231 
235  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
236 
240  inline void SetState(const RecordState& value) { m_stateHasBeenSet = true; m_state = value; }
241 
245  inline void SetState(RecordState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
246 
250  inline ExportSnapshotRecord& WithState(const RecordState& value) { SetState(value); return *this;}
251 
255  inline ExportSnapshotRecord& WithState(RecordState&& value) { SetState(std::move(value)); return *this;}
256 
257 
261  inline const ExportSnapshotRecordSourceInfo& GetSourceInfo() const{ return m_sourceInfo; }
262 
266  inline bool SourceInfoHasBeenSet() const { return m_sourceInfoHasBeenSet; }
267 
271  inline void SetSourceInfo(const ExportSnapshotRecordSourceInfo& value) { m_sourceInfoHasBeenSet = true; m_sourceInfo = value; }
272 
276  inline void SetSourceInfo(ExportSnapshotRecordSourceInfo&& value) { m_sourceInfoHasBeenSet = true; m_sourceInfo = std::move(value); }
277 
281  inline ExportSnapshotRecord& WithSourceInfo(const ExportSnapshotRecordSourceInfo& value) { SetSourceInfo(value); return *this;}
282 
286  inline ExportSnapshotRecord& WithSourceInfo(ExportSnapshotRecordSourceInfo&& value) { SetSourceInfo(std::move(value)); return *this;}
287 
288 
293  inline const DestinationInfo& GetDestinationInfo() const{ return m_destinationInfo; }
294 
299  inline bool DestinationInfoHasBeenSet() const { return m_destinationInfoHasBeenSet; }
300 
305  inline void SetDestinationInfo(const DestinationInfo& value) { m_destinationInfoHasBeenSet = true; m_destinationInfo = value; }
306 
311  inline void SetDestinationInfo(DestinationInfo&& value) { m_destinationInfoHasBeenSet = true; m_destinationInfo = std::move(value); }
312 
317  inline ExportSnapshotRecord& WithDestinationInfo(const DestinationInfo& value) { SetDestinationInfo(value); return *this;}
318 
323  inline ExportSnapshotRecord& WithDestinationInfo(DestinationInfo&& value) { SetDestinationInfo(std::move(value)); return *this;}
324 
325  private:
326 
327  Aws::String m_name;
328  bool m_nameHasBeenSet;
329 
330  Aws::String m_arn;
331  bool m_arnHasBeenSet;
332 
333  Aws::Utils::DateTime m_createdAt;
334  bool m_createdAtHasBeenSet;
335 
336  ResourceLocation m_location;
337  bool m_locationHasBeenSet;
338 
339  ResourceType m_resourceType;
340  bool m_resourceTypeHasBeenSet;
341 
342  RecordState m_state;
343  bool m_stateHasBeenSet;
344 
345  ExportSnapshotRecordSourceInfo m_sourceInfo;
346  bool m_sourceInfoHasBeenSet;
347 
348  DestinationInfo m_destinationInfo;
349  bool m_destinationInfoHasBeenSet;
350  };
351 
352 } // namespace Model
353 } // namespace Lightsail
354 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ExportSnapshotRecord::ExportSnapshotRecord
ExportSnapshotRecord(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ExportSnapshotRecordSourceInfo
Definition: ExportSnapshotRecordSourceInfo.h:37
Aws::Lightsail::Model::ExportSnapshotRecord::SetArn
void SetArn(const char *value)
Definition: ExportSnapshotRecord.h:110
ResourceType.h
Aws::Lightsail::Model::ExportSnapshotRecord::SetSourceInfo
void SetSourceInfo(ExportSnapshotRecordSourceInfo &&value)
Definition: ExportSnapshotRecord.h:276
Aws::Lightsail::Model::ExportSnapshotRecord::SetState
void SetState(RecordState &&value)
Definition: ExportSnapshotRecord.h:245
Aws::Lightsail::Model::ExportSnapshotRecord::WithName
ExportSnapshotRecord & WithName(const Aws::String &value)
Definition: ExportSnapshotRecord.h:74
Aws::Lightsail::Model::ExportSnapshotRecord::GetName
const Aws::String & GetName() const
Definition: ExportSnapshotRecord.h:49
Aws::Lightsail::Model::ExportSnapshotRecord::WithArn
ExportSnapshotRecord & WithArn(Aws::String &&value)
Definition: ExportSnapshotRecord.h:120
Aws::Lightsail::Model::ExportSnapshotRecord::SetDestinationInfo
void SetDestinationInfo(DestinationInfo &&value)
Definition: ExportSnapshotRecord.h:311
Aws::Lightsail::Model::ExportSnapshotRecord::GetLocation
const ResourceLocation & GetLocation() const
Definition: ExportSnapshotRecord.h:163
Aws::Lightsail::Model::ExportSnapshotRecord::WithArn
ExportSnapshotRecord & WithArn(const Aws::String &value)
Definition: ExportSnapshotRecord.h:115
Aws::Lightsail::Model::ExportSnapshotRecord::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ExportSnapshotRecord.h:136
DateTime.h
Aws::Lightsail::Model::ExportSnapshotRecord::operator=
ExportSnapshotRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ExportSnapshotRecord::SetDestinationInfo
void SetDestinationInfo(const DestinationInfo &value)
Definition: ExportSnapshotRecord.h:305
Aws::Lightsail::Model::ExportSnapshotRecord::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ExportSnapshotRecord.h:146
Aws::Lightsail::Model::ExportSnapshotRecord::GetResourceType
const ResourceType & GetResourceType() const
Definition: ExportSnapshotRecord.h:199
Aws::Lightsail::Model::ExportSnapshotRecord::ExportSnapshotRecord
ExportSnapshotRecord()
DestinationInfo.h
Aws::Lightsail::Model::ExportSnapshotRecord
Definition: ExportSnapshotRecord.h:38
Aws::Lightsail::Model::ExportSnapshotRecord::SetState
void SetState(const RecordState &value)
Definition: ExportSnapshotRecord.h:240
Aws::Lightsail::Model::ExportSnapshotRecord::SetName
void SetName(const char *value)
Definition: ExportSnapshotRecord.h:69
ExportSnapshotRecordSourceInfo.h
Aws::Lightsail::Model::ExportSnapshotRecord::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ExportSnapshotRecord.h:235
Aws::Lightsail::Model::ExportSnapshotRecord::WithName
ExportSnapshotRecord & WithName(Aws::String &&value)
Definition: ExportSnapshotRecord.h:79
Aws::Lightsail::Model::ExportSnapshotRecord::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: ExportSnapshotRecord.h:214
Aws::Lightsail::Model::ExportSnapshotRecord::WithSourceInfo
ExportSnapshotRecord & WithSourceInfo(const ExportSnapshotRecordSourceInfo &value)
Definition: ExportSnapshotRecord.h:281
Aws::Lightsail::Model::ExportSnapshotRecord::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: ExportSnapshotRecord.h:209
Aws::Lightsail::Model::ExportSnapshotRecord::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ExportSnapshotRecord.h:54
Aws::Lightsail::Model::ExportSnapshotRecord::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: ExportSnapshotRecord.h:169
Aws::Lightsail::Model::ExportSnapshotRecord::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ExportSnapshotRecord.h:95
Aws::Lightsail::Model::ExportSnapshotRecord::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ExportSnapshotRecord.h:204
Aws::Lightsail::Model::ExportSnapshotRecord::WithLocation
ExportSnapshotRecord & WithLocation(ResourceLocation &&value)
Definition: ExportSnapshotRecord.h:193
Aws::Lightsail::Model::ExportSnapshotRecord::WithResourceType
ExportSnapshotRecord & WithResourceType(ResourceType &&value)
Definition: ExportSnapshotRecord.h:224
Aws::Lightsail::Model::ResourceLocation
Definition: ResourceLocation.h:33
Aws::Lightsail::Model::ExportSnapshotRecord::WithName
ExportSnapshotRecord & WithName(const char *value)
Definition: ExportSnapshotRecord.h:84
Aws::Lightsail::Model::ExportSnapshotRecord::WithCreatedAt
ExportSnapshotRecord & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ExportSnapshotRecord.h:151
Aws::Lightsail::Model::ExportSnapshotRecord::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ExportSnapshotRecord::SetName
void SetName(Aws::String &&value)
Definition: ExportSnapshotRecord.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::ExportSnapshotRecord::SetLocation
void SetLocation(ResourceLocation &&value)
Definition: ExportSnapshotRecord.h:181
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ExportSnapshotRecord::WithDestinationInfo
ExportSnapshotRecord & WithDestinationInfo(const DestinationInfo &value)
Definition: ExportSnapshotRecord.h:317
Aws::Lightsail::Model::ExportSnapshotRecord::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ExportSnapshotRecord.h:131
Aws::Lightsail::Model::ExportSnapshotRecord::DestinationInfoHasBeenSet
bool DestinationInfoHasBeenSet() const
Definition: ExportSnapshotRecord.h:299
Aws::Lightsail::Model::ExportSnapshotRecord::WithState
ExportSnapshotRecord & WithState(RecordState &&value)
Definition: ExportSnapshotRecord.h:255
Aws::Lightsail::Model::ExportSnapshotRecord::WithArn
ExportSnapshotRecord & WithArn(const char *value)
Definition: ExportSnapshotRecord.h:125
Aws::Lightsail::Model::ExportSnapshotRecord::GetArn
const Aws::String & GetArn() const
Definition: ExportSnapshotRecord.h:90
Aws::Lightsail::Model::ExportSnapshotRecord::SetSourceInfo
void SetSourceInfo(const ExportSnapshotRecordSourceInfo &value)
Definition: ExportSnapshotRecord.h:271
Aws::Lightsail::Model::ExportSnapshotRecord::SetArn
void SetArn(const Aws::String &value)
Definition: ExportSnapshotRecord.h:100
Aws::Lightsail::Model::ExportSnapshotRecord::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ExportSnapshotRecord.h:141
Aws::Lightsail::Model::ExportSnapshotRecord::SourceInfoHasBeenSet
bool SourceInfoHasBeenSet() const
Definition: ExportSnapshotRecord.h:266
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
ResourceLocation.h
Aws
Definition: AccessManagementClient.h:15
RecordState.h
Aws::Lightsail::Model::ExportSnapshotRecord::GetSourceInfo
const ExportSnapshotRecordSourceInfo & GetSourceInfo() const
Definition: ExportSnapshotRecord.h:261
Aws::Lightsail::Model::ExportSnapshotRecord::WithCreatedAt
ExportSnapshotRecord & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ExportSnapshotRecord.h:156
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ExportSnapshotRecord::GetState
const RecordState & GetState() const
Definition: ExportSnapshotRecord.h:230
Aws::Lightsail::Model::ExportSnapshotRecord::WithDestinationInfo
ExportSnapshotRecord & WithDestinationInfo(DestinationInfo &&value)
Definition: ExportSnapshotRecord.h:323
Aws::Lightsail::Model::ExportSnapshotRecord::SetLocation
void SetLocation(const ResourceLocation &value)
Definition: ExportSnapshotRecord.h:175
Aws::Lightsail::Model::ExportSnapshotRecord::WithState
ExportSnapshotRecord & WithState(const RecordState &value)
Definition: ExportSnapshotRecord.h:250
Aws::Lightsail::Model::ExportSnapshotRecord::WithSourceInfo
ExportSnapshotRecord & WithSourceInfo(ExportSnapshotRecordSourceInfo &&value)
Definition: ExportSnapshotRecord.h:286
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::RecordState
RecordState
Definition: RecordState.h:17
Aws::Lightsail::Model::ExportSnapshotRecord::GetDestinationInfo
const DestinationInfo & GetDestinationInfo() const
Definition: ExportSnapshotRecord.h:293
Aws::Lightsail::Model::ExportSnapshotRecord::SetArn
void SetArn(Aws::String &&value)
Definition: ExportSnapshotRecord.h:105
Aws::Lightsail::Model::ExportSnapshotRecord::SetName
void SetName(const Aws::String &value)
Definition: ExportSnapshotRecord.h:59
Aws::Lightsail::Model::ExportSnapshotRecord::WithResourceType
ExportSnapshotRecord & WithResourceType(const ResourceType &value)
Definition: ExportSnapshotRecord.h:219
Aws::Lightsail::Model::DestinationInfo
Definition: DestinationInfo.h:32
Aws::Lightsail::Model::ExportSnapshotRecord::WithLocation
ExportSnapshotRecord & WithLocation(const ResourceLocation &value)
Definition: ExportSnapshotRecord.h:187