AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LicenseRecommendation.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/compute-optimizer/model/LicenseConfiguration.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/compute-optimizer/model/LicenseFinding.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/compute-optimizer/model/LicenseFindingReasonCode.h>
14#include <aws/compute-optimizer/model/LicenseRecommendationOption.h>
15#include <aws/compute-optimizer/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ComputeOptimizer
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_COMPUTEOPTIMIZER_API LicenseRecommendation();
43 AWS_COMPUTEOPTIMIZER_API LicenseRecommendation(Aws::Utils::Json::JsonView jsonValue);
44 AWS_COMPUTEOPTIMIZER_API LicenseRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
53 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
55 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
56 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
57 inline LicenseRecommendation& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
58 inline LicenseRecommendation& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
59 inline LicenseRecommendation& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
61
63
66 inline const Aws::String& GetAccountId() const{ return m_accountId; }
67 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
68 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
69 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
70 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
71 inline LicenseRecommendation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
72 inline LicenseRecommendation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
73 inline LicenseRecommendation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
75
77
81 inline const LicenseConfiguration& GetCurrentLicenseConfiguration() const{ return m_currentLicenseConfiguration; }
82 inline bool CurrentLicenseConfigurationHasBeenSet() const { return m_currentLicenseConfigurationHasBeenSet; }
83 inline void SetCurrentLicenseConfiguration(const LicenseConfiguration& value) { m_currentLicenseConfigurationHasBeenSet = true; m_currentLicenseConfiguration = value; }
84 inline void SetCurrentLicenseConfiguration(LicenseConfiguration&& value) { m_currentLicenseConfigurationHasBeenSet = true; m_currentLicenseConfiguration = std::move(value); }
88
90
94 inline double GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; }
95 inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
96 inline void SetLookbackPeriodInDays(double value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
97 inline LicenseRecommendation& WithLookbackPeriodInDays(double value) { SetLookbackPeriodInDays(value); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetLastRefreshTimestamp() const{ return m_lastRefreshTimestamp; }
105 inline bool LastRefreshTimestampHasBeenSet() const { return m_lastRefreshTimestampHasBeenSet; }
106 inline void SetLastRefreshTimestamp(const Aws::Utils::DateTime& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = value; }
107 inline void SetLastRefreshTimestamp(Aws::Utils::DateTime&& value) { m_lastRefreshTimestampHasBeenSet = true; m_lastRefreshTimestamp = std::move(value); }
111
113
125 inline const LicenseFinding& GetFinding() const{ return m_finding; }
126 inline bool FindingHasBeenSet() const { return m_findingHasBeenSet; }
127 inline void SetFinding(const LicenseFinding& value) { m_findingHasBeenSet = true; m_finding = value; }
128 inline void SetFinding(LicenseFinding&& value) { m_findingHasBeenSet = true; m_finding = std::move(value); }
129 inline LicenseRecommendation& WithFinding(const LicenseFinding& value) { SetFinding(value); return *this;}
130 inline LicenseRecommendation& WithFinding(LicenseFinding&& value) { SetFinding(std::move(value)); return *this;}
132
134
147 inline const Aws::Vector<LicenseFindingReasonCode>& GetFindingReasonCodes() const{ return m_findingReasonCodes; }
148 inline bool FindingReasonCodesHasBeenSet() const { return m_findingReasonCodesHasBeenSet; }
149 inline void SetFindingReasonCodes(const Aws::Vector<LicenseFindingReasonCode>& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes = value; }
150 inline void SetFindingReasonCodes(Aws::Vector<LicenseFindingReasonCode>&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes = std::move(value); }
153 inline LicenseRecommendation& AddFindingReasonCodes(const LicenseFindingReasonCode& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(value); return *this; }
154 inline LicenseRecommendation& AddFindingReasonCodes(LicenseFindingReasonCode&& value) { m_findingReasonCodesHasBeenSet = true; m_findingReasonCodes.push_back(std::move(value)); return *this; }
156
158
161 inline const Aws::Vector<LicenseRecommendationOption>& GetLicenseRecommendationOptions() const{ return m_licenseRecommendationOptions; }
162 inline bool LicenseRecommendationOptionsHasBeenSet() const { return m_licenseRecommendationOptionsHasBeenSet; }
163 inline void SetLicenseRecommendationOptions(const Aws::Vector<LicenseRecommendationOption>& value) { m_licenseRecommendationOptionsHasBeenSet = true; m_licenseRecommendationOptions = value; }
164 inline void SetLicenseRecommendationOptions(Aws::Vector<LicenseRecommendationOption>&& value) { m_licenseRecommendationOptionsHasBeenSet = true; m_licenseRecommendationOptions = std::move(value); }
167 inline LicenseRecommendation& AddLicenseRecommendationOptions(const LicenseRecommendationOption& value) { m_licenseRecommendationOptionsHasBeenSet = true; m_licenseRecommendationOptions.push_back(value); return *this; }
168 inline LicenseRecommendation& AddLicenseRecommendationOptions(LicenseRecommendationOption&& value) { m_licenseRecommendationOptionsHasBeenSet = true; m_licenseRecommendationOptions.push_back(std::move(value)); return *this; }
170
172
175 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
178 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
179 inline LicenseRecommendation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
180 inline LicenseRecommendation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
181 inline LicenseRecommendation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
182 inline LicenseRecommendation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
184 private:
185
186 Aws::String m_resourceArn;
187 bool m_resourceArnHasBeenSet = false;
188
189 Aws::String m_accountId;
190 bool m_accountIdHasBeenSet = false;
191
192 LicenseConfiguration m_currentLicenseConfiguration;
193 bool m_currentLicenseConfigurationHasBeenSet = false;
194
195 double m_lookbackPeriodInDays;
196 bool m_lookbackPeriodInDaysHasBeenSet = false;
197
198 Aws::Utils::DateTime m_lastRefreshTimestamp;
199 bool m_lastRefreshTimestampHasBeenSet = false;
200
201 LicenseFinding m_finding;
202 bool m_findingHasBeenSet = false;
203
204 Aws::Vector<LicenseFindingReasonCode> m_findingReasonCodes;
205 bool m_findingReasonCodesHasBeenSet = false;
206
207 Aws::Vector<LicenseRecommendationOption> m_licenseRecommendationOptions;
208 bool m_licenseRecommendationOptionsHasBeenSet = false;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace ComputeOptimizer
216} // namespace Aws
void SetLicenseRecommendationOptions(const Aws::Vector< LicenseRecommendationOption > &value)
const Aws::Vector< LicenseFindingReasonCode > & GetFindingReasonCodes() const
LicenseRecommendation & WithCurrentLicenseConfiguration(const LicenseConfiguration &value)
void SetFindingReasonCodes(Aws::Vector< LicenseFindingReasonCode > &&value)
AWS_COMPUTEOPTIMIZER_API LicenseRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
LicenseRecommendation & AddFindingReasonCodes(LicenseFindingReasonCode &&value)
LicenseRecommendation & WithTags(const Aws::Vector< Tag > &value)
LicenseRecommendation & WithAccountId(const char *value)
const Aws::Utils::DateTime & GetLastRefreshTimestamp() const
LicenseRecommendation & AddLicenseRecommendationOptions(LicenseRecommendationOption &&value)
LicenseRecommendation & WithResourceArn(const char *value)
LicenseRecommendation & WithLookbackPeriodInDays(double value)
void SetLicenseRecommendationOptions(Aws::Vector< LicenseRecommendationOption > &&value)
LicenseRecommendation & AddTags(const Tag &value)
void SetFindingReasonCodes(const Aws::Vector< LicenseFindingReasonCode > &value)
void SetLastRefreshTimestamp(const Aws::Utils::DateTime &value)
LicenseRecommendation & WithLicenseRecommendationOptions(Aws::Vector< LicenseRecommendationOption > &&value)
LicenseRecommendation & WithFinding(const LicenseFinding &value)
LicenseRecommendation & AddLicenseRecommendationOptions(const LicenseRecommendationOption &value)
LicenseRecommendation & WithResourceArn(Aws::String &&value)
LicenseRecommendation & WithResourceArn(const Aws::String &value)
AWS_COMPUTEOPTIMIZER_API LicenseRecommendation(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
LicenseRecommendation & WithFindingReasonCodes(const Aws::Vector< LicenseFindingReasonCode > &value)
const LicenseConfiguration & GetCurrentLicenseConfiguration() const
LicenseRecommendation & WithAccountId(const Aws::String &value)
LicenseRecommendation & WithFindingReasonCodes(Aws::Vector< LicenseFindingReasonCode > &&value)
LicenseRecommendation & WithAccountId(Aws::String &&value)
void SetCurrentLicenseConfiguration(const LicenseConfiguration &value)
const Aws::Vector< LicenseRecommendationOption > & GetLicenseRecommendationOptions() const
LicenseRecommendation & WithLastRefreshTimestamp(Aws::Utils::DateTime &&value)
LicenseRecommendation & WithFinding(LicenseFinding &&value)
void SetCurrentLicenseConfiguration(LicenseConfiguration &&value)
LicenseRecommendation & AddFindingReasonCodes(const LicenseFindingReasonCode &value)
void SetLastRefreshTimestamp(Aws::Utils::DateTime &&value)
LicenseRecommendation & WithLicenseRecommendationOptions(const Aws::Vector< LicenseRecommendationOption > &value)
LicenseRecommendation & WithLastRefreshTimestamp(const Aws::Utils::DateTime &value)
LicenseRecommendation & WithTags(Aws::Vector< Tag > &&value)
LicenseRecommendation & WithCurrentLicenseConfiguration(LicenseConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue