AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/guardduty/GuardDutyRequest.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/AccountDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_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_GUARDDUTY_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
42 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
43 template <typename DetectorIdT = Aws::String>
44 void SetDetectorId(DetectorIdT&& value) {
45 m_detectorIdHasBeenSet = true;
46 m_detectorId = std::forward<DetectorIdT>(value);
47 }
48 template <typename DetectorIdT = Aws::String>
49 CreateMembersRequest& WithDetectorId(DetectorIdT&& value) {
50 SetDetectorId(std::forward<DetectorIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<AccountDetail>& GetAccountDetails() const { return m_accountDetails; }
61 inline bool AccountDetailsHasBeenSet() const { return m_accountDetailsHasBeenSet; }
62 template <typename AccountDetailsT = Aws::Vector<AccountDetail>>
63 void SetAccountDetails(AccountDetailsT&& value) {
64 m_accountDetailsHasBeenSet = true;
65 m_accountDetails = std::forward<AccountDetailsT>(value);
66 }
67 template <typename AccountDetailsT = Aws::Vector<AccountDetail>>
68 CreateMembersRequest& WithAccountDetails(AccountDetailsT&& value) {
69 SetAccountDetails(std::forward<AccountDetailsT>(value));
70 return *this;
71 }
72 template <typename AccountDetailsT = AccountDetail>
73 CreateMembersRequest& AddAccountDetails(AccountDetailsT&& value) {
74 m_accountDetailsHasBeenSet = true;
75 m_accountDetails.emplace_back(std::forward<AccountDetailsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_detectorId;
81
82 Aws::Vector<AccountDetail> m_accountDetails;
83 bool m_detectorIdHasBeenSet = false;
84 bool m_accountDetailsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GuardDuty
89} // namespace Aws
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateMembersRequest & WithAccountDetails(AccountDetailsT &&value)
CreateMembersRequest & AddAccountDetails(AccountDetailsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< AccountDetail > & GetAccountDetails() const
void SetAccountDetails(AccountDetailsT &&value)
CreateMembersRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API CreateMembersRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector