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/SnapshotState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/SSEType.h>
14#include <aws/ec2/model/Tag.h>
56 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
73 inline SnapshotInfo&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
82 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
94 inline void SetVolumeId(
const char* value) { m_volumeIdHasBeenSet =
true; m_volumeId.assign(value); }
118 inline void SetVolumeSize(
int value) { m_volumeSizeHasBeenSet =
true; m_volumeSize = value; }
143 inline void SetProgress(
const char* value) { m_progressHasBeenSet =
true; m_progress.assign(value); }
157 inline void SetOwnerId(
const char* value) { m_ownerIdHasBeenSet =
true; m_ownerId.assign(value); }
171 inline void SetSnapshotId(
const char* value) { m_snapshotIdHasBeenSet =
true; m_snapshotId.assign(value); }
188 inline void SetOutpostArn(
const char* value) { m_outpostArnHasBeenSet =
true; m_outpostArn.assign(value); }
201 inline void SetSseType(
SSEType&& value) { m_sseTypeHasBeenSet =
true; m_sseType = std::move(value); }
208 bool m_descriptionHasBeenSet =
false;
211 bool m_tagsHasBeenSet =
false;
214 bool m_encryptedHasBeenSet =
false;
217 bool m_volumeIdHasBeenSet =
false;
220 bool m_stateHasBeenSet =
false;
223 bool m_volumeSizeHasBeenSet =
false;
226 bool m_startTimeHasBeenSet =
false;
229 bool m_progressHasBeenSet =
false;
232 bool m_ownerIdHasBeenSet =
false;
235 bool m_snapshotIdHasBeenSet =
false;
238 bool m_outpostArnHasBeenSet =
false;
241 bool m_sseTypeHasBeenSet =
false;
const SSEType & GetSseType() const
SnapshotInfo & WithProgress(Aws::String &&value)
SnapshotInfo & WithDescription(const char *value)
SnapshotInfo & WithEncrypted(bool value)
bool VolumeSizeHasBeenSet() const
SnapshotInfo & WithProgress(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDescription(const Aws::String &value)
SnapshotInfo & WithSseType(const SSEType &value)
void SetProgress(const Aws::String &value)
SnapshotInfo & WithState(const SnapshotState &value)
const SnapshotState & GetState() const
void SetSnapshotId(Aws::String &&value)
void SetState(const SnapshotState &value)
SnapshotInfo & WithOwnerId(const Aws::String &value)
SnapshotInfo & WithVolumeId(const char *value)
void SetOutpostArn(const Aws::String &value)
const Aws::String & GetDescription() const
bool VolumeIdHasBeenSet() const
bool OwnerIdHasBeenSet() const
SnapshotInfo & WithOutpostArn(const Aws::String &value)
SnapshotInfo & WithProgress(const Aws::String &value)
void SetProgress(Aws::String &&value)
void SetOwnerId(const Aws::String &value)
bool EncryptedHasBeenSet() const
SnapshotInfo & WithState(SnapshotState &&value)
bool OutpostArnHasBeenSet() const
bool TagsHasBeenSet() const
SnapshotInfo & WithOutpostArn(Aws::String &&value)
SnapshotInfo & WithStartTime(const Aws::Utils::DateTime &value)
SnapshotInfo & AddTags(Tag &&value)
SnapshotInfo & WithVolumeId(const Aws::String &value)
void SetSnapshotId(const Aws::String &value)
const Aws::String & GetVolumeId() const
void SetProgress(const char *value)
void SetOutpostArn(Aws::String &&value)
void SetSnapshotId(const char *value)
SnapshotInfo & WithTags(const Aws::Vector< Tag > &value)
SnapshotInfo & WithVolumeId(Aws::String &&value)
bool ProgressHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
SnapshotInfo & WithTags(Aws::Vector< Tag > &&value)
SnapshotInfo & WithOwnerId(Aws::String &&value)
bool StateHasBeenSet() const
AWS_EC2_API SnapshotInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(Aws::String &&value)
bool StartTimeHasBeenSet() const
int GetVolumeSize() const
SnapshotInfo & WithSseType(SSEType &&value)
void SetVolumeSize(int value)
bool SseTypeHasBeenSet() const
const Aws::String & GetSnapshotId() const
void SetSseType(const SSEType &value)
void SetVolumeId(const char *value)
const Aws::String & GetProgress() const
void SetSseType(SSEType &&value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
void SetStartTime(const Aws::Utils::DateTime &value)
void SetOwnerId(const char *value)
AWS_EC2_API SnapshotInfo()
void SetDescription(const char *value)
void SetState(SnapshotState &&value)
SnapshotInfo & WithDescription(const Aws::String &value)
bool DescriptionHasBeenSet() const
AWS_EC2_API SnapshotInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOutpostArn(const char *value)
SnapshotInfo & WithStartTime(Aws::Utils::DateTime &&value)
SnapshotInfo & WithDescription(Aws::String &&value)
bool SnapshotIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotInfo & WithVolumeSize(int value)
SnapshotInfo & WithSnapshotId(Aws::String &&value)
void SetOwnerId(Aws::String &&value)
void SetVolumeId(Aws::String &&value)
SnapshotInfo & WithSnapshotId(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetVolumeId(const Aws::String &value)
SnapshotInfo & AddTags(const Tag &value)
bool GetEncrypted() const
SnapshotInfo & WithOwnerId(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
SnapshotInfo & WithSnapshotId(const char *value)
void SetEncrypted(bool value)
SnapshotInfo & WithOutpostArn(const char *value)
const Aws::String & GetOwnerId() const
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