AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReportContext.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LicenseManager {
22namespace Model {
23
31 public:
32 AWS_LICENSEMANAGER_API ReportContext() = default;
33 AWS_LICENSEMANAGER_API ReportContext(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LICENSEMANAGER_API ReportContext& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetLicenseConfigurationArns() const { return m_licenseConfigurationArns; }
43 inline bool LicenseConfigurationArnsHasBeenSet() const { return m_licenseConfigurationArnsHasBeenSet; }
44 template <typename LicenseConfigurationArnsT = Aws::Vector<Aws::String>>
45 void SetLicenseConfigurationArns(LicenseConfigurationArnsT&& value) {
46 m_licenseConfigurationArnsHasBeenSet = true;
47 m_licenseConfigurationArns = std::forward<LicenseConfigurationArnsT>(value);
48 }
49 template <typename LicenseConfigurationArnsT = Aws::Vector<Aws::String>>
50 ReportContext& WithLicenseConfigurationArns(LicenseConfigurationArnsT&& value) {
51 SetLicenseConfigurationArns(std::forward<LicenseConfigurationArnsT>(value));
52 return *this;
53 }
54 template <typename LicenseConfigurationArnsT = Aws::String>
55 ReportContext& AddLicenseConfigurationArns(LicenseConfigurationArnsT&& value) {
56 m_licenseConfigurationArnsHasBeenSet = true;
57 m_licenseConfigurationArns.emplace_back(std::forward<LicenseConfigurationArnsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Aws::String>& GetLicenseAssetGroupArns() const { return m_licenseAssetGroupArns; }
68 inline bool LicenseAssetGroupArnsHasBeenSet() const { return m_licenseAssetGroupArnsHasBeenSet; }
69 template <typename LicenseAssetGroupArnsT = Aws::Vector<Aws::String>>
70 void SetLicenseAssetGroupArns(LicenseAssetGroupArnsT&& value) {
71 m_licenseAssetGroupArnsHasBeenSet = true;
72 m_licenseAssetGroupArns = std::forward<LicenseAssetGroupArnsT>(value);
73 }
74 template <typename LicenseAssetGroupArnsT = Aws::Vector<Aws::String>>
75 ReportContext& WithLicenseAssetGroupArns(LicenseAssetGroupArnsT&& value) {
76 SetLicenseAssetGroupArns(std::forward<LicenseAssetGroupArnsT>(value));
77 return *this;
78 }
79 template <typename LicenseAssetGroupArnsT = Aws::String>
80 ReportContext& AddLicenseAssetGroupArns(LicenseAssetGroupArnsT&& value) {
81 m_licenseAssetGroupArnsHasBeenSet = true;
82 m_licenseAssetGroupArns.emplace_back(std::forward<LicenseAssetGroupArnsT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetReportStartDate() const { return m_reportStartDate; }
92 inline bool ReportStartDateHasBeenSet() const { return m_reportStartDateHasBeenSet; }
93 template <typename ReportStartDateT = Aws::Utils::DateTime>
94 void SetReportStartDate(ReportStartDateT&& value) {
95 m_reportStartDateHasBeenSet = true;
96 m_reportStartDate = std::forward<ReportStartDateT>(value);
97 }
98 template <typename ReportStartDateT = Aws::Utils::DateTime>
99 ReportContext& WithReportStartDate(ReportStartDateT&& value) {
100 SetReportStartDate(std::forward<ReportStartDateT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetReportEndDate() const { return m_reportEndDate; }
110 inline bool ReportEndDateHasBeenSet() const { return m_reportEndDateHasBeenSet; }
111 template <typename ReportEndDateT = Aws::Utils::DateTime>
112 void SetReportEndDate(ReportEndDateT&& value) {
113 m_reportEndDateHasBeenSet = true;
114 m_reportEndDate = std::forward<ReportEndDateT>(value);
115 }
116 template <typename ReportEndDateT = Aws::Utils::DateTime>
117 ReportContext& WithReportEndDate(ReportEndDateT&& value) {
118 SetReportEndDate(std::forward<ReportEndDateT>(value));
119 return *this;
120 }
122 private:
123 Aws::Vector<Aws::String> m_licenseConfigurationArns;
124
125 Aws::Vector<Aws::String> m_licenseAssetGroupArns;
126
127 Aws::Utils::DateTime m_reportStartDate{};
128
129 Aws::Utils::DateTime m_reportEndDate{};
130 bool m_licenseConfigurationArnsHasBeenSet = false;
131 bool m_licenseAssetGroupArnsHasBeenSet = false;
132 bool m_reportStartDateHasBeenSet = false;
133 bool m_reportEndDateHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace LicenseManager
138} // namespace Aws
void SetLicenseConfigurationArns(LicenseConfigurationArnsT &&value)
ReportContext & WithReportStartDate(ReportStartDateT &&value)
AWS_LICENSEMANAGER_API ReportContext()=default
const Aws::Utils::DateTime & GetReportStartDate() const
void SetReportStartDate(ReportStartDateT &&value)
ReportContext & WithLicenseConfigurationArns(LicenseConfigurationArnsT &&value)
ReportContext & AddLicenseAssetGroupArns(LicenseAssetGroupArnsT &&value)
AWS_LICENSEMANAGER_API ReportContext & operator=(Aws::Utils::Json::JsonView jsonValue)
ReportContext & AddLicenseConfigurationArns(LicenseConfigurationArnsT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLicenseAssetGroupArns(LicenseAssetGroupArnsT &&value)
void SetReportEndDate(ReportEndDateT &&value)
ReportContext & WithLicenseAssetGroupArns(LicenseAssetGroupArnsT &&value)
AWS_LICENSEMANAGER_API ReportContext(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLicenseAssetGroupArns() const
const Aws::Vector< Aws::String > & GetLicenseConfigurationArns() const
ReportContext & WithReportEndDate(ReportEndDateT &&value)
const Aws::Utils::DateTime & GetReportEndDate() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue