AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGraphArn(const Aws::String& value) { m_graphArnHasBeenSet = true; m_graphArn = value; }
44 inline void SetGraphArn(Aws::String&& value) { m_graphArnHasBeenSet = true; m_graphArn = std::move(value); }
45 inline void SetGraphArn(const char* value) { m_graphArnHasBeenSet = true; m_graphArn.assign(value); }
46 inline CreateMembersRequest& WithGraphArn(const Aws::String& value) { SetGraphArn(value); return *this;}
47 inline CreateMembersRequest& WithGraphArn(Aws::String&& value) { SetGraphArn(std::move(value)); return *this;}
48 inline CreateMembersRequest& WithGraphArn(const char* value) { SetGraphArn(value); return *this;}
50
52
56 inline const Aws::String& GetMessage() const{ return m_message; }
57 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
58 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
59 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
60 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
61 inline CreateMembersRequest& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
62 inline CreateMembersRequest& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
63 inline CreateMembersRequest& WithMessage(const char* value) { SetMessage(value); return *this;}
65
67
73 inline bool GetDisableEmailNotification() const{ return m_disableEmailNotification; }
74 inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; }
75 inline void SetDisableEmailNotification(bool value) { m_disableEmailNotificationHasBeenSet = true; m_disableEmailNotification = value; }
78
80
87 inline const Aws::Vector<Account>& GetAccounts() const{ return m_accounts; }
88 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
89 inline void SetAccounts(const Aws::Vector<Account>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
90 inline void SetAccounts(Aws::Vector<Account>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
91 inline CreateMembersRequest& WithAccounts(const Aws::Vector<Account>& value) { SetAccounts(value); return *this;}
92 inline CreateMembersRequest& WithAccounts(Aws::Vector<Account>&& value) { SetAccounts(std::move(value)); return *this;}
93 inline CreateMembersRequest& AddAccounts(const Account& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
94 inline CreateMembersRequest& AddAccounts(Account&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_graphArn;
99 bool m_graphArnHasBeenSet = false;
100
101 Aws::String m_message;
102 bool m_messageHasBeenSet = false;
103
104 bool m_disableEmailNotification;
105 bool m_disableEmailNotificationHasBeenSet = false;
106
107 Aws::Vector<Account> m_accounts;
108 bool m_accountsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Detective
113} // namespace Aws
AWS_DETECTIVE_API Aws::String SerializePayload() const override
CreateMembersRequest & WithGraphArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateMembersRequest & WithGraphArn(const char *value)
CreateMembersRequest & WithMessage(const char *value)
CreateMembersRequest & WithDisableEmailNotification(bool value)
CreateMembersRequest & WithAccounts(const Aws::Vector< Account > &value)
CreateMembersRequest & WithMessage(Aws::String &&value)
CreateMembersRequest & AddAccounts(const Account &value)
CreateMembersRequest & WithAccounts(Aws::Vector< Account > &&value)
const Aws::Vector< Account > & GetAccounts() const
CreateMembersRequest & AddAccounts(Account &&value)
void SetAccounts(const Aws::Vector< Account > &value)
void SetAccounts(Aws::Vector< Account > &&value)
CreateMembersRequest & WithGraphArn(Aws::String &&value)
CreateMembersRequest & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector