AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
ImageUsageReportEntry.h
1
6#pragma once
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/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EC2_API ImageUsageReportEntry() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetResourceType() const { return m_resourceType; }
51 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
52 template<typename ResourceTypeT = Aws::String>
53 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
54 template<typename ResourceTypeT = Aws::String>
55 ImageUsageReportEntry& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
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) { m_reportIdHasBeenSet = true; m_reportId = std::forward<ReportIdT>(value); }
66 template<typename ReportIdT = Aws::String>
67 ImageUsageReportEntry& WithReportId(ReportIdT&& value) { SetReportId(std::forward<ReportIdT>(value)); return *this;}
69
71
75 inline long long GetUsageCount() const { return m_usageCount; }
76 inline bool UsageCountHasBeenSet() const { return m_usageCountHasBeenSet; }
77 inline void SetUsageCount(long long value) { m_usageCountHasBeenSet = true; m_usageCount = value; }
78 inline ImageUsageReportEntry& WithUsageCount(long long value) { SetUsageCount(value); return *this;}
80
82
85 inline const Aws::String& GetAccountId() const { return m_accountId; }
86 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
87 template<typename AccountIdT = Aws::String>
88 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
89 template<typename AccountIdT = Aws::String>
90 ImageUsageReportEntry& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetImageId() const { return m_imageId; }
98 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
99 template<typename ImageIdT = Aws::String>
100 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
101 template<typename ImageIdT = Aws::String>
102 ImageUsageReportEntry& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetReportCreationTime() const { return m_reportCreationTime; }
110 inline bool ReportCreationTimeHasBeenSet() const { return m_reportCreationTimeHasBeenSet; }
111 template<typename ReportCreationTimeT = Aws::Utils::DateTime>
112 void SetReportCreationTime(ReportCreationTimeT&& value) { m_reportCreationTimeHasBeenSet = true; m_reportCreationTime = std::forward<ReportCreationTimeT>(value); }
113 template<typename ReportCreationTimeT = Aws::Utils::DateTime>
114 ImageUsageReportEntry& WithReportCreationTime(ReportCreationTimeT&& value) { SetReportCreationTime(std::forward<ReportCreationTimeT>(value)); return *this;}
116 private:
117
118 Aws::String m_resourceType;
119 bool m_resourceTypeHasBeenSet = false;
120
121 Aws::String m_reportId;
122 bool m_reportIdHasBeenSet = false;
123
124 long long m_usageCount{0};
125 bool m_usageCountHasBeenSet = false;
126
127 Aws::String m_accountId;
128 bool m_accountIdHasBeenSet = false;
129
130 Aws::String m_imageId;
131 bool m_imageIdHasBeenSet = false;
132
133 Aws::Utils::DateTime m_reportCreationTime{};
134 bool m_reportCreationTimeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EC2
139} // 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