AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCostCategoryArn(const Aws::String& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = value; }
52 inline void SetCostCategoryArn(Aws::String&& value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn = std::move(value); }
53 inline void SetCostCategoryArn(const char* value) { m_costCategoryArnHasBeenSet = true; m_costCategoryArn.assign(value); }
54 inline CostCategoryReference& WithCostCategoryArn(const Aws::String& value) { SetCostCategoryArn(value); return *this;}
55 inline CostCategoryReference& WithCostCategoryArn(Aws::String&& value) { SetCostCategoryArn(std::move(value)); return *this;}
56 inline CostCategoryReference& WithCostCategoryArn(const char* value) { SetCostCategoryArn(value); return *this;}
58
60
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CostCategoryReference& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CostCategoryReference& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CostCategoryReference& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetEffectiveStart() const{ return m_effectiveStart; }
76 inline bool EffectiveStartHasBeenSet() const { return m_effectiveStartHasBeenSet; }
77 inline void SetEffectiveStart(const Aws::String& value) { m_effectiveStartHasBeenSet = true; m_effectiveStart = value; }
78 inline void SetEffectiveStart(Aws::String&& value) { m_effectiveStartHasBeenSet = true; m_effectiveStart = std::move(value); }
79 inline void SetEffectiveStart(const char* value) { m_effectiveStartHasBeenSet = true; m_effectiveStart.assign(value); }
80 inline CostCategoryReference& WithEffectiveStart(const Aws::String& value) { SetEffectiveStart(value); return *this;}
81 inline CostCategoryReference& WithEffectiveStart(Aws::String&& value) { SetEffectiveStart(std::move(value)); return *this;}
82 inline CostCategoryReference& WithEffectiveStart(const char* value) { SetEffectiveStart(value); return *this;}
84
86
89 inline const Aws::String& GetEffectiveEnd() const{ return m_effectiveEnd; }
90 inline bool EffectiveEndHasBeenSet() const { return m_effectiveEndHasBeenSet; }
91 inline void SetEffectiveEnd(const Aws::String& value) { m_effectiveEndHasBeenSet = true; m_effectiveEnd = value; }
92 inline void SetEffectiveEnd(Aws::String&& value) { m_effectiveEndHasBeenSet = true; m_effectiveEnd = std::move(value); }
93 inline void SetEffectiveEnd(const char* value) { m_effectiveEndHasBeenSet = true; m_effectiveEnd.assign(value); }
94 inline CostCategoryReference& WithEffectiveEnd(const Aws::String& value) { SetEffectiveEnd(value); return *this;}
95 inline CostCategoryReference& WithEffectiveEnd(Aws::String&& value) { SetEffectiveEnd(std::move(value)); return *this;}
96 inline CostCategoryReference& WithEffectiveEnd(const char* value) { SetEffectiveEnd(value); return *this;}
98
100
103 inline int GetNumberOfRules() const{ return m_numberOfRules; }
104 inline bool NumberOfRulesHasBeenSet() const { return m_numberOfRulesHasBeenSet; }
105 inline void SetNumberOfRules(int value) { m_numberOfRulesHasBeenSet = true; m_numberOfRules = value; }
106 inline CostCategoryReference& WithNumberOfRules(int value) { SetNumberOfRules(value); return *this;}
108
110
114 inline const Aws::Vector<CostCategoryProcessingStatus>& GetProcessingStatus() const{ return m_processingStatus; }
115 inline bool ProcessingStatusHasBeenSet() const { return m_processingStatusHasBeenSet; }
116 inline void SetProcessingStatus(const Aws::Vector<CostCategoryProcessingStatus>& value) { m_processingStatusHasBeenSet = true; m_processingStatus = value; }
117 inline void SetProcessingStatus(Aws::Vector<CostCategoryProcessingStatus>&& value) { m_processingStatusHasBeenSet = true; m_processingStatus = std::move(value); }
120 inline CostCategoryReference& AddProcessingStatus(const CostCategoryProcessingStatus& value) { m_processingStatusHasBeenSet = true; m_processingStatus.push_back(value); return *this; }
121 inline CostCategoryReference& AddProcessingStatus(CostCategoryProcessingStatus&& value) { m_processingStatusHasBeenSet = true; m_processingStatus.push_back(std::move(value)); return *this; }
123
125
128 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
129 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
130 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
131 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
132 inline CostCategoryReference& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
133 inline CostCategoryReference& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
134 inline CostCategoryReference& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
135 inline CostCategoryReference& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
136 inline CostCategoryReference& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
138
140
141 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
142 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
143 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
144 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
145 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
146 inline CostCategoryReference& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
147 inline CostCategoryReference& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
148 inline CostCategoryReference& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
150 private:
151
152 Aws::String m_costCategoryArn;
153 bool m_costCategoryArnHasBeenSet = false;
154
155 Aws::String m_name;
156 bool m_nameHasBeenSet = false;
157
158 Aws::String m_effectiveStart;
159 bool m_effectiveStartHasBeenSet = false;
160
161 Aws::String m_effectiveEnd;
162 bool m_effectiveEndHasBeenSet = false;
163
164 int m_numberOfRules;
165 bool m_numberOfRulesHasBeenSet = false;
166
168 bool m_processingStatusHasBeenSet = false;
169
171 bool m_valuesHasBeenSet = false;
172
173 Aws::String m_defaultValue;
174 bool m_defaultValueHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace CostExplorer
179} // namespace Aws
CostCategoryReference & WithName(const Aws::String &value)
CostCategoryReference & WithEffectiveEnd(const char *value)
AWS_COSTEXPLORER_API CostCategoryReference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
CostCategoryReference & WithCostCategoryArn(const char *value)
CostCategoryReference & AddValues(Aws::String &&value)
CostCategoryReference & AddValues(const char *value)
CostCategoryReference & WithCostCategoryArn(const Aws::String &value)
CostCategoryReference & AddProcessingStatus(const CostCategoryProcessingStatus &value)
void SetValues(const Aws::Vector< Aws::String > &value)
CostCategoryReference & WithName(Aws::String &&value)
void SetValues(Aws::Vector< Aws::String > &&value)
CostCategoryReference & WithEffectiveEnd(Aws::String &&value)
CostCategoryReference & WithName(const char *value)
CostCategoryReference & WithProcessingStatus(Aws::Vector< CostCategoryProcessingStatus > &&value)
const Aws::Vector< Aws::String > & GetValues() const
CostCategoryReference & WithNumberOfRules(int value)
CostCategoryReference & WithValues(Aws::Vector< Aws::String > &&value)
CostCategoryReference & WithDefaultValue(const char *value)
CostCategoryReference & WithCostCategoryArn(Aws::String &&value)
CostCategoryReference & WithProcessingStatus(const Aws::Vector< CostCategoryProcessingStatus > &value)
CostCategoryReference & WithEffectiveStart(const Aws::String &value)
void SetProcessingStatus(Aws::Vector< CostCategoryProcessingStatus > &&value)
CostCategoryReference & AddProcessingStatus(CostCategoryProcessingStatus &&value)
CostCategoryReference & WithEffectiveEnd(const Aws::String &value)
const Aws::Vector< CostCategoryProcessingStatus > & GetProcessingStatus() const
CostCategoryReference & WithValues(const Aws::Vector< Aws::String > &value)
CostCategoryReference & WithEffectiveStart(const char *value)
CostCategoryReference & WithEffectiveStart(Aws::String &&value)
AWS_COSTEXPLORER_API CostCategoryReference(Aws::Utils::Json::JsonView jsonValue)
void SetProcessingStatus(const Aws::Vector< CostCategoryProcessingStatus > &value)
CostCategoryReference & WithDefaultValue(Aws::String &&value)
CostCategoryReference & WithDefaultValue(const Aws::String &value)
CostCategoryReference & AddValues(const 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