7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/model/UpdateAction.h>
9#include <aws/grafana/model/Role.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/grafana/model/User.h>
24namespace ManagedGrafana
62 inline void SetRole(
Role value) { m_roleHasBeenSet =
true; m_role = value; }
73 template<
typename UsersT = Aws::Vector<User>>
74 void SetUsers(UsersT&& value) { m_usersHasBeenSet =
true; m_users = std::forward<UsersT>(value); }
75 template<
typename UsersT = Aws::Vector<User>>
77 template<
typename UsersT = User>
78 UpdateInstruction&
AddUsers(UsersT&& value) { m_usersHasBeenSet =
true; m_users.emplace_back(std::forward<UsersT>(value));
return *
this; }
83 bool m_actionHasBeenSet =
false;
86 bool m_roleHasBeenSet =
false;
89 bool m_usersHasBeenSet =
false;
UpdateInstruction & WithRole(Role value)
bool ActionHasBeenSet() const
AWS_MANAGEDGRAFANA_API UpdateInstruction(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateAction GetAction() const
bool UsersHasBeenSet() const
void SetAction(UpdateAction value)
UpdateInstruction & AddUsers(UsersT &&value)
UpdateInstruction & WithAction(UpdateAction value)
AWS_MANAGEDGRAFANA_API UpdateInstruction()=default
UpdateInstruction & WithUsers(UsersT &&value)
bool RoleHasBeenSet() const
AWS_MANAGEDGRAFANA_API UpdateInstruction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsers(UsersT &&value)
const Aws::Vector< User > & GetUsers() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue