AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DisassociateMembersRequest.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
12#include <utility>
13
14namespace Aws {
15namespace GuardDuty {
16namespace Model {
17
21 public:
22 AWS_GUARDDUTY_API DisassociateMembersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DisassociateMembers"; }
29
30 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
38 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
39 template <typename DetectorIdT = Aws::String>
40 void SetDetectorId(DetectorIdT&& value) {
41 m_detectorIdHasBeenSet = true;
42 m_detectorId = std::forward<DetectorIdT>(value);
43 }
44 template <typename DetectorIdT = Aws::String>
46 SetDetectorId(std::forward<DetectorIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
57 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
58 template <typename AccountIdsT = Aws::Vector<Aws::String>>
59 void SetAccountIds(AccountIdsT&& value) {
60 m_accountIdsHasBeenSet = true;
61 m_accountIds = std::forward<AccountIdsT>(value);
62 }
63 template <typename AccountIdsT = Aws::Vector<Aws::String>>
65 SetAccountIds(std::forward<AccountIdsT>(value));
66 return *this;
67 }
68 template <typename AccountIdsT = Aws::String>
70 m_accountIdsHasBeenSet = true;
71 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_detectorId;
77
78 Aws::Vector<Aws::String> m_accountIds;
79 bool m_detectorIdHasBeenSet = false;
80 bool m_accountIdsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace GuardDuty
85} // namespace Aws
DisassociateMembersRequest & WithDetectorId(DetectorIdT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
DisassociateMembersRequest & WithAccountIds(AccountIdsT &&value)
AWS_GUARDDUTY_API DisassociateMembersRequest()=default
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
DisassociateMembersRequest & AddAccountIds(AccountIdsT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector