AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RoleValues.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 ManagedGrafana
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_MANAGEDGRAFANA_API RoleValues() = default;
40 AWS_MANAGEDGRAFANA_API RoleValues(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDGRAFANA_API RoleValues& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetAdmin() const { return m_admin; }
51 inline bool AdminHasBeenSet() const { return m_adminHasBeenSet; }
52 template<typename AdminT = Aws::Vector<Aws::String>>
53 void SetAdmin(AdminT&& value) { m_adminHasBeenSet = true; m_admin = std::forward<AdminT>(value); }
54 template<typename AdminT = Aws::Vector<Aws::String>>
55 RoleValues& WithAdmin(AdminT&& value) { SetAdmin(std::forward<AdminT>(value)); return *this;}
56 template<typename AdminT = Aws::String>
57 RoleValues& AddAdmin(AdminT&& value) { m_adminHasBeenSet = true; m_admin.emplace_back(std::forward<AdminT>(value)); return *this; }
59
61
65 inline const Aws::Vector<Aws::String>& GetEditor() const { return m_editor; }
66 inline bool EditorHasBeenSet() const { return m_editorHasBeenSet; }
67 template<typename EditorT = Aws::Vector<Aws::String>>
68 void SetEditor(EditorT&& value) { m_editorHasBeenSet = true; m_editor = std::forward<EditorT>(value); }
69 template<typename EditorT = Aws::Vector<Aws::String>>
70 RoleValues& WithEditor(EditorT&& value) { SetEditor(std::forward<EditorT>(value)); return *this;}
71 template<typename EditorT = Aws::String>
72 RoleValues& AddEditor(EditorT&& value) { m_editorHasBeenSet = true; m_editor.emplace_back(std::forward<EditorT>(value)); return *this; }
74 private:
75
77 bool m_adminHasBeenSet = false;
78
80 bool m_editorHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ManagedGrafana
85} // 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:50
RoleValues & WithEditor(EditorT &&value)
Definition RoleValues.h:70
AWS_MANAGEDGRAFANA_API RoleValues & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEditor() const
Definition RoleValues.h:65
RoleValues & WithAdmin(AdminT &&value)
Definition RoleValues.h:55
AWS_MANAGEDGRAFANA_API RoleValues(Aws::Utils::Json::JsonView jsonValue)
RoleValues & AddAdmin(AdminT &&value)
Definition RoleValues.h:57
RoleValues & AddEditor(EditorT &&value)
Definition RoleValues.h:72
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue