AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateInstruction.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ManagedGrafana
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_MANAGEDGRAFANA_API UpdateInstruction() = default;
40 AWS_MANAGEDGRAFANA_API UpdateInstruction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDGRAFANA_API UpdateInstruction& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline UpdateAction GetAction() const { return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(UpdateAction value) { m_actionHasBeenSet = true; m_action = value; }
52 inline UpdateInstruction& WithAction(UpdateAction value) { SetAction(value); return *this;}
54
56
60 inline Role GetRole() const { return m_role; }
61 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
62 inline void SetRole(Role value) { m_roleHasBeenSet = true; m_role = value; }
63 inline UpdateInstruction& WithRole(Role value) { SetRole(value); return *this;}
65
67
71 inline const Aws::Vector<User>& GetUsers() const { return m_users; }
72 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
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>>
76 UpdateInstruction& WithUsers(UsersT&& value) { SetUsers(std::forward<UsersT>(value)); return *this;}
77 template<typename UsersT = User>
78 UpdateInstruction& AddUsers(UsersT&& value) { m_usersHasBeenSet = true; m_users.emplace_back(std::forward<UsersT>(value)); return *this; }
80 private:
81
83 bool m_actionHasBeenSet = false;
84
85 Role m_role{Role::NOT_SET};
86 bool m_roleHasBeenSet = false;
87
88 Aws::Vector<User> m_users;
89 bool m_usersHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ManagedGrafana
94} // namespace Aws
AWS_MANAGEDGRAFANA_API UpdateInstruction(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateInstruction & AddUsers(UsersT &&value)
UpdateInstruction & WithAction(UpdateAction value)
AWS_MANAGEDGRAFANA_API UpdateInstruction()=default
UpdateInstruction & WithUsers(UsersT &&value)
AWS_MANAGEDGRAFANA_API UpdateInstruction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< User > & GetUsers() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue