AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const UpdateAction& GetAction() const{ return m_action; }
50 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 inline void SetAction(const UpdateAction& value) { m_actionHasBeenSet = true; m_action = value; }
52 inline void SetAction(UpdateAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
53 inline UpdateInstruction& WithAction(const UpdateAction& value) { SetAction(value); return *this;}
54 inline UpdateInstruction& WithAction(UpdateAction&& value) { SetAction(std::move(value)); return *this;}
56
58
62 inline const Role& GetRole() const{ return m_role; }
63 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
64 inline void SetRole(const Role& value) { m_roleHasBeenSet = true; m_role = value; }
65 inline void SetRole(Role&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
66 inline UpdateInstruction& WithRole(const Role& value) { SetRole(value); return *this;}
67 inline UpdateInstruction& WithRole(Role&& value) { SetRole(std::move(value)); return *this;}
69
71
75 inline const Aws::Vector<User>& GetUsers() const{ return m_users; }
76 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
77 inline void SetUsers(const Aws::Vector<User>& value) { m_usersHasBeenSet = true; m_users = value; }
78 inline void SetUsers(Aws::Vector<User>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
79 inline UpdateInstruction& WithUsers(const Aws::Vector<User>& value) { SetUsers(value); return *this;}
80 inline UpdateInstruction& WithUsers(Aws::Vector<User>&& value) { SetUsers(std::move(value)); return *this;}
81 inline UpdateInstruction& AddUsers(const User& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
82 inline UpdateInstruction& AddUsers(User&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; }
84 private:
85
86 UpdateAction m_action;
87 bool m_actionHasBeenSet = false;
88
89 Role m_role;
90 bool m_roleHasBeenSet = false;
91
92 Aws::Vector<User> m_users;
93 bool m_usersHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ManagedGrafana
98} // namespace Aws
UpdateInstruction & WithAction(UpdateAction &&value)
UpdateInstruction & WithAction(const UpdateAction &value)
void SetAction(const UpdateAction &value)
UpdateInstruction & WithRole(const Role &value)
AWS_MANAGEDGRAFANA_API UpdateInstruction(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateInstruction & WithUsers(const Aws::Vector< User > &value)
UpdateInstruction & WithUsers(Aws::Vector< User > &&value)
UpdateInstruction & AddUsers(const User &value)
void SetUsers(Aws::Vector< User > &&value)
UpdateInstruction & AddUsers(User &&value)
void SetUsers(const Aws::Vector< User > &value)
AWS_MANAGEDGRAFANA_API UpdateInstruction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< User > & GetUsers() const
UpdateInstruction & WithRole(Role &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue