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>
54 template<
typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
56 template<
typename DescriptionT = Aws::String>
66 template<
typename TagsT = Aws::Vector<Tag>>
67 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
68 template<
typename TagsT = Aws::Vector<Tag>>
70 template<
typename TagsT = Tag>
71 SnapshotInfo&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
80 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
90 template<
typename VolumeIdT = Aws::String>
91 void SetVolumeId(VolumeIdT&& value) { m_volumeIdHasBeenSet =
true; m_volumeId = std::forward<VolumeIdT>(value); }
92 template<
typename VolumeIdT = Aws::String>
112 inline void SetVolumeSize(
int value) { m_volumeSizeHasBeenSet =
true; m_volumeSize = value; }
123 template<
typename StartTimeT = Aws::Utils::DateTime>
124 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet =
true; m_startTime = std::forward<StartTimeT>(value); }
125 template<
typename StartTimeT = Aws::Utils::DateTime>
135 template<
typename ProgressT = Aws::String>
136 void SetProgress(ProgressT&& value) { m_progressHasBeenSet =
true; m_progress = std::forward<ProgressT>(value); }
137 template<
typename ProgressT = Aws::String>
147 template<
typename OwnerIdT = Aws::String>
148 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet =
true; m_ownerId = std::forward<OwnerIdT>(value); }
149 template<
typename OwnerIdT = Aws::String>
159 template<
typename SnapshotIdT = Aws::String>
160 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet =
true; m_snapshotId = std::forward<SnapshotIdT>(value); }
161 template<
typename SnapshotIdT = Aws::String>
174 template<
typename OutpostArnT = Aws::String>
175 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet =
true; m_outpostArn = std::forward<OutpostArnT>(value); }
176 template<
typename OutpostArnT = Aws::String>
198 template<
typename AvailabilityZoneT = Aws::String>
199 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
200 template<
typename AvailabilityZoneT = Aws::String>
206 bool m_descriptionHasBeenSet =
false;
209 bool m_tagsHasBeenSet =
false;
211 bool m_encrypted{
false};
212 bool m_encryptedHasBeenSet =
false;
215 bool m_volumeIdHasBeenSet =
false;
218 bool m_stateHasBeenSet =
false;
221 bool m_volumeSizeHasBeenSet =
false;
224 bool m_startTimeHasBeenSet =
false;
227 bool m_progressHasBeenSet =
false;
230 bool m_ownerIdHasBeenSet =
false;
233 bool m_snapshotIdHasBeenSet =
false;
236 bool m_outpostArnHasBeenSet =
false;
239 bool m_sseTypeHasBeenSet =
false;
242 bool m_availabilityZoneHasBeenSet =
false;
void SetSnapshotId(SnapshotIdT &&value)
void SetOutpostArn(OutpostArnT &&value)
SnapshotInfo & WithEncrypted(bool value)
bool VolumeSizeHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTags(TagsT &&value)
void SetStartTime(StartTimeT &&value)
SnapshotInfo & WithVolumeId(VolumeIdT &&value)
SnapshotInfo & WithProgress(ProgressT &&value)
const Aws::String & GetDescription() const
SnapshotInfo & WithOwnerId(OwnerIdT &&value)
bool VolumeIdHasBeenSet() const
bool OwnerIdHasBeenSet() const
bool EncryptedHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
bool OutpostArnHasBeenSet() const
bool TagsHasBeenSet() const
void SetDescription(DescriptionT &&value)
SnapshotInfo & AddTags(TagsT &&value)
SnapshotInfo & WithTags(TagsT &&value)
SnapshotInfo & WithSnapshotId(SnapshotIdT &&value)
SSEType GetSseType() const
const Aws::String & GetVolumeId() const
bool ProgressHasBeenSet() const
void SetSseType(SSEType value)
bool StateHasBeenSet() const
AWS_EC2_API SnapshotInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
SnapshotInfo & WithAvailabilityZone(AvailabilityZoneT &&value)
bool StartTimeHasBeenSet() const
int GetVolumeSize() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
void SetVolumeSize(int value)
bool SseTypeHasBeenSet() const
const Aws::String & GetSnapshotId() const
const Aws::String & GetProgress() const
void SetVolumeId(VolumeIdT &&value)
const Aws::String & GetOutpostArn() const
const Aws::Vector< Tag > & GetTags() const
void SetOwnerId(OwnerIdT &&value)
void SetProgress(ProgressT &&value)
SnapshotInfo & WithState(SnapshotState value)
SnapshotInfo & WithStartTime(StartTimeT &&value)
SnapshotState GetState() const
bool DescriptionHasBeenSet() const
AWS_EC2_API SnapshotInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(SnapshotState value)
SnapshotInfo & WithOutpostArn(OutpostArnT &&value)
bool SnapshotIdHasBeenSet() const
SnapshotInfo & WithSseType(SSEType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SnapshotInfo & WithVolumeSize(int value)
SnapshotInfo & WithDescription(DescriptionT &&value)
const Aws::String & GetAvailabilityZone() const
bool GetEncrypted() const
const Aws::Utils::DateTime & GetStartTime() const
AWS_EC2_API SnapshotInfo()=default
void SetEncrypted(bool 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