AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateInstruction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/grafana/ManagedGrafana_EXPORTS.h>
9#include <aws/grafana/model/Role.h>
10#include <aws/grafana/model/UpdateAction.h>
11#include <aws/grafana/model/User.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedGrafana {
23namespace Model {
24
33 public:
34 AWS_MANAGEDGRAFANA_API UpdateInstruction() = default;
35 AWS_MANAGEDGRAFANA_API UpdateInstruction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDGRAFANA_API UpdateInstruction& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline UpdateAction GetAction() const { return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 inline void SetAction(UpdateAction value) {
46 m_actionHasBeenSet = true;
47 m_action = value;
48 }
50 SetAction(value);
51 return *this;
52 }
54
56
60 inline Role GetRole() const { return m_role; }
61 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
62 inline void SetRole(Role value) {
63 m_roleHasBeenSet = true;
64 m_role = value;
65 }
67 SetRole(value);
68 return *this;
69 }
71
73
77 inline const Aws::Vector<User>& GetUsers() const { return m_users; }
78 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
79 template <typename UsersT = Aws::Vector<User>>
80 void SetUsers(UsersT&& value) {
81 m_usersHasBeenSet = true;
82 m_users = std::forward<UsersT>(value);
83 }
84 template <typename UsersT = Aws::Vector<User>>
85 UpdateInstruction& WithUsers(UsersT&& value) {
86 SetUsers(std::forward<UsersT>(value));
87 return *this;
88 }
89 template <typename UsersT = User>
90 UpdateInstruction& AddUsers(UsersT&& value) {
91 m_usersHasBeenSet = true;
92 m_users.emplace_back(std::forward<UsersT>(value));
93 return *this;
94 }
96 private:
98
99 Role m_role{Role::NOT_SET};
100
101 Aws::Vector<User> m_users;
102 bool m_actionHasBeenSet = false;
103 bool m_roleHasBeenSet = false;
104 bool m_usersHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ManagedGrafana
109} // 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