/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ManagedGrafana
{
namespace Model
{
/**
* This structure defines which groups defined in the SAML assertion attribute
* are to be mapped to the Grafana Admin
and Editor
roles
* in the workspace. SAML authenticated users not part of Admin
or
* Editor
role groups have Viewer
permission over the
* workspace.
See Also:
AWS
* API Reference
*/
class RoleValues
{
public:
AWS_MANAGEDGRAFANA_API RoleValues();
AWS_MANAGEDGRAFANA_API RoleValues(Aws::Utils::Json::JsonView jsonValue);
AWS_MANAGEDGRAFANA_API RoleValues& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline const Aws::Vector& GetAdmin() const{ return m_admin; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline bool AdminHasBeenSet() const { return m_adminHasBeenSet; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline void SetAdmin(const Aws::Vector& value) { m_adminHasBeenSet = true; m_admin = value; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline void SetAdmin(Aws::Vector&& value) { m_adminHasBeenSet = true; m_admin = std::move(value); }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline RoleValues& WithAdmin(const Aws::Vector& value) { SetAdmin(value); return *this;}
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline RoleValues& WithAdmin(Aws::Vector&& value) { SetAdmin(std::move(value)); return *this;}
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline RoleValues& AddAdmin(const Aws::String& value) { m_adminHasBeenSet = true; m_admin.push_back(value); return *this; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline RoleValues& AddAdmin(Aws::String&& value) { m_adminHasBeenSet = true; m_admin.push_back(std::move(value)); return *this; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Admin
role to.
*/
inline RoleValues& AddAdmin(const char* value) { m_adminHasBeenSet = true; m_admin.push_back(value); return *this; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline const Aws::Vector& GetEditor() const{ return m_editor; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline bool EditorHasBeenSet() const { return m_editorHasBeenSet; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline void SetEditor(const Aws::Vector& value) { m_editorHasBeenSet = true; m_editor = value; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline void SetEditor(Aws::Vector&& value) { m_editorHasBeenSet = true; m_editor = std::move(value); }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline RoleValues& WithEditor(const Aws::Vector& value) { SetEditor(value); return *this;}
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline RoleValues& WithEditor(Aws::Vector&& value) { SetEditor(std::move(value)); return *this;}
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline RoleValues& AddEditor(const Aws::String& value) { m_editorHasBeenSet = true; m_editor.push_back(value); return *this; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline RoleValues& AddEditor(Aws::String&& value) { m_editorHasBeenSet = true; m_editor.push_back(std::move(value)); return *this; }
/**
* A list of groups from the SAML assertion attribute to grant the Grafana
* Editor
role to.
*/
inline RoleValues& AddEditor(const char* value) { m_editorHasBeenSet = true; m_editor.push_back(value); return *this; }
private:
Aws::Vector m_admin;
bool m_adminHasBeenSet = false;
Aws::Vector m_editor;
bool m_editorHasBeenSet = false;
};
} // namespace Model
} // namespace ManagedGrafana
} // namespace Aws