AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImageUsageReportEntry.h
1
6#pragma once
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/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
31 public:
32 AWS_EC2_API ImageUsageReportEntry() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetResourceType() const { return m_resourceType; }
45 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
46 template <typename ResourceTypeT = Aws::String>
47 void SetResourceType(ResourceTypeT&& value) {
48 m_resourceTypeHasBeenSet = true;
49 m_resourceType = std::forward<ResourceTypeT>(value);
50 }
51 template <typename ResourceTypeT = Aws::String>
52 ImageUsageReportEntry& WithResourceType(ResourceTypeT&& value) {
53 SetResourceType(std::forward<ResourceTypeT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetReportId() const { return m_reportId; }
63 inline bool ReportIdHasBeenSet() const { return m_reportIdHasBeenSet; }
64 template <typename ReportIdT = Aws::String>
65 void SetReportId(ReportIdT&& value) {
66 m_reportIdHasBeenSet = true;
67 m_reportId = std::forward<ReportIdT>(value);
68 }
69 template <typename ReportIdT = Aws::String>
70 ImageUsageReportEntry& WithReportId(ReportIdT&& value) {
71 SetReportId(std::forward<ReportIdT>(value));
72 return *this;
73 }
75
77
81 inline long long GetUsageCount() const { return m_usageCount; }
82 inline bool UsageCountHasBeenSet() const { return m_usageCountHasBeenSet; }
83 inline void SetUsageCount(long long value) {
84 m_usageCountHasBeenSet = true;
85 m_usageCount = value;
86 }
87 inline ImageUsageReportEntry& WithUsageCount(long long value) {
88 SetUsageCount(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetAccountId() const { return m_accountId; }
98 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
99 template <typename AccountIdT = Aws::String>
100 void SetAccountId(AccountIdT&& value) {
101 m_accountIdHasBeenSet = true;
102 m_accountId = std::forward<AccountIdT>(value);
103 }
104 template <typename AccountIdT = Aws::String>
106 SetAccountId(std::forward<AccountIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetImageId() const { return m_imageId; }
116 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
117 template <typename ImageIdT = Aws::String>
118 void SetImageId(ImageIdT&& value) {
119 m_imageIdHasBeenSet = true;
120 m_imageId = std::forward<ImageIdT>(value);
121 }
122 template <typename ImageIdT = Aws::String>
124 SetImageId(std::forward<ImageIdT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetReportCreationTime() const { return m_reportCreationTime; }
134 inline bool ReportCreationTimeHasBeenSet() const { return m_reportCreationTimeHasBeenSet; }
135 template <typename ReportCreationTimeT = Aws::Utils::DateTime>
136 void SetReportCreationTime(ReportCreationTimeT&& value) {
137 m_reportCreationTimeHasBeenSet = true;
138 m_reportCreationTime = std::forward<ReportCreationTimeT>(value);
139 }
140 template <typename ReportCreationTimeT = Aws::Utils::DateTime>
141 ImageUsageReportEntry& WithReportCreationTime(ReportCreationTimeT&& value) {
142 SetReportCreationTime(std::forward<ReportCreationTimeT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_resourceType;
148
149 Aws::String m_reportId;
150
151 long long m_usageCount{0};
152
153 Aws::String m_accountId;
154
155 Aws::String m_imageId;
156
157 Aws::Utils::DateTime m_reportCreationTime{};
158 bool m_resourceTypeHasBeenSet = false;
159 bool m_reportIdHasBeenSet = false;
160 bool m_usageCountHasBeenSet = false;
161 bool m_accountIdHasBeenSet = false;
162 bool m_imageIdHasBeenSet = false;
163 bool m_reportCreationTimeHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
const Aws::String & GetReportId() const
ImageUsageReportEntry & WithUsageCount(long long value)
void SetResourceType(ResourceTypeT &&value)
bool ReportCreationTimeHasBeenSet() const
void SetImageId(ImageIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReportId(ReportIdT &&value)
ImageUsageReportEntry & WithImageId(ImageIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool ImageIdHasBeenSet() const
const Aws::String & GetAccountId() const
bool ResourceTypeHasBeenSet() const
bool UsageCountHasBeenSet() const
ImageUsageReportEntry & WithAccountId(AccountIdT &&value)
ImageUsageReportEntry & WithResourceType(ResourceTypeT &&value)
long long GetUsageCount() const
bool AccountIdHasBeenSet() const
const Aws::String & GetImageId() const
AWS_EC2_API ImageUsageReportEntry()=default
AWS_EC2_API ImageUsageReportEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ReportIdHasBeenSet() const
void SetAccountId(AccountIdT &&value)
ImageUsageReportEntry & WithReportId(ReportIdT &&value)
const Aws::String & GetResourceType() const
AWS_EC2_API ImageUsageReportEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetReportCreationTime() const
void SetReportCreationTime(ReportCreationTimeT &&value)
ImageUsageReportEntry & WithReportCreationTime(ReportCreationTimeT &&value)
void SetUsageCount(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream