AWS SDK for C++  1.8.95
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:
38  GroupDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
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
GroupDefinition & WithType(const GroupDefinitionType &value)
void SetType(const GroupDefinitionType &value)
GroupDefinition & WithKey(const char *value)
GroupDefinition & WithKey(Aws::String &&value)
GroupDefinition & WithType(GroupDefinitionType &&value)
#define AWS_COSTEXPLORER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetType(GroupDefinitionType &&value)
const GroupDefinitionType & GetType() const
GroupDefinition & WithKey(const Aws::String &value)
void SetKey(const Aws::String &value)
const Aws::String & GetKey() const