7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/StorageTier.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/SnapshotState.h>
15#include <aws/ec2/model/ResponseMetadata.h>
16#include <aws/ec2/model/Tag.h>
59 inline void SetOwnerAlias(
const char* value) { m_ownerAliasHasBeenSet =
true; m_ownerAlias.assign(value); }
76 inline void SetOutpostArn(
const char* value) { m_outpostArnHasBeenSet =
true; m_outpostArn.assign(value); }
92 inline Snapshot&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
93 inline Snapshot&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
132 inline void SetSseType(
SSEType&& value) { m_sseTypeHasBeenSet =
true; m_sseType = std::move(value); }
146 inline void SetSnapshotId(
const char* value) { m_snapshotIdHasBeenSet =
true; m_snapshotId.assign(value); }
162 inline void SetVolumeId(
const char* value) { m_volumeIdHasBeenSet =
true; m_volumeId.assign(value); }
191 inline void SetStateMessage(
const char* value) { m_stateMessageHasBeenSet =
true; m_stateMessage.assign(value); }
217 inline void SetProgress(
const char* value) { m_progressHasBeenSet =
true; m_progress.assign(value); }
231 inline void SetOwnerId(
const char* value) { m_ownerIdHasBeenSet =
true; m_ownerId.assign(value); }
245 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
257 inline void SetVolumeSize(
int value) { m_volumeSizeHasBeenSet =
true; m_volumeSize = value; }
267 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
280 inline void SetKmsKeyId(
const char* value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId.assign(value); }
299 inline void SetDataEncryptionKeyId(
const char* value) { m_dataEncryptionKeyIdHasBeenSet =
true; m_dataEncryptionKeyId.assign(value); }
316 bool m_ownerAliasHasBeenSet =
false;
319 bool m_outpostArnHasBeenSet =
false;
322 bool m_tagsHasBeenSet =
false;
325 bool m_storageTierHasBeenSet =
false;
328 bool m_restoreExpiryTimeHasBeenSet =
false;
331 bool m_sseTypeHasBeenSet =
false;
334 bool m_snapshotIdHasBeenSet =
false;
337 bool m_volumeIdHasBeenSet =
false;
340 bool m_stateHasBeenSet =
false;
343 bool m_stateMessageHasBeenSet =
false;
346 bool m_startTimeHasBeenSet =
false;
349 bool m_progressHasBeenSet =
false;
352 bool m_ownerIdHasBeenSet =
false;
355 bool m_descriptionHasBeenSet =
false;
358 bool m_volumeSizeHasBeenSet =
false;
361 bool m_encryptedHasBeenSet =
false;
364 bool m_kmsKeyIdHasBeenSet =
false;
367 bool m_dataEncryptionKeyIdHasBeenSet =
false;
const StorageTier & GetStorageTier() const
Snapshot & WithDataEncryptionKeyId(const char *value)
bool ProgressHasBeenSet() const
void SetOwnerId(const Aws::String &value)
Snapshot & WithOwnerAlias(const Aws::String &value)
int GetVolumeSize() const
bool SnapshotIdHasBeenSet() const
AWS_EC2_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TagsHasBeenSet() const
Snapshot & WithVolumeId(const char *value)
bool DescriptionHasBeenSet() const
bool SseTypeHasBeenSet() const
Snapshot & WithStorageTier(StorageTier &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetSnapshotId(Aws::String &&value)
void SetOwnerAlias(const char *value)
void SetDescription(const char *value)
void SetStateMessage(const Aws::String &value)
const ResponseMetadata & GetResponseMetadata() const
void SetOutpostArn(Aws::String &&value)
void SetState(SnapshotState &&value)
Snapshot & WithOwnerAlias(Aws::String &&value)
Snapshot & WithDescription(Aws::String &&value)
Snapshot & WithStorageTier(const StorageTier &value)
const Aws::String & GetOwnerAlias() const
void SetTags(const Aws::Vector< Tag > &value)
Snapshot & WithTags(Aws::Vector< Tag > &&value)
Snapshot & WithState(SnapshotState &&value)
void SetOwnerId(const char *value)
void SetOwnerId(Aws::String &&value)
Snapshot & WithDescription(const char *value)
const Aws::String & GetProgress() const
void SetDescription(Aws::String &&value)
void SetStorageTier(const StorageTier &value)
void SetVolumeId(const Aws::String &value)
Snapshot & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::String & GetOutpostArn() const
bool StateHasBeenSet() const
Snapshot & WithOutpostArn(const Aws::String &value)
void SetState(const SnapshotState &value)
void SetVolumeSize(int value)
Snapshot & WithSnapshotId(Aws::String &&value)
Snapshot & WithProgress(const char *value)
Snapshot & WithEncrypted(bool value)
Snapshot & AddTags(const Tag &value)
void SetResponseMetadata(ResponseMetadata &&value)
void SetOwnerAlias(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
Snapshot & WithStateMessage(const char *value)
void SetOwnerAlias(Aws::String &&value)
Snapshot & WithVolumeSize(int value)
Snapshot & WithVolumeId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
void SetDataEncryptionKeyId(const char *value)
Snapshot & WithStateMessage(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
Snapshot & WithVolumeId(const Aws::String &value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetRestoreExpiryTime() const
bool DataEncryptionKeyIdHasBeenSet() const
void SetVolumeId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSnapshotId(const char *value)
Snapshot & WithResponseMetadata(ResponseMetadata &&value)
const Aws::String & GetStateMessage() const
bool VolumeIdHasBeenSet() const
const Aws::Utils::DateTime & GetStartTime() const
Snapshot & WithKmsKeyId(const Aws::String &value)
Snapshot & WithRestoreExpiryTime(Aws::Utils::DateTime &&value)
void SetSnapshotId(const Aws::String &value)
void SetStateMessage(const char *value)
Snapshot & WithRestoreExpiryTime(const Aws::Utils::DateTime &value)
void SetSseType(SSEType &&value)
Snapshot & WithOutpostArn(const char *value)
void SetRestoreExpiryTime(const Aws::Utils::DateTime &value)
Snapshot & WithOutpostArn(Aws::String &&value)
bool GetEncrypted() const
const Aws::String & GetKmsKeyId() const
void SetSseType(const SSEType &value)
Snapshot & WithOwnerId(const char *value)
bool VolumeSizeHasBeenSet() const
void SetProgress(const char *value)
Snapshot & WithKmsKeyId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool OutpostArnHasBeenSet() const
void SetDataEncryptionKeyId(Aws::String &&value)
Snapshot & WithResponseMetadata(const ResponseMetadata &value)
const Aws::String & GetDataEncryptionKeyId() const
void SetStateMessage(Aws::String &&value)
Snapshot & WithDataEncryptionKeyId(Aws::String &&value)
void SetProgress(Aws::String &&value)
Snapshot & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetOwnerId() const
Snapshot & WithSnapshotId(const char *value)
void SetDataEncryptionKeyId(const Aws::String &value)
void SetStorageTier(StorageTier &&value)
Snapshot & WithStateMessage(Aws::String &&value)
void SetKmsKeyId(Aws::String &&value)
Snapshot & WithSseType(const SSEType &value)
Snapshot & WithKmsKeyId(const char *value)
Snapshot & WithDescription(const Aws::String &value)
void SetOutpostArn(const char *value)
Snapshot & WithProgress(Aws::String &&value)
const SnapshotState & GetState() const
AWS_EC2_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithTags(const Aws::Vector< Tag > &value)
Snapshot & WithOwnerId(const Aws::String &value)
Snapshot & WithDataEncryptionKeyId(const Aws::String &value)
void SetRestoreExpiryTime(Aws::Utils::DateTime &&value)
const Aws::String & GetSnapshotId() const
Snapshot & WithOwnerId(Aws::String &&value)
bool OwnerIdHasBeenSet() const
bool StorageTierHasBeenSet() const
const Aws::String & GetVolumeId() const
Snapshot & AddTags(Tag &&value)
Snapshot & WithSnapshotId(const Aws::String &value)
Snapshot & WithProgress(const Aws::String &value)
bool OwnerAliasHasBeenSet() const
bool KmsKeyIdHasBeenSet() const
void SetVolumeId(Aws::String &&value)
void SetEncrypted(bool value)
void SetStartTime(Aws::Utils::DateTime &&value)
Snapshot & WithState(const SnapshotState &value)
void SetOutpostArn(const Aws::String &value)
bool EncryptedHasBeenSet() const
bool StateMessageHasBeenSet() const
bool RestoreExpiryTimeHasBeenSet() const
bool StartTimeHasBeenSet() const
void SetStartTime(const Aws::Utils::DateTime &value)
Snapshot & WithOwnerAlias(const char *value)
void SetKmsKeyId(const char *value)
void SetProgress(const Aws::String &value)
Snapshot & WithSseType(SSEType &&value)
const SSEType & GetSseType() const
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream