7#include <aws/core/utils/DateTime.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/EC2_EXPORTS.h>
12#include <aws/ec2/model/ImageUsageResourceType.h>
13#include <aws/ec2/model/Tag.h>
47 template <
typename ImageIdT = Aws::String>
49 m_imageIdHasBeenSet =
true;
50 m_imageId = std::forward<ImageIdT>(value);
52 template <
typename ImageIdT = Aws::String>
65 template <
typename ReportIdT = Aws::String>
67 m_reportIdHasBeenSet =
true;
68 m_reportId = std::forward<ReportIdT>(value);
70 template <
typename ReportIdT = Aws::String>
83 template <
typename ResourceTypesT = Aws::Vector<ImageUsageResourceType>>
85 m_resourceTypesHasBeenSet =
true;
86 m_resourceTypes = std::forward<ResourceTypesT>(value);
88 template <
typename ResourceTypesT = Aws::Vector<ImageUsageResourceType>>
93 template <
typename ResourceTypesT = ImageUsageResourceType>
95 m_resourceTypesHasBeenSet =
true;
96 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
108 template <
typename AccountIdsT = Aws::Vector<Aws::String>>
110 m_accountIdsHasBeenSet =
true;
111 m_accountIds = std::forward<AccountIdsT>(value);
113 template <
typename AccountIdsT = Aws::Vector<Aws::String>>
118 template <
typename AccountIdsT = Aws::String>
120 m_accountIdsHasBeenSet =
true;
121 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
136 template <
typename StateT = Aws::String>
138 m_stateHasBeenSet =
true;
139 m_state = std::forward<StateT>(value);
141 template <
typename StateT = Aws::String>
143 SetState(std::forward<StateT>(value));
155 template <
typename StateReasonT = Aws::String>
157 m_stateReasonHasBeenSet =
true;
158 m_stateReason = std::forward<StateReasonT>(value);
160 template <
typename StateReasonT = Aws::String>
173 template <
typename CreationTimeT = Aws::Utils::DateTime>
175 m_creationTimeHasBeenSet =
true;
176 m_creationTime = std::forward<CreationTimeT>(value);
178 template <
typename CreationTimeT = Aws::Utils::DateTime>
192 template <
typename ExpirationTimeT = Aws::Utils::DateTime>
194 m_expirationTimeHasBeenSet =
true;
195 m_expirationTime = std::forward<ExpirationTimeT>(value);
197 template <
typename ExpirationTimeT = Aws::Utils::DateTime>
210 template <
typename TagsT = Aws::Vector<Tag>>
212 m_tagsHasBeenSet =
true;
213 m_tags = std::forward<TagsT>(value);
215 template <
typename TagsT = Aws::Vector<Tag>>
217 SetTags(std::forward<TagsT>(value));
220 template <
typename TagsT = Tag>
222 m_tagsHasBeenSet =
true;
223 m_tags.emplace_back(std::forward<TagsT>(value));
245 bool m_imageIdHasBeenSet =
false;
246 bool m_reportIdHasBeenSet =
false;
247 bool m_resourceTypesHasBeenSet =
false;
248 bool m_accountIdsHasBeenSet =
false;
249 bool m_stateHasBeenSet =
false;
250 bool m_stateReasonHasBeenSet =
false;
251 bool m_creationTimeHasBeenSet =
false;
252 bool m_expirationTimeHasBeenSet =
false;
253 bool m_tagsHasBeenSet =
false;
bool AccountIdsHasBeenSet() const
bool StateReasonHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetExpirationTime() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImageUsageReport & WithCreationTime(CreationTimeT &&value)
bool ReportIdHasBeenSet() const
ImageUsageReport & AddTags(TagsT &&value)
void SetImageId(ImageIdT &&value)
ImageUsageReport & WithResourceTypes(ResourceTypesT &&value)
ImageUsageReport & WithExpirationTime(ExpirationTimeT &&value)
const Aws::String & GetReportId() const
void SetResourceTypes(ResourceTypesT &&value)
ImageUsageReport & WithImageId(ImageIdT &&value)
bool ResourceTypesHasBeenSet() const
void SetReportId(ReportIdT &&value)
bool ExpirationTimeHasBeenSet() const
const Aws::String & GetState() const
void SetCreationTime(CreationTimeT &&value)
ImageUsageReport & WithAccountIds(AccountIdsT &&value)
void SetState(StateT &&value)
bool CreationTimeHasBeenSet() const
bool ImageIdHasBeenSet() const
ImageUsageReport & WithStateReason(StateReasonT &&value)
AWS_EC2_API ImageUsageReport()=default
void SetAccountIds(AccountIdsT &&value)
AWS_EC2_API ImageUsageReport(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ImageUsageReport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StateHasBeenSet() const
const Aws::Vector< Aws::String > & GetAccountIds() const
ImageUsageReport & WithReportId(ReportIdT &&value)
const Aws::Vector< ImageUsageResourceType > & GetResourceTypes() const
void SetExpirationTime(ExpirationTimeT &&value)
ImageUsageReport & WithState(StateT &&value)
void SetStateReason(StateReasonT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetImageId() const
ImageUsageReport & AddResourceTypes(ResourceTypesT &&value)
ImageUsageReport & WithTags(TagsT &&value)
bool TagsHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
ImageUsageReport & AddAccountIds(AccountIdsT &&value)
const Aws::String & GetStateReason() 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