AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostExplorer {
21namespace Model {
22
30 public:
31 AWS_COSTEXPLORER_API GroupDefinition() = default;
32 AWS_COSTEXPLORER_API GroupDefinition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTEXPLORER_API GroupDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline GroupDefinitionType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(GroupDefinitionType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
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) {
60 m_keyHasBeenSet = true;
61 m_key = std::forward<KeyT>(value);
62 }
63 template <typename KeyT = Aws::String>
64 GroupDefinition& WithKey(KeyT&& value) {
65 SetKey(std::forward<KeyT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_key;
73 bool m_typeHasBeenSet = false;
74 bool m_keyHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CostExplorer
79} // 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