AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
RoleValues.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/grafana/ManagedGrafana_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ManagedGrafana {
21namespace Model {
22
33 public:
34 AWS_MANAGEDGRAFANA_API RoleValues() = default;
35 AWS_MANAGEDGRAFANA_API RoleValues(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDGRAFANA_API RoleValues& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<Aws::String>& GetAdmin() const { return m_admin; }
45 inline bool AdminHasBeenSet() const { return m_adminHasBeenSet; }
46 template <typename AdminT = Aws::Vector<Aws::String>>
47 void SetAdmin(AdminT&& value) {
48 m_adminHasBeenSet = true;
49 m_admin = std::forward<AdminT>(value);
50 }
51 template <typename AdminT = Aws::Vector<Aws::String>>
52 RoleValues& WithAdmin(AdminT&& value) {
53 SetAdmin(std::forward<AdminT>(value));
54 return *this;
55 }
56 template <typename AdminT = Aws::String>
57 RoleValues& AddAdmin(AdminT&& value) {
58 m_adminHasBeenSet = true;
59 m_admin.emplace_back(std::forward<AdminT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<Aws::String>& GetEditor() const { return m_editor; }
70 inline bool EditorHasBeenSet() const { return m_editorHasBeenSet; }
71 template <typename EditorT = Aws::Vector<Aws::String>>
72 void SetEditor(EditorT&& value) {
73 m_editorHasBeenSet = true;
74 m_editor = std::forward<EditorT>(value);
75 }
76 template <typename EditorT = Aws::Vector<Aws::String>>
77 RoleValues& WithEditor(EditorT&& value) {
78 SetEditor(std::forward<EditorT>(value));
79 return *this;
80 }
81 template <typename EditorT = Aws::String>
82 RoleValues& AddEditor(EditorT&& value) {
83 m_editorHasBeenSet = true;
84 m_editor.emplace_back(std::forward<EditorT>(value));
85 return *this;
86 }
88 private:
90 bool m_adminHasBeenSet = false;
91
93 bool m_editorHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace ManagedGrafana
98} // namespace Aws
AWS_MANAGEDGRAFANA_API RoleValues()=default
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAdmin() const
Definition RoleValues.h:44
RoleValues & WithEditor(EditorT &&value)
Definition RoleValues.h:77
AWS_MANAGEDGRAFANA_API RoleValues & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEditor() const
Definition RoleValues.h:69
RoleValues & WithAdmin(AdminT &&value)
Definition RoleValues.h:52
AWS_MANAGEDGRAFANA_API RoleValues(Aws::Utils::Json::JsonView jsonValue)
RoleValues & AddAdmin(AdminT &&value)
Definition RoleValues.h:57
RoleValues & AddEditor(EditorT &&value)
Definition RoleValues.h:82
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue