AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetInstance.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ce/model/ResourceDetails.h>
10#include <aws/ce/model/ResourceUtilization.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ce/model/PlatformDifference.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CostExplorer
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_COSTEXPLORER_API TargetInstance();
39 AWS_COSTEXPLORER_API TargetInstance(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API TargetInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetEstimatedMonthlyCost() const{ return m_estimatedMonthlyCost; }
49 inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; }
50 inline void SetEstimatedMonthlyCost(const Aws::String& value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = value; }
51 inline void SetEstimatedMonthlyCost(Aws::String&& value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = std::move(value); }
52 inline void SetEstimatedMonthlyCost(const char* value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost.assign(value); }
53 inline TargetInstance& WithEstimatedMonthlyCost(const Aws::String& value) { SetEstimatedMonthlyCost(value); return *this;}
54 inline TargetInstance& WithEstimatedMonthlyCost(Aws::String&& value) { SetEstimatedMonthlyCost(std::move(value)); return *this;}
55 inline TargetInstance& WithEstimatedMonthlyCost(const char* value) { SetEstimatedMonthlyCost(value); return *this;}
57
59
62 inline const Aws::String& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; }
63 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
64 inline void SetEstimatedMonthlySavings(const Aws::String& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; }
65 inline void SetEstimatedMonthlySavings(Aws::String&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); }
66 inline void SetEstimatedMonthlySavings(const char* value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings.assign(value); }
68 inline TargetInstance& WithEstimatedMonthlySavings(Aws::String&& value) { SetEstimatedMonthlySavings(std::move(value)); return *this;}
69 inline TargetInstance& WithEstimatedMonthlySavings(const char* value) { SetEstimatedMonthlySavings(value); return *this;}
71
73
77 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
78 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
79 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
80 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
81 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
82 inline TargetInstance& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
83 inline TargetInstance& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
84 inline TargetInstance& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
86
88
92 inline bool GetDefaultTargetInstance() const{ return m_defaultTargetInstance; }
93 inline bool DefaultTargetInstanceHasBeenSet() const { return m_defaultTargetInstanceHasBeenSet; }
94 inline void SetDefaultTargetInstance(bool value) { m_defaultTargetInstanceHasBeenSet = true; m_defaultTargetInstance = value; }
95 inline TargetInstance& WithDefaultTargetInstance(bool value) { SetDefaultTargetInstance(value); return *this;}
97
99
102 inline const ResourceDetails& GetResourceDetails() const{ return m_resourceDetails; }
103 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
104 inline void SetResourceDetails(const ResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; }
105 inline void SetResourceDetails(ResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); }
106 inline TargetInstance& WithResourceDetails(const ResourceDetails& value) { SetResourceDetails(value); return *this;}
107 inline TargetInstance& WithResourceDetails(ResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;}
109
111
114 inline const ResourceUtilization& GetExpectedResourceUtilization() const{ return m_expectedResourceUtilization; }
115 inline bool ExpectedResourceUtilizationHasBeenSet() const { return m_expectedResourceUtilizationHasBeenSet; }
116 inline void SetExpectedResourceUtilization(const ResourceUtilization& value) { m_expectedResourceUtilizationHasBeenSet = true; m_expectedResourceUtilization = value; }
117 inline void SetExpectedResourceUtilization(ResourceUtilization&& value) { m_expectedResourceUtilizationHasBeenSet = true; m_expectedResourceUtilization = std::move(value); }
121
123
127 inline const Aws::Vector<PlatformDifference>& GetPlatformDifferences() const{ return m_platformDifferences; }
128 inline bool PlatformDifferencesHasBeenSet() const { return m_platformDifferencesHasBeenSet; }
129 inline void SetPlatformDifferences(const Aws::Vector<PlatformDifference>& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences = value; }
130 inline void SetPlatformDifferences(Aws::Vector<PlatformDifference>&& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences = std::move(value); }
133 inline TargetInstance& AddPlatformDifferences(const PlatformDifference& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences.push_back(value); return *this; }
134 inline TargetInstance& AddPlatformDifferences(PlatformDifference&& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_estimatedMonthlyCost;
139 bool m_estimatedMonthlyCostHasBeenSet = false;
140
141 Aws::String m_estimatedMonthlySavings;
142 bool m_estimatedMonthlySavingsHasBeenSet = false;
143
144 Aws::String m_currencyCode;
145 bool m_currencyCodeHasBeenSet = false;
146
147 bool m_defaultTargetInstance;
148 bool m_defaultTargetInstanceHasBeenSet = false;
149
150 ResourceDetails m_resourceDetails;
151 bool m_resourceDetailsHasBeenSet = false;
152
153 ResourceUtilization m_expectedResourceUtilization;
154 bool m_expectedResourceUtilizationHasBeenSet = false;
155
156 Aws::Vector<PlatformDifference> m_platformDifferences;
157 bool m_platformDifferencesHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CostExplorer
162} // namespace Aws
TargetInstance & WithEstimatedMonthlyCost(const Aws::String &value)
void SetResourceDetails(ResourceDetails &&value)
void SetExpectedResourceUtilization(const ResourceUtilization &value)
const Aws::String & GetEstimatedMonthlySavings() const
void SetEstimatedMonthlyCost(Aws::String &&value)
void SetExpectedResourceUtilization(ResourceUtilization &&value)
TargetInstance & WithEstimatedMonthlyCost(const char *value)
TargetInstance & WithEstimatedMonthlySavings(Aws::String &&value)
void SetEstimatedMonthlySavings(const char *value)
void SetPlatformDifferences(const Aws::Vector< PlatformDifference > &value)
TargetInstance & AddPlatformDifferences(PlatformDifference &&value)
AWS_COSTEXPLORER_API TargetInstance(Aws::Utils::Json::JsonView jsonValue)
TargetInstance & WithPlatformDifferences(const Aws::Vector< PlatformDifference > &value)
TargetInstance & WithEstimatedMonthlySavings(const Aws::String &value)
TargetInstance & WithExpectedResourceUtilization(ResourceUtilization &&value)
TargetInstance & WithEstimatedMonthlySavings(const char *value)
const Aws::String & GetCurrencyCode() const
TargetInstance & WithResourceDetails(const ResourceDetails &value)
TargetInstance & WithCurrencyCode(const char *value)
const Aws::String & GetEstimatedMonthlyCost() const
void SetEstimatedMonthlySavings(Aws::String &&value)
void SetCurrencyCode(Aws::String &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPlatformDifferences(Aws::Vector< PlatformDifference > &&value)
void SetCurrencyCode(const Aws::String &value)
TargetInstance & WithResourceDetails(ResourceDetails &&value)
void SetEstimatedMonthlyCost(const char *value)
AWS_COSTEXPLORER_API TargetInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEstimatedMonthlySavings(const Aws::String &value)
const ResourceUtilization & GetExpectedResourceUtilization() const
TargetInstance & WithExpectedResourceUtilization(const ResourceUtilization &value)
const Aws::Vector< PlatformDifference > & GetPlatformDifferences() const
TargetInstance & WithPlatformDifferences(Aws::Vector< PlatformDifference > &&value)
TargetInstance & WithCurrencyCode(const Aws::String &value)
TargetInstance & WithDefaultTargetInstance(bool value)
void SetEstimatedMonthlyCost(const Aws::String &value)
void SetResourceDetails(const ResourceDetails &value)
const ResourceDetails & GetResourceDetails() const
TargetInstance & AddPlatformDifferences(const PlatformDifference &value)
TargetInstance & WithCurrencyCode(Aws::String &&value)
TargetInstance & WithEstimatedMonthlyCost(Aws::String &&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