AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAdmin(const Aws::Vector<Aws::String>& value) { m_adminHasBeenSet = true; m_admin = value; }
53 inline void SetAdmin(Aws::Vector<Aws::String>&& value) { m_adminHasBeenSet = true; m_admin = std::move(value); }
54 inline RoleValues& WithAdmin(const Aws::Vector<Aws::String>& value) { SetAdmin(value); return *this;}
55 inline RoleValues& WithAdmin(Aws::Vector<Aws::String>&& value) { SetAdmin(std::move(value)); return *this;}
56 inline RoleValues& AddAdmin(const Aws::String& value) { m_adminHasBeenSet = true; m_admin.push_back(value); return *this; }
57 inline RoleValues& AddAdmin(Aws::String&& value) { m_adminHasBeenSet = true; m_admin.push_back(std::move(value)); return *this; }
58 inline RoleValues& AddAdmin(const char* value) { m_adminHasBeenSet = true; m_admin.push_back(value); return *this; }
60
62
66 inline const Aws::Vector<Aws::String>& GetEditor() const{ return m_editor; }
67 inline bool EditorHasBeenSet() const { return m_editorHasBeenSet; }
68 inline void SetEditor(const Aws::Vector<Aws::String>& value) { m_editorHasBeenSet = true; m_editor = value; }
69 inline void SetEditor(Aws::Vector<Aws::String>&& value) { m_editorHasBeenSet = true; m_editor = std::move(value); }
70 inline RoleValues& WithEditor(const Aws::Vector<Aws::String>& value) { SetEditor(value); return *this;}
71 inline RoleValues& WithEditor(Aws::Vector<Aws::String>&& value) { SetEditor(std::move(value)); return *this;}
72 inline RoleValues& AddEditor(const Aws::String& value) { m_editorHasBeenSet = true; m_editor.push_back(value); return *this; }
73 inline RoleValues& AddEditor(Aws::String&& value) { m_editorHasBeenSet = true; m_editor.push_back(std::move(value)); return *this; }
74 inline RoleValues& AddEditor(const char* value) { m_editorHasBeenSet = true; m_editor.push_back(value); return *this; }
76 private:
77
79 bool m_adminHasBeenSet = false;
80
82 bool m_editorHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ManagedGrafana
87} // namespace Aws
void SetEditor(Aws::Vector< Aws::String > &&value)
Definition RoleValues.h:69
RoleValues & AddEditor(const Aws::String &value)
Definition RoleValues.h:72
AWS_MANAGEDGRAFANA_API RoleValues()
RoleValues & AddEditor(Aws::String &&value)
Definition RoleValues.h:73
RoleValues & AddAdmin(const Aws::String &value)
Definition RoleValues.h:56
void SetAdmin(const Aws::Vector< Aws::String > &value)
Definition RoleValues.h:52
RoleValues & AddEditor(const char *value)
Definition RoleValues.h:74
RoleValues & WithAdmin(const Aws::Vector< Aws::String > &value)
Definition RoleValues.h:54
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
RoleValues & WithAdmin(Aws::Vector< Aws::String > &&value)
Definition RoleValues.h:55
const Aws::Vector< Aws::String > & GetAdmin() const
Definition RoleValues.h:50
void SetEditor(const Aws::Vector< Aws::String > &value)
Definition RoleValues.h:68
RoleValues & AddAdmin(const char *value)
Definition RoleValues.h:58
AWS_MANAGEDGRAFANA_API RoleValues & operator=(Aws::Utils::Json::JsonView jsonValue)
RoleValues & AddAdmin(Aws::String &&value)
Definition RoleValues.h:57
const Aws::Vector< Aws::String > & GetEditor() const
Definition RoleValues.h:66
RoleValues & WithEditor(Aws::Vector< Aws::String > &&value)
Definition RoleValues.h:71
RoleValues & WithEditor(const Aws::Vector< Aws::String > &value)
Definition RoleValues.h:70
void SetAdmin(Aws::Vector< Aws::String > &&value)
Definition RoleValues.h:53
AWS_MANAGEDGRAFANA_API RoleValues(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