AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchSuspendUserRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Chime {
16namespace Model {
17
21 public:
22 AWS_CHIME_API BatchSuspendUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchSuspendUser"; }
29
30 AWS_CHIME_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAccountId() const { return m_accountId; }
37 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Aws::String>& GetUserIdList() const { return m_userIdList; }
55 inline bool UserIdListHasBeenSet() const { return m_userIdListHasBeenSet; }
56 template <typename UserIdListT = Aws::Vector<Aws::String>>
57 void SetUserIdList(UserIdListT&& value) {
58 m_userIdListHasBeenSet = true;
59 m_userIdList = std::forward<UserIdListT>(value);
60 }
61 template <typename UserIdListT = Aws::Vector<Aws::String>>
63 SetUserIdList(std::forward<UserIdListT>(value));
64 return *this;
65 }
66 template <typename UserIdListT = Aws::String>
67 BatchSuspendUserRequest& AddUserIdList(UserIdListT&& value) {
68 m_userIdListHasBeenSet = true;
69 m_userIdList.emplace_back(std::forward<UserIdListT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_accountId;
75
76 Aws::Vector<Aws::String> m_userIdList;
77 bool m_accountIdHasBeenSet = false;
78 bool m_userIdListHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Chime
83} // namespace Aws
AWS_CHIME_API BatchSuspendUserRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_CHIME_API Aws::String SerializePayload() const override
BatchSuspendUserRequest & AddUserIdList(UserIdListT &&value)
BatchSuspendUserRequest & WithUserIdList(UserIdListT &&value)
const Aws::Vector< Aws::String > & GetUserIdList() const
BatchSuspendUserRequest & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector