AWS SDK for C++  1.9.1
AWS SDK for C++
GroupDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CostExplorer
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const GroupDefinitionType& GetType() const{ return m_type; }
46 
50  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
55  inline void SetType(const GroupDefinitionType& value) { m_typeHasBeenSet = true; m_type = value; }
56 
60  inline void SetType(GroupDefinitionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 
65  inline GroupDefinition& WithType(const GroupDefinitionType& value) { SetType(value); return *this;}
66 
70  inline GroupDefinition& WithType(GroupDefinitionType&& value) { SetType(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetKey() const{ return m_key; }
77 
81  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
82 
86  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
87 
91  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
92 
96  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
97 
101  inline GroupDefinition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
102 
106  inline GroupDefinition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
107 
111  inline GroupDefinition& WithKey(const char* value) { SetKey(value); return *this;}
112 
113  private:
114 
115  GroupDefinitionType m_type;
116  bool m_typeHasBeenSet;
117 
118  Aws::String m_key;
119  bool m_keyHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace CostExplorer
124 } // namespace Aws
Aws::CostExplorer::Model::GroupDefinition::WithKey
GroupDefinition & WithKey(Aws::String &&value)
Definition: GroupDefinition.h:106
GroupDefinitionType.h
Aws::CostExplorer::Model::GroupDefinition::GetType
const GroupDefinitionType & GetType() const
Definition: GroupDefinition.h:45
Aws::CostExplorer::Model::GroupDefinition::SetKey
void SetKey(Aws::String &&value)
Definition: GroupDefinition.h:91
Aws::CostExplorer::Model::GroupDefinition::WithKey
GroupDefinition & WithKey(const Aws::String &value)
Definition: GroupDefinition.h:101
Aws::CostExplorer::Model::GroupDefinition::GroupDefinition
GroupDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::GroupDefinition
Definition: GroupDefinition.h:34
Aws::CostExplorer::Model::GroupDefinition::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: GroupDefinition.h:50
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GroupDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CostExplorer::Model::GroupDefinition::SetKey
void SetKey(const char *value)
Definition: GroupDefinition.h:96
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GroupDefinitionType
GroupDefinitionType
Definition: GroupDefinitionType.h:17
Aws::CostExplorer::Model::GroupDefinition::WithKey
GroupDefinition & WithKey(const char *value)
Definition: GroupDefinition.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GroupDefinition::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: GroupDefinition.h:81
Aws::CostExplorer::Model::GroupDefinition::WithType
GroupDefinition & WithType(GroupDefinitionType &&value)
Definition: GroupDefinition.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GroupDefinition::SetKey
void SetKey(const Aws::String &value)
Definition: GroupDefinition.h:86
Aws::CostExplorer::Model::GroupDefinition::WithType
GroupDefinition & WithType(const GroupDefinitionType &value)
Definition: GroupDefinition.h:65
Aws::CostExplorer::Model::GroupDefinition::GroupDefinition
GroupDefinition()
Aws::CostExplorer::Model::GroupDefinition::SetType
void SetType(GroupDefinitionType &&value)
Definition: GroupDefinition.h:60
Aws::CostExplorer::Model::GroupDefinition::SetType
void SetType(const GroupDefinitionType &value)
Definition: GroupDefinition.h:55
Aws::CostExplorer::Model::GroupDefinition::operator=
GroupDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CostExplorer::Model::GroupDefinition::GetKey
const Aws::String & GetKey() const
Definition: GroupDefinition.h:76