AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CostCategoryRule.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/Expression.h>
10#include <aws/ce/model/CostCategoryInheritedValueDimension.h>
11#include <aws/ce/model/CostCategoryRuleType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_COSTEXPLORER_API CostCategoryRule();
40 AWS_COSTEXPLORER_API CostCategoryRule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COSTEXPLORER_API CostCategoryRule& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const Aws::String& GetValue() const{ return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
50 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
51 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
52 inline CostCategoryRule& WithValue(const Aws::String& value) { SetValue(value); return *this;}
53 inline CostCategoryRule& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
54 inline CostCategoryRule& WithValue(const char* value) { SetValue(value); return *this;}
56
58
72 inline const Expression& GetRule() const{ return m_rule; }
73 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
74 inline void SetRule(const Expression& value) { m_ruleHasBeenSet = true; m_rule = value; }
75 inline void SetRule(Expression&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
76 inline CostCategoryRule& WithRule(const Expression& value) { SetRule(value); return *this;}
77 inline CostCategoryRule& WithRule(Expression&& value) { SetRule(std::move(value)); return *this;}
79
81
85 inline const CostCategoryInheritedValueDimension& GetInheritedValue() const{ return m_inheritedValue; }
86 inline bool InheritedValueHasBeenSet() const { return m_inheritedValueHasBeenSet; }
87 inline void SetInheritedValue(const CostCategoryInheritedValueDimension& value) { m_inheritedValueHasBeenSet = true; m_inheritedValue = value; }
88 inline void SetInheritedValue(CostCategoryInheritedValueDimension&& value) { m_inheritedValueHasBeenSet = true; m_inheritedValue = std::move(value); }
92
94
105 inline const CostCategoryRuleType& GetType() const{ return m_type; }
106 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
107 inline void SetType(const CostCategoryRuleType& value) { m_typeHasBeenSet = true; m_type = value; }
108 inline void SetType(CostCategoryRuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
109 inline CostCategoryRule& WithType(const CostCategoryRuleType& value) { SetType(value); return *this;}
110 inline CostCategoryRule& WithType(CostCategoryRuleType&& value) { SetType(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_value;
115 bool m_valueHasBeenSet = false;
116
117 Expression m_rule;
118 bool m_ruleHasBeenSet = false;
119
121 bool m_inheritedValueHasBeenSet = false;
122
124 bool m_typeHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CostExplorer
129} // namespace Aws
void SetRule(const Expression &value)
CostCategoryRule & WithRule(const Expression &value)
CostCategoryRule & WithType(CostCategoryRuleType &&value)
const CostCategoryInheritedValueDimension & GetInheritedValue() const
AWS_COSTEXPLORER_API CostCategoryRule & operator=(Aws::Utils::Json::JsonView jsonValue)
CostCategoryRule & WithInheritedValue(CostCategoryInheritedValueDimension &&value)
CostCategoryRule & WithInheritedValue(const CostCategoryInheritedValueDimension &value)
void SetType(CostCategoryRuleType &&value)
const CostCategoryRuleType & GetType() const
void SetType(const CostCategoryRuleType &value)
void SetInheritedValue(CostCategoryInheritedValueDimension &&value)
CostCategoryRule & WithValue(Aws::String &&value)
CostCategoryRule & WithType(const CostCategoryRuleType &value)
CostCategoryRule & WithRule(Expression &&value)
AWS_COSTEXPLORER_API CostCategoryRule(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInheritedValue(const CostCategoryInheritedValueDimension &value)
CostCategoryRule & WithValue(const Aws::String &value)
void SetValue(const Aws::String &value)
CostCategoryRule & WithValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue