AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CostCategoryReference.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/AWSVector.h>
10#include <aws/ce/model/CostCategoryProcessingStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_COSTEXPLORER_API CostCategoryReference() = default;
40 AWS_COSTEXPLORER_API CostCategoryReference(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetCostCategoryArn() const { return m_costCategoryArn; }
50 inline bool CostCategoryArnHasBeenSet() const { return m_costCategoryArnHasBeenSet; }
51 template<typename CostCategoryArnT = Aws::String>
52 void SetCostCategoryArn(CostCategoryArnT&& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = std::forward<CostCategoryArnT>(value); }
53 template<typename CostCategoryArnT = Aws::String>
54 CostCategoryReference& WithCostCategoryArn(CostCategoryArnT&& value) { SetCostCategoryArn(std::forward<CostCategoryArnT>(value)); return *this;}
56
58
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CostCategoryReference& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetEffectiveStart() const { return m_effectiveStart; }
72 inline bool EffectiveStartHasBeenSet() const { return m_effectiveStartHasBeenSet; }
73 template<typename EffectiveStartT = Aws::String>
74 void SetEffectiveStart(EffectiveStartT&& value) { m_effectiveStartHasBeenSet = true; m_effectiveStart = std::forward<EffectiveStartT>(value); }
75 template<typename EffectiveStartT = Aws::String>
76 CostCategoryReference& WithEffectiveStart(EffectiveStartT&& value) { SetEffectiveStart(std::forward<EffectiveStartT>(value)); return *this;}
78
80
83 inline const Aws::String& GetEffectiveEnd() const { return m_effectiveEnd; }
84 inline bool EffectiveEndHasBeenSet() const { return m_effectiveEndHasBeenSet; }
85 template<typename EffectiveEndT = Aws::String>
86 void SetEffectiveEnd(EffectiveEndT&& value) { m_effectiveEndHasBeenSet = true; m_effectiveEnd = std::forward<EffectiveEndT>(value); }
87 template<typename EffectiveEndT = Aws::String>
88 CostCategoryReference& WithEffectiveEnd(EffectiveEndT&& value) { SetEffectiveEnd(std::forward<EffectiveEndT>(value)); return *this;}
90
92
95 inline int GetNumberOfRules() const { return m_numberOfRules; }
96 inline bool NumberOfRulesHasBeenSet() const { return m_numberOfRulesHasBeenSet; }
97 inline void SetNumberOfRules(int value) { m_numberOfRulesHasBeenSet = true; m_numberOfRules = value; }
98 inline CostCategoryReference& WithNumberOfRules(int value) { SetNumberOfRules(value); return *this;}
100
102
106 inline const Aws::Vector<CostCategoryProcessingStatus>& GetProcessingStatus() const { return m_processingStatus; }
107 inline bool ProcessingStatusHasBeenSet() const { return m_processingStatusHasBeenSet; }
108 template<typename ProcessingStatusT = Aws::Vector<CostCategoryProcessingStatus>>
109 void SetProcessingStatus(ProcessingStatusT&& value) { m_processingStatusHasBeenSet = true; m_processingStatus = std::forward<ProcessingStatusT>(value); }
110 template<typename ProcessingStatusT = Aws::Vector<CostCategoryProcessingStatus>>
111 CostCategoryReference& WithProcessingStatus(ProcessingStatusT&& value) { SetProcessingStatus(std::forward<ProcessingStatusT>(value)); return *this;}
112 template<typename ProcessingStatusT = CostCategoryProcessingStatus>
113 CostCategoryReference& AddProcessingStatus(ProcessingStatusT&& value) { m_processingStatusHasBeenSet = true; m_processingStatus.emplace_back(std::forward<ProcessingStatusT>(value)); return *this; }
115
117
120 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
121 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
122 template<typename ValuesT = Aws::Vector<Aws::String>>
123 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
124 template<typename ValuesT = Aws::Vector<Aws::String>>
125 CostCategoryReference& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
126 template<typename ValuesT = Aws::String>
127 CostCategoryReference& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
129
131
132 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
133 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
134 template<typename DefaultValueT = Aws::String>
135 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
136 template<typename DefaultValueT = Aws::String>
137 CostCategoryReference& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
139 private:
140
141 Aws::String m_costCategoryArn;
142 bool m_costCategoryArnHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_effectiveStart;
148 bool m_effectiveStartHasBeenSet = false;
149
150 Aws::String m_effectiveEnd;
151 bool m_effectiveEndHasBeenSet = false;
152
153 int m_numberOfRules{0};
154 bool m_numberOfRulesHasBeenSet = false;
155
157 bool m_processingStatusHasBeenSet = false;
158
160 bool m_valuesHasBeenSet = false;
161
162 Aws::String m_defaultValue;
163 bool m_defaultValueHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace CostExplorer
168} // namespace Aws
AWS_COSTEXPLORER_API CostCategoryReference & operator=(Aws::Utils::Json::JsonView jsonValue)
CostCategoryReference & WithValues(ValuesT &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CostCategoryReference & WithName(NameT &&value)
CostCategoryReference & AddProcessingStatus(ProcessingStatusT &&value)
CostCategoryReference & WithEffectiveStart(EffectiveStartT &&value)
CostCategoryReference & WithProcessingStatus(ProcessingStatusT &&value)
CostCategoryReference & WithDefaultValue(DefaultValueT &&value)
const Aws::Vector< Aws::String > & GetValues() const
CostCategoryReference & WithNumberOfRules(int value)
AWS_COSTEXPLORER_API CostCategoryReference()=default
CostCategoryReference & WithCostCategoryArn(CostCategoryArnT &&value)
const Aws::Vector< CostCategoryProcessingStatus > & GetProcessingStatus() const
AWS_COSTEXPLORER_API CostCategoryReference(Aws::Utils::Json::JsonView jsonValue)
CostCategoryReference & WithEffectiveEnd(EffectiveEndT &&value)
CostCategoryReference & AddValues(ValuesT &&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