AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GroupConfigurationItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
10#include <aws/resource-groups/model/GroupConfigurationParameter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResourceGroups {
22namespace Model {
23
33 public:
34 AWS_RESOURCEGROUPS_API GroupConfigurationItem() = default;
35 AWS_RESOURCEGROUPS_API GroupConfigurationItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::String& GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 template <typename TypeT = Aws::String>
50 void SetType(TypeT&& value) {
51 m_typeHasBeenSet = true;
52 m_type = std::forward<TypeT>(value);
53 }
54 template <typename TypeT = Aws::String>
56 SetType(std::forward<TypeT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::Vector<GroupConfigurationParameter>& GetParameters() const { return m_parameters; }
69 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
70 template <typename ParametersT = Aws::Vector<GroupConfigurationParameter>>
71 void SetParameters(ParametersT&& value) {
72 m_parametersHasBeenSet = true;
73 m_parameters = std::forward<ParametersT>(value);
74 }
75 template <typename ParametersT = Aws::Vector<GroupConfigurationParameter>>
76 GroupConfigurationItem& WithParameters(ParametersT&& value) {
77 SetParameters(std::forward<ParametersT>(value));
78 return *this;
79 }
80 template <typename ParametersT = GroupConfigurationParameter>
81 GroupConfigurationItem& AddParameters(ParametersT&& value) {
82 m_parametersHasBeenSet = true;
83 m_parameters.emplace_back(std::forward<ParametersT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_type;
89
91 bool m_typeHasBeenSet = false;
92 bool m_parametersHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace ResourceGroups
97} // namespace Aws
AWS_RESOURCEGROUPS_API GroupConfigurationItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEGROUPS_API GroupConfigurationItem(Aws::Utils::Json::JsonView jsonValue)
GroupConfigurationItem & WithType(TypeT &&value)
AWS_RESOURCEGROUPS_API GroupConfigurationItem()=default
GroupConfigurationItem & AddParameters(ParametersT &&value)
const Aws::Vector< GroupConfigurationParameter > & GetParameters() const
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
GroupConfigurationItem & WithParameters(ParametersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue