AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlansUtilizationDetail.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/ce/model/SavingsPlansUtilization.h>
11#include <aws/ce/model/SavingsPlansSavings.h>
12#include <aws/ce/model/SavingsPlansAmortizedCommitment.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
39 {
40 public:
41 AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail();
44 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetSavingsPlanArn() const{ return m_savingsPlanArn; }
52 inline bool SavingsPlanArnHasBeenSet() const { return m_savingsPlanArnHasBeenSet; }
53 inline void SetSavingsPlanArn(const Aws::String& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = value; }
54 inline void SetSavingsPlanArn(Aws::String&& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = std::move(value); }
55 inline void SetSavingsPlanArn(const char* value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn.assign(value); }
57 inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(Aws::String&& value) { SetSavingsPlanArn(std::move(value)); return *this;}
58 inline SavingsPlansUtilizationDetail& WithSavingsPlanArn(const char* value) { SetSavingsPlanArn(value); return *this;}
60
62
65 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
66 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
67 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
68 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
71 inline SavingsPlansUtilizationDetail& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
72 inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
73 inline SavingsPlansUtilizationDetail& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
74 inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
75 inline SavingsPlansUtilizationDetail& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
76 inline SavingsPlansUtilizationDetail& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
77 inline SavingsPlansUtilizationDetail& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
79
81
85 inline const SavingsPlansUtilization& GetUtilization() const{ return m_utilization; }
86 inline bool UtilizationHasBeenSet() const { return m_utilizationHasBeenSet; }
87 inline void SetUtilization(const SavingsPlansUtilization& value) { m_utilizationHasBeenSet = true; m_utilization = value; }
88 inline void SetUtilization(SavingsPlansUtilization&& value) { m_utilizationHasBeenSet = true; m_utilization = std::move(value); }
90 inline SavingsPlansUtilizationDetail& WithUtilization(SavingsPlansUtilization&& value) { SetUtilization(std::move(value)); return *this;}
92
94
99 inline const SavingsPlansSavings& GetSavings() const{ return m_savings; }
100 inline bool SavingsHasBeenSet() const { return m_savingsHasBeenSet; }
101 inline void SetSavings(const SavingsPlansSavings& value) { m_savingsHasBeenSet = true; m_savings = value; }
102 inline void SetSavings(SavingsPlansSavings&& value) { m_savingsHasBeenSet = true; m_savings = std::move(value); }
103 inline SavingsPlansUtilizationDetail& WithSavings(const SavingsPlansSavings& value) { SetSavings(value); return *this;}
104 inline SavingsPlansUtilizationDetail& WithSavings(SavingsPlansSavings&& value) { SetSavings(std::move(value)); return *this;}
106
108
112 inline const SavingsPlansAmortizedCommitment& GetAmortizedCommitment() const{ return m_amortizedCommitment; }
113 inline bool AmortizedCommitmentHasBeenSet() const { return m_amortizedCommitmentHasBeenSet; }
114 inline void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = value; }
115 inline void SetAmortizedCommitment(SavingsPlansAmortizedCommitment&& value) { m_amortizedCommitmentHasBeenSet = true; m_amortizedCommitment = std::move(value); }
119 private:
120
121 Aws::String m_savingsPlanArn;
122 bool m_savingsPlanArnHasBeenSet = false;
123
125 bool m_attributesHasBeenSet = false;
126
127 SavingsPlansUtilization m_utilization;
128 bool m_utilizationHasBeenSet = false;
129
130 SavingsPlansSavings m_savings;
131 bool m_savingsHasBeenSet = false;
132
133 SavingsPlansAmortizedCommitment m_amortizedCommitment;
134 bool m_amortizedCommitmentHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace CostExplorer
139} // namespace Aws
SavingsPlansUtilizationDetail & WithSavingsPlanArn(const Aws::String &value)
void SetAmortizedCommitment(SavingsPlansAmortizedCommitment &&value)
SavingsPlansUtilizationDetail & AddAttributes(const Aws::String &key, const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SavingsPlansUtilizationDetail & AddAttributes(const char *key, const char *value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlansUtilizationDetail & AddAttributes(Aws::String &&key, const char *value)
AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SavingsPlansUtilizationDetail & AddAttributes(const char *key, Aws::String &&value)
SavingsPlansUtilizationDetail & WithSavingsPlanArn(const char *value)
const SavingsPlansAmortizedCommitment & GetAmortizedCommitment() const
SavingsPlansUtilizationDetail & WithSavings(SavingsPlansSavings &&value)
SavingsPlansUtilizationDetail & AddAttributes(const Aws::String &key, Aws::String &&value)
SavingsPlansUtilizationDetail & WithSavingsPlanArn(Aws::String &&value)
SavingsPlansUtilizationDetail & WithAmortizedCommitment(SavingsPlansAmortizedCommitment &&value)
void SetAmortizedCommitment(const SavingsPlansAmortizedCommitment &value)
SavingsPlansUtilizationDetail & AddAttributes(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SavingsPlansUtilizationDetail & AddAttributes(Aws::String &&key, const Aws::String &value)
SavingsPlansUtilizationDetail & WithUtilization(const SavingsPlansUtilization &value)
SavingsPlansUtilizationDetail & WithUtilization(SavingsPlansUtilization &&value)
SavingsPlansUtilizationDetail & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SavingsPlansUtilizationDetail & WithSavings(const SavingsPlansSavings &value)
SavingsPlansUtilizationDetail & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SavingsPlansUtilizationDetail & WithAmortizedCommitment(const SavingsPlansAmortizedCommitment &value)
AWS_COSTEXPLORER_API SavingsPlansUtilizationDetail(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue