AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMembersRequest.h
1
6#pragma once
7#include <aws/detective/Detective_EXPORTS.h>
8#include <aws/detective/DetectiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/detective/model/Account.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Detective
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DETECTIVE_API CreateMembersRequest() = default;
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 "CreateMembers"; }
33
34 AWS_DETECTIVE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetGraphArn() const { return m_graphArn; }
42 inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; }
43 template<typename GraphArnT = Aws::String>
44 void SetGraphArn(GraphArnT&& value) { m_graphArnHasBeenSet = true; m_graphArn = std::forward<GraphArnT>(value); }
45 template<typename GraphArnT = Aws::String>
46 CreateMembersRequest& WithGraphArn(GraphArnT&& value) { SetGraphArn(std::forward<GraphArnT>(value)); return *this;}
48
50
54 inline const Aws::String& GetMessage() const { return m_message; }
55 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
56 template<typename MessageT = Aws::String>
57 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
58 template<typename MessageT = Aws::String>
59 CreateMembersRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
61
63
69 inline bool GetDisableEmailNotification() const { return m_disableEmailNotification; }
70 inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; }
71 inline void SetDisableEmailNotification(bool value) { m_disableEmailNotificationHasBeenSet = true; m_disableEmailNotification = value; }
74
76
83 inline const Aws::Vector<Account>& GetAccounts() const { return m_accounts; }
84 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
85 template<typename AccountsT = Aws::Vector<Account>>
86 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
87 template<typename AccountsT = Aws::Vector<Account>>
88 CreateMembersRequest& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
89 template<typename AccountsT = Account>
90 CreateMembersRequest& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
92 private:
93
94 Aws::String m_graphArn;
95 bool m_graphArnHasBeenSet = false;
96
97 Aws::String m_message;
98 bool m_messageHasBeenSet = false;
99
100 bool m_disableEmailNotification{false};
101 bool m_disableEmailNotificationHasBeenSet = false;
102
103 Aws::Vector<Account> m_accounts;
104 bool m_accountsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Detective
109} // 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