AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ResourcePricing.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/EstimatedDiscounts.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub {
20namespace Model {
21
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API ResourcePricing() = default;
31 AWS_COSTOPTIMIZATIONHUB_API ResourcePricing(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COSTOPTIMIZATIONHUB_API ResourcePricing& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline double GetEstimatedCostBeforeDiscounts() const { return m_estimatedCostBeforeDiscounts; }
41 inline bool EstimatedCostBeforeDiscountsHasBeenSet() const { return m_estimatedCostBeforeDiscountsHasBeenSet; }
42 inline void SetEstimatedCostBeforeDiscounts(double value) {
43 m_estimatedCostBeforeDiscountsHasBeenSet = true;
44 m_estimatedCostBeforeDiscounts = value;
45 }
48 return *this;
49 }
51
53
56 inline double GetEstimatedNetUnusedAmortizedCommitments() const { return m_estimatedNetUnusedAmortizedCommitments; }
57 inline bool EstimatedNetUnusedAmortizedCommitmentsHasBeenSet() const { return m_estimatedNetUnusedAmortizedCommitmentsHasBeenSet; }
59 m_estimatedNetUnusedAmortizedCommitmentsHasBeenSet = true;
60 m_estimatedNetUnusedAmortizedCommitments = value;
61 }
64 return *this;
65 }
67
69
72 inline const EstimatedDiscounts& GetEstimatedDiscounts() const { return m_estimatedDiscounts; }
73 inline bool EstimatedDiscountsHasBeenSet() const { return m_estimatedDiscountsHasBeenSet; }
74 template <typename EstimatedDiscountsT = EstimatedDiscounts>
75 void SetEstimatedDiscounts(EstimatedDiscountsT&& value) {
76 m_estimatedDiscountsHasBeenSet = true;
77 m_estimatedDiscounts = std::forward<EstimatedDiscountsT>(value);
78 }
79 template <typename EstimatedDiscountsT = EstimatedDiscounts>
80 ResourcePricing& WithEstimatedDiscounts(EstimatedDiscountsT&& value) {
81 SetEstimatedDiscounts(std::forward<EstimatedDiscountsT>(value));
82 return *this;
83 }
85
87
91 inline double GetEstimatedCostAfterDiscounts() const { return m_estimatedCostAfterDiscounts; }
92 inline bool EstimatedCostAfterDiscountsHasBeenSet() const { return m_estimatedCostAfterDiscountsHasBeenSet; }
93 inline void SetEstimatedCostAfterDiscounts(double value) {
94 m_estimatedCostAfterDiscountsHasBeenSet = true;
95 m_estimatedCostAfterDiscounts = value;
96 }
99 return *this;
100 }
102 private:
103 double m_estimatedCostBeforeDiscounts{0.0};
104
105 double m_estimatedNetUnusedAmortizedCommitments{0.0};
106
107 EstimatedDiscounts m_estimatedDiscounts;
108
109 double m_estimatedCostAfterDiscounts{0.0};
110 bool m_estimatedCostBeforeDiscountsHasBeenSet = false;
111 bool m_estimatedNetUnusedAmortizedCommitmentsHasBeenSet = false;
112 bool m_estimatedDiscountsHasBeenSet = false;
113 bool m_estimatedCostAfterDiscountsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CostOptimizationHub
118} // namespace Aws
ResourcePricing & WithEstimatedDiscounts(EstimatedDiscountsT &&value)
ResourcePricing & WithEstimatedNetUnusedAmortizedCommitments(double value)
AWS_COSTOPTIMIZATIONHUB_API ResourcePricing()=default
void SetEstimatedDiscounts(EstimatedDiscountsT &&value)
AWS_COSTOPTIMIZATIONHUB_API ResourcePricing & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API ResourcePricing(Aws::Utils::Json::JsonView jsonValue)
ResourcePricing & WithEstimatedCostBeforeDiscounts(double value)
const EstimatedDiscounts & GetEstimatedDiscounts() const
ResourcePricing & WithEstimatedCostAfterDiscounts(double value)
Aws::Utils::Json::JsonValue JsonValue