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/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/AccountDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_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_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
46 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
47 template<typename DetectorIdT = Aws::String>
48 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
49 template<typename DetectorIdT = Aws::String>
50 CreateMembersRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
52
54
58 inline const Aws::Vector<AccountDetail>& GetAccountDetails() const { return m_accountDetails; }
59 inline bool AccountDetailsHasBeenSet() const { return m_accountDetailsHasBeenSet; }
60 template<typename AccountDetailsT = Aws::Vector<AccountDetail>>
61 void SetAccountDetails(AccountDetailsT&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = std::forward<AccountDetailsT>(value); }
62 template<typename AccountDetailsT = Aws::Vector<AccountDetail>>
63 CreateMembersRequest& WithAccountDetails(AccountDetailsT&& value) { SetAccountDetails(std::forward<AccountDetailsT>(value)); return *this;}
64 template<typename AccountDetailsT = AccountDetail>
65 CreateMembersRequest& AddAccountDetails(AccountDetailsT&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.emplace_back(std::forward<AccountDetailsT>(value)); return *this; }
67 private:
68
69 Aws::String m_detectorId;
70 bool m_detectorIdHasBeenSet = false;
71
72 Aws::Vector<AccountDetail> m_accountDetails;
73 bool m_accountDetailsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GuardDuty
78} // 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