/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the instructions for one Grafana role permission update in a UpdatePermissions
* operation.See Also:
AWS
* API Reference
Specifies whether this update is to add or revoke role permissions.
*/ inline const UpdateAction& GetAction() const{ return m_action; } /** *Specifies whether this update is to add or revoke role permissions.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *Specifies whether this update is to add or revoke role permissions.
*/ inline void SetAction(const UpdateAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *Specifies whether this update is to add or revoke role permissions.
*/ inline void SetAction(UpdateAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *Specifies whether this update is to add or revoke role permissions.
*/ inline UpdateInstruction& WithAction(const UpdateAction& value) { SetAction(value); return *this;} /** *Specifies whether this update is to add or revoke role permissions.
*/ inline UpdateInstruction& WithAction(UpdateAction&& value) { SetAction(std::move(value)); return *this;} /** *The role to add or revoke for the user or the group specified in
* users
.
The role to add or revoke for the user or the group specified in
* users
.
The role to add or revoke for the user or the group specified in
* users
.
The role to add or revoke for the user or the group specified in
* users
.
The role to add or revoke for the user or the group specified in
* users
.
The role to add or revoke for the user or the group specified in
* users
.
A structure that specifies the user or group to add or revoke the role * for.
*/ inline const Aws::VectorA structure that specifies the user or group to add or revoke the role * for.
*/ inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; } /** *A structure that specifies the user or group to add or revoke the role * for.
*/ inline void SetUsers(const Aws::VectorA structure that specifies the user or group to add or revoke the role * for.
*/ inline void SetUsers(Aws::VectorA structure that specifies the user or group to add or revoke the role * for.
*/ inline UpdateInstruction& WithUsers(const Aws::VectorA structure that specifies the user or group to add or revoke the role * for.
*/ inline UpdateInstruction& WithUsers(Aws::VectorA structure that specifies the user or group to add or revoke the role * for.
*/ inline UpdateInstruction& AddUsers(const User& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; } /** *A structure that specifies the user or group to add or revoke the role * for.
*/ inline UpdateInstruction& AddUsers(User&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; } private: UpdateAction m_action; bool m_actionHasBeenSet = false; Role m_role; bool m_roleHasBeenSet = false; Aws::Vector