AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchAddRoleRequest.h
1
6#pragma once
7#include <aws/repostspace/Repostspace_EXPORTS.h>
8#include <aws/repostspace/RepostspaceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/repostspace/model/Role.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace repostspace
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REPOSTSPACE_API BatchAddRoleRequest();
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 "BatchAddRole"; }
33
34 AWS_REPOSTSPACE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetAccessorIds() const{ return m_accessorIds; }
42 inline bool AccessorIdsHasBeenSet() const { return m_accessorIdsHasBeenSet; }
43 inline void SetAccessorIds(const Aws::Vector<Aws::String>& value) { m_accessorIdsHasBeenSet = true; m_accessorIds = value; }
44 inline void SetAccessorIds(Aws::Vector<Aws::String>&& value) { m_accessorIdsHasBeenSet = true; m_accessorIds = std::move(value); }
45 inline BatchAddRoleRequest& WithAccessorIds(const Aws::Vector<Aws::String>& value) { SetAccessorIds(value); return *this;}
46 inline BatchAddRoleRequest& WithAccessorIds(Aws::Vector<Aws::String>&& value) { SetAccessorIds(std::move(value)); return *this;}
47 inline BatchAddRoleRequest& AddAccessorIds(const Aws::String& value) { m_accessorIdsHasBeenSet = true; m_accessorIds.push_back(value); return *this; }
48 inline BatchAddRoleRequest& AddAccessorIds(Aws::String&& value) { m_accessorIdsHasBeenSet = true; m_accessorIds.push_back(std::move(value)); return *this; }
49 inline BatchAddRoleRequest& AddAccessorIds(const char* value) { m_accessorIdsHasBeenSet = true; m_accessorIds.push_back(value); return *this; }
51
53
56 inline const Role& GetRole() const{ return m_role; }
57 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
58 inline void SetRole(const Role& value) { m_roleHasBeenSet = true; m_role = value; }
59 inline void SetRole(Role&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
60 inline BatchAddRoleRequest& WithRole(const Role& value) { SetRole(value); return *this;}
61 inline BatchAddRoleRequest& WithRole(Role&& value) { SetRole(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetSpaceId() const{ return m_spaceId; }
69 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
70 inline void SetSpaceId(const Aws::String& value) { m_spaceIdHasBeenSet = true; m_spaceId = value; }
71 inline void SetSpaceId(Aws::String&& value) { m_spaceIdHasBeenSet = true; m_spaceId = std::move(value); }
72 inline void SetSpaceId(const char* value) { m_spaceIdHasBeenSet = true; m_spaceId.assign(value); }
73 inline BatchAddRoleRequest& WithSpaceId(const Aws::String& value) { SetSpaceId(value); return *this;}
74 inline BatchAddRoleRequest& WithSpaceId(Aws::String&& value) { SetSpaceId(std::move(value)); return *this;}
75 inline BatchAddRoleRequest& WithSpaceId(const char* value) { SetSpaceId(value); return *this;}
77 private:
78
79 Aws::Vector<Aws::String> m_accessorIds;
80 bool m_accessorIdsHasBeenSet = false;
81
82 Role m_role;
83 bool m_roleHasBeenSet = false;
84
85 Aws::String m_spaceId;
86 bool m_spaceIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace repostspace
91} // namespace Aws
AWS_REPOSTSPACE_API Aws::String SerializePayload() const override
void SetAccessorIds(Aws::Vector< Aws::String > &&value)
BatchAddRoleRequest & WithSpaceId(const Aws::String &value)
BatchAddRoleRequest & WithAccessorIds(Aws::Vector< Aws::String > &&value)
BatchAddRoleRequest & WithSpaceId(Aws::String &&value)
BatchAddRoleRequest & AddAccessorIds(const char *value)
BatchAddRoleRequest & WithRole(Role &&value)
BatchAddRoleRequest & WithRole(const Role &value)
BatchAddRoleRequest & WithSpaceId(const char *value)
BatchAddRoleRequest & AddAccessorIds(const Aws::String &value)
void SetAccessorIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
BatchAddRoleRequest & AddAccessorIds(Aws::String &&value)
BatchAddRoleRequest & WithAccessorIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAccessorIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector