AWS SDK for C++  1.9.158
AWS SDK for C++
CreateMembersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SecurityHub
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateMembers"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
41  inline const Aws::Vector<AccountDetails>& GetAccountDetails() const{ return m_accountDetails; }
42 
48  inline bool AccountDetailsHasBeenSet() const { return m_accountDetailsHasBeenSet; }
49 
55  inline void SetAccountDetails(const Aws::Vector<AccountDetails>& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = value; }
56 
62  inline void SetAccountDetails(Aws::Vector<AccountDetails>&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = std::move(value); }
63 
69  inline CreateMembersRequest& WithAccountDetails(const Aws::Vector<AccountDetails>& value) { SetAccountDetails(value); return *this;}
70 
76  inline CreateMembersRequest& WithAccountDetails(Aws::Vector<AccountDetails>&& value) { SetAccountDetails(std::move(value)); return *this;}
77 
83  inline CreateMembersRequest& AddAccountDetails(const AccountDetails& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(value); return *this; }
84 
90  inline CreateMembersRequest& AddAccountDetails(AccountDetails&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(std::move(value)); return *this; }
91 
92  private:
93 
94  Aws::Vector<AccountDetails> m_accountDetails;
95  bool m_accountDetailsHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace SecurityHub
100 } // namespace Aws
Aws::SecurityHub::Model::CreateMembersRequest::CreateMembersRequest
CreateMembersRequest()
AccountDetails.h
Aws::SecurityHub::Model::AccountDetails
Definition: AccountDetails.h:32
Aws::SecurityHub::Model::CreateMembersRequest::SetAccountDetails
void SetAccountDetails(Aws::Vector< AccountDetails > &&value)
Definition: CreateMembersRequest.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecurityHub::Model::CreateMembersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMembersRequest.h:31
AWSVector.h
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::CreateMembersRequest::WithAccountDetails
CreateMembersRequest & WithAccountDetails(Aws::Vector< AccountDetails > &&value)
Definition: CreateMembersRequest.h:76
Aws::SecurityHub::Model::CreateMembersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecurityHub::Model::CreateMembersRequest::AccountDetailsHasBeenSet
bool AccountDetailsHasBeenSet() const
Definition: CreateMembersRequest.h:48
Aws::SecurityHub::SecurityHubRequest
Definition: SecurityHubRequest.h:17
SecurityHubRequest.h
Aws::SecurityHub::Model::CreateMembersRequest::WithAccountDetails
CreateMembersRequest & WithAccountDetails(const Aws::Vector< AccountDetails > &value)
Definition: CreateMembersRequest.h:69
Aws::SecurityHub::Model::CreateMembersRequest::AddAccountDetails
CreateMembersRequest & AddAccountDetails(const AccountDetails &value)
Definition: CreateMembersRequest.h:83
Aws::SecurityHub::Model::CreateMembersRequest::AddAccountDetails
CreateMembersRequest & AddAccountDetails(AccountDetails &&value)
Definition: CreateMembersRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::CreateMembersRequest
Definition: CreateMembersRequest.h:23
Aws::SecurityHub::Model::CreateMembersRequest::SetAccountDetails
void SetAccountDetails(const Aws::Vector< AccountDetails > &value)
Definition: CreateMembersRequest.h:55
Aws::SecurityHub::Model::CreateMembersRequest::GetAccountDetails
const Aws::Vector< AccountDetails > & GetAccountDetails() const
Definition: CreateMembersRequest.h:41