AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PermissionTemplateParameter.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/ram/RAM_EXPORTS.h>
10#include <aws/ram/model/PermissionTemplateParameterType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RAM {
22namespace Model {
23
32 public:
33 AWS_RAM_API PermissionTemplateParameter() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline PermissionTemplateParameterType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
99 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
100 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
101 template <typename ValuesT = Aws::Vector<Aws::String>>
102 void SetValues(ValuesT&& value) {
103 m_valuesHasBeenSet = true;
104 m_values = std::forward<ValuesT>(value);
105 }
106 template <typename ValuesT = Aws::Vector<Aws::String>>
108 SetValues(std::forward<ValuesT>(value));
109 return *this;
110 }
111 template <typename ValuesT = Aws::String>
113 m_valuesHasBeenSet = true;
114 m_values.emplace_back(std::forward<ValuesT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_name;
120
122
123 Aws::String m_description;
124
126 bool m_nameHasBeenSet = false;
127 bool m_typeHasBeenSet = false;
128 bool m_descriptionHasBeenSet = false;
129 bool m_valuesHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace RAM
134} // namespace Aws
PermissionTemplateParameter & WithDescription(DescriptionT &&value)
PermissionTemplateParameter & WithValues(ValuesT &&value)
void SetType(PermissionTemplateParameterType value)
PermissionTemplateParameter & AddValues(ValuesT &&value)
const Aws::Vector< Aws::String > & GetValues() const
PermissionTemplateParameter & WithType(PermissionTemplateParameterType value)
PermissionTemplateParameterType GetType() const
AWS_RAM_API PermissionTemplateParameter()=default
PermissionTemplateParameter & WithName(NameT &&value)
AWS_RAM_API PermissionTemplateParameter(Aws::Utils::Json::JsonView jsonValue)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RAM_API PermissionTemplateParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue