AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupDefinition.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/GroupDefinitionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostExplorer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COSTEXPLORER_API GroupDefinition();
37 AWS_COSTEXPLORER_API GroupDefinition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API GroupDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const GroupDefinitionType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const GroupDefinitionType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(GroupDefinitionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline GroupDefinition& WithType(const GroupDefinitionType& value) { SetType(value); return *this;}
51 inline GroupDefinition& WithType(GroupDefinitionType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetKey() const{ return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
61 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
63 inline GroupDefinition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
64 inline GroupDefinition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
65 inline GroupDefinition& WithKey(const char* value) { SetKey(value); return *this;}
67 private:
68
70 bool m_typeHasBeenSet = false;
71
72 Aws::String m_key;
73 bool m_keyHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CostExplorer
78} // namespace Aws
GroupDefinition & WithKey(const Aws::String &value)
const GroupDefinitionType & GetType() const
GroupDefinition & WithType(const GroupDefinitionType &value)
void SetKey(const Aws::String &value)
AWS_COSTEXPLORER_API GroupDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const GroupDefinitionType &value)
GroupDefinition & WithKey(Aws::String &&value)
GroupDefinition & WithKey(const char *value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
GroupDefinition & WithType(GroupDefinitionType &&value)
AWS_COSTEXPLORER_API GroupDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetType(GroupDefinitionType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue