AWS SDK for C++  1.9.104
AWS SDK for C++
CreateMembersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GuardDuty
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
42 
47  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 
53  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
54 
59  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
60 
65  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
66 
71  inline CreateMembersRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
72 
77  inline CreateMembersRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
78 
83  inline CreateMembersRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
84 
85 
90  inline const Aws::Vector<AccountDetail>& GetAccountDetails() const{ return m_accountDetails; }
91 
96  inline bool AccountDetailsHasBeenSet() const { return m_accountDetailsHasBeenSet; }
97 
102  inline void SetAccountDetails(const Aws::Vector<AccountDetail>& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = value; }
103 
108  inline void SetAccountDetails(Aws::Vector<AccountDetail>&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = std::move(value); }
109 
114  inline CreateMembersRequest& WithAccountDetails(const Aws::Vector<AccountDetail>& value) { SetAccountDetails(value); return *this;}
115 
120  inline CreateMembersRequest& WithAccountDetails(Aws::Vector<AccountDetail>&& value) { SetAccountDetails(std::move(value)); return *this;}
121 
126  inline CreateMembersRequest& AddAccountDetails(const AccountDetail& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(value); return *this; }
127 
132  inline CreateMembersRequest& AddAccountDetails(AccountDetail&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(std::move(value)); return *this; }
133 
134  private:
135 
136  Aws::String m_detectorId;
137  bool m_detectorIdHasBeenSet;
138 
139  Aws::Vector<AccountDetail> m_accountDetails;
140  bool m_accountDetailsHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace GuardDuty
145 } // namespace Aws
Aws::GuardDuty::Model::CreateMembersRequest::SetAccountDetails
void SetAccountDetails(const Aws::Vector< AccountDetail > &value)
Definition: CreateMembersRequest.h:102
Aws::GuardDuty::Model::CreateMembersRequest::WithDetectorId
CreateMembersRequest & WithDetectorId(const Aws::String &value)
Definition: CreateMembersRequest.h:71
AccountDetail.h
Aws::GuardDuty::Model::CreateMembersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::CreateMembersRequest::WithAccountDetails
CreateMembersRequest & WithAccountDetails(Aws::Vector< AccountDetail > &&value)
Definition: CreateMembersRequest.h:120
Aws::GuardDuty::Model::CreateMembersRequest::CreateMembersRequest
CreateMembersRequest()
Aws::GuardDuty::Model::CreateMembersRequest::GetAccountDetails
const Aws::Vector< AccountDetail > & GetAccountDetails() const
Definition: CreateMembersRequest.h:90
AWSVector.h
Aws::GuardDuty::Model::CreateMembersRequest::AddAccountDetails
CreateMembersRequest & AddAccountDetails(const AccountDetail &value)
Definition: CreateMembersRequest.h:126
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::AccountDetail
Definition: AccountDetail.h:32
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::CreateMembersRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateMembersRequest.h:65
Aws::GuardDuty::Model::CreateMembersRequest::WithAccountDetails
CreateMembersRequest & WithAccountDetails(const Aws::Vector< AccountDetail > &value)
Definition: CreateMembersRequest.h:114
AWSString.h
Aws::GuardDuty::Model::CreateMembersRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateMembersRequest.h:53
Aws::GuardDuty::Model::CreateMembersRequest::AddAccountDetails
CreateMembersRequest & AddAccountDetails(AccountDetail &&value)
Definition: CreateMembersRequest.h:132
Aws::GuardDuty::Model::CreateMembersRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateMembersRequest.h:47
Aws::GuardDuty::Model::CreateMembersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMembersRequest.h:32
Aws::GuardDuty::Model::CreateMembersRequest::SetAccountDetails
void SetAccountDetails(Aws::Vector< AccountDetail > &&value)
Definition: CreateMembersRequest.h:108
Aws::GuardDuty::Model::CreateMembersRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateMembersRequest.h:59
Aws::GuardDuty::Model::CreateMembersRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateMembersRequest.h:41
Aws::GuardDuty::Model::CreateMembersRequest::WithDetectorId
CreateMembersRequest & WithDetectorId(const char *value)
Definition: CreateMembersRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::CreateMembersRequest::WithDetectorId
CreateMembersRequest & WithDetectorId(Aws::String &&value)
Definition: CreateMembersRequest.h:77
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::CreateMembersRequest::AccountDetailsHasBeenSet
bool AccountDetailsHasBeenSet() const
Definition: CreateMembersRequest.h:96
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::CreateMembersRequest
Definition: CreateMembersRequest.h:24