AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
UpdateMemberDetectorsRequest.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/MemberFeaturesConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API UpdateMemberDetectorsRequest() = 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 "UpdateMemberDetectors"; }
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>
50 SetDetectorId(std::forward<DetectorIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
60 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
61 template <typename AccountIdsT = Aws::Vector<Aws::String>>
62 void SetAccountIds(AccountIdsT&& value) {
63 m_accountIdsHasBeenSet = true;
64 m_accountIds = std::forward<AccountIdsT>(value);
65 }
66 template <typename AccountIdsT = Aws::Vector<Aws::String>>
68 SetAccountIds(std::forward<AccountIdsT>(value));
69 return *this;
70 }
71 template <typename AccountIdsT = Aws::String>
73 m_accountIdsHasBeenSet = true;
74 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Vector<MemberFeaturesConfiguration>& GetFeatures() const { return m_features; }
85 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
86 template <typename FeaturesT = Aws::Vector<MemberFeaturesConfiguration>>
87 void SetFeatures(FeaturesT&& value) {
88 m_featuresHasBeenSet = true;
89 m_features = std::forward<FeaturesT>(value);
90 }
91 template <typename FeaturesT = Aws::Vector<MemberFeaturesConfiguration>>
93 SetFeatures(std::forward<FeaturesT>(value));
94 return *this;
95 }
96 template <typename FeaturesT = MemberFeaturesConfiguration>
98 m_featuresHasBeenSet = true;
99 m_features.emplace_back(std::forward<FeaturesT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_detectorId;
105
106 Aws::Vector<Aws::String> m_accountIds;
107
109 bool m_detectorIdHasBeenSet = false;
110 bool m_accountIdsHasBeenSet = false;
111 bool m_featuresHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace GuardDuty
116} // namespace Aws
UpdateMemberDetectorsRequest & WithFeatures(FeaturesT &&value)
UpdateMemberDetectorsRequest & AddFeatures(FeaturesT &&value)
const Aws::Vector< MemberFeaturesConfiguration > & GetFeatures() const
UpdateMemberDetectorsRequest & AddAccountIds(AccountIdsT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
AWS_GUARDDUTY_API UpdateMemberDetectorsRequest()=default
UpdateMemberDetectorsRequest & WithDetectorId(DetectorIdT &&value)
UpdateMemberDetectorsRequest & WithAccountIds(AccountIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector