AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateMembersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/detective/DetectiveRequest.h>
10#include <aws/detective/Detective_EXPORTS.h>
11#include <aws/detective/model/Account.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Detective {
17namespace Model {
18
22 public:
23 AWS_DETECTIVE_API CreateMembersRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateMembers"; }
30
31 AWS_DETECTIVE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetGraphArn() const { return m_graphArn; }
38 inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; }
39 template <typename GraphArnT = Aws::String>
40 void SetGraphArn(GraphArnT&& value) {
41 m_graphArnHasBeenSet = true;
42 m_graphArn = std::forward<GraphArnT>(value);
43 }
44 template <typename GraphArnT = Aws::String>
45 CreateMembersRequest& WithGraphArn(GraphArnT&& value) {
46 SetGraphArn(std::forward<GraphArnT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetMessage() const { return m_message; }
57 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
58 template <typename MessageT = Aws::String>
59 void SetMessage(MessageT&& value) {
60 m_messageHasBeenSet = true;
61 m_message = std::forward<MessageT>(value);
62 }
63 template <typename MessageT = Aws::String>
64 CreateMembersRequest& WithMessage(MessageT&& value) {
65 SetMessage(std::forward<MessageT>(value));
66 return *this;
67 }
69
71
77 inline bool GetDisableEmailNotification() const { return m_disableEmailNotification; }
78 inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; }
79 inline void SetDisableEmailNotification(bool value) {
80 m_disableEmailNotificationHasBeenSet = true;
81 m_disableEmailNotification = value;
82 }
85 return *this;
86 }
88
90
97 inline const Aws::Vector<Account>& GetAccounts() const { return m_accounts; }
98 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
99 template <typename AccountsT = Aws::Vector<Account>>
100 void SetAccounts(AccountsT&& value) {
101 m_accountsHasBeenSet = true;
102 m_accounts = std::forward<AccountsT>(value);
103 }
104 template <typename AccountsT = Aws::Vector<Account>>
105 CreateMembersRequest& WithAccounts(AccountsT&& value) {
106 SetAccounts(std::forward<AccountsT>(value));
107 return *this;
108 }
109 template <typename AccountsT = Account>
110 CreateMembersRequest& AddAccounts(AccountsT&& value) {
111 m_accountsHasBeenSet = true;
112 m_accounts.emplace_back(std::forward<AccountsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_graphArn;
118
119 Aws::String m_message;
120
121 bool m_disableEmailNotification{false};
122
123 Aws::Vector<Account> m_accounts;
124 bool m_graphArnHasBeenSet = false;
125 bool m_messageHasBeenSet = false;
126 bool m_disableEmailNotificationHasBeenSet = false;
127 bool m_accountsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Detective
132} // namespace Aws
AWS_DETECTIVE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateMembersRequest & WithMessage(MessageT &&value)
CreateMembersRequest & AddAccounts(AccountsT &&value)
CreateMembersRequest & WithGraphArn(GraphArnT &&value)
CreateMembersRequest & WithDisableEmailNotification(bool value)
const Aws::Vector< Account > & GetAccounts() const
AWS_DETECTIVE_API CreateMembersRequest()=default
CreateMembersRequest & WithAccounts(AccountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector