AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateUserRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/UserAlias.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QBusiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QBUSINESS_API UpdateUserRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
44 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
45 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
46 inline UpdateUserRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
47 inline UpdateUserRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
48 inline UpdateUserRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
50
52
55 inline const Aws::String& GetUserId() const{ return m_userId; }
56 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
57 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
58 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
59 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
60 inline UpdateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
61 inline UpdateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
62 inline UpdateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
64
66
69 inline const Aws::Vector<UserAlias>& GetUserAliasesToUpdate() const{ return m_userAliasesToUpdate; }
70 inline bool UserAliasesToUpdateHasBeenSet() const { return m_userAliasesToUpdateHasBeenSet; }
71 inline void SetUserAliasesToUpdate(const Aws::Vector<UserAlias>& value) { m_userAliasesToUpdateHasBeenSet = true; m_userAliasesToUpdate = value; }
72 inline void SetUserAliasesToUpdate(Aws::Vector<UserAlias>&& value) { m_userAliasesToUpdateHasBeenSet = true; m_userAliasesToUpdate = std::move(value); }
75 inline UpdateUserRequest& AddUserAliasesToUpdate(const UserAlias& value) { m_userAliasesToUpdateHasBeenSet = true; m_userAliasesToUpdate.push_back(value); return *this; }
76 inline UpdateUserRequest& AddUserAliasesToUpdate(UserAlias&& value) { m_userAliasesToUpdateHasBeenSet = true; m_userAliasesToUpdate.push_back(std::move(value)); return *this; }
78
80
83 inline const Aws::Vector<UserAlias>& GetUserAliasesToDelete() const{ return m_userAliasesToDelete; }
84 inline bool UserAliasesToDeleteHasBeenSet() const { return m_userAliasesToDeleteHasBeenSet; }
85 inline void SetUserAliasesToDelete(const Aws::Vector<UserAlias>& value) { m_userAliasesToDeleteHasBeenSet = true; m_userAliasesToDelete = value; }
86 inline void SetUserAliasesToDelete(Aws::Vector<UserAlias>&& value) { m_userAliasesToDeleteHasBeenSet = true; m_userAliasesToDelete = std::move(value); }
89 inline UpdateUserRequest& AddUserAliasesToDelete(const UserAlias& value) { m_userAliasesToDeleteHasBeenSet = true; m_userAliasesToDelete.push_back(value); return *this; }
90 inline UpdateUserRequest& AddUserAliasesToDelete(UserAlias&& value) { m_userAliasesToDeleteHasBeenSet = true; m_userAliasesToDelete.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_applicationId;
95 bool m_applicationIdHasBeenSet = false;
96
97 Aws::String m_userId;
98 bool m_userIdHasBeenSet = false;
99
100 Aws::Vector<UserAlias> m_userAliasesToUpdate;
101 bool m_userAliasesToUpdateHasBeenSet = false;
102
103 Aws::Vector<UserAlias> m_userAliasesToDelete;
104 bool m_userAliasesToDeleteHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace QBusiness
109} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
UpdateUserRequest & WithUserId(const char *value)
const Aws::Vector< UserAlias > & GetUserAliasesToUpdate() const
UpdateUserRequest & WithUserAliasesToUpdate(Aws::Vector< UserAlias > &&value)
const Aws::String & GetApplicationId() const
UpdateUserRequest & WithUserId(const Aws::String &value)
UpdateUserRequest & AddUserAliasesToDelete(UserAlias &&value)
void SetUserAliasesToUpdate(Aws::Vector< UserAlias > &&value)
UpdateUserRequest & WithUserAliasesToUpdate(const Aws::Vector< UserAlias > &value)
UpdateUserRequest & WithApplicationId(const Aws::String &value)
UpdateUserRequest & WithUserAliasesToDelete(Aws::Vector< UserAlias > &&value)
UpdateUserRequest & AddUserAliasesToUpdate(const UserAlias &value)
void SetUserAliasesToDelete(const Aws::Vector< UserAlias > &value)
UpdateUserRequest & AddUserAliasesToDelete(const UserAlias &value)
const Aws::Vector< UserAlias > & GetUserAliasesToDelete() const
void SetUserAliasesToUpdate(const Aws::Vector< UserAlias > &value)
void SetApplicationId(const Aws::String &value)
UpdateUserRequest & WithApplicationId(const char *value)
UpdateUserRequest & AddUserAliasesToUpdate(UserAlias &&value)
virtual const char * GetServiceRequestName() const override
UpdateUserRequest & WithApplicationId(Aws::String &&value)
UpdateUserRequest & WithUserAliasesToDelete(const Aws::Vector< UserAlias > &value)
void SetUserAliasesToDelete(Aws::Vector< UserAlias > &&value)
void SetUserId(const Aws::String &value)
UpdateUserRequest & WithUserId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector