AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 GroupDefinitionType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(GroupDefinitionType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline GroupDefinition& WithType(GroupDefinitionType value) { SetType(value); return *this;}
51
53
56 inline const Aws::String& GetKey() const { return m_key; }
57 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 template<typename KeyT = Aws::String>
59 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
60 template<typename KeyT = Aws::String>
61 GroupDefinition& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
63 private:
64
66 bool m_typeHasBeenSet = false;
67
68 Aws::String m_key;
69 bool m_keyHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace CostExplorer
74} // namespace Aws
AWS_COSTEXPLORER_API GroupDefinition()=default
GroupDefinition & WithKey(KeyT &&value)
void SetType(GroupDefinitionType value)
AWS_COSTEXPLORER_API GroupDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
GroupDefinition & WithType(GroupDefinitionType value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTEXPLORER_API GroupDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue