AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateMemberDetectorsRequest.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/MemberFeaturesConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API UpdateMemberDetectorsRequest() = 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 "UpdateMemberDetectors"; }
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 UpdateMemberDetectorsRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
58 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
59 template<typename AccountIdsT = Aws::Vector<Aws::String>>
60 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
61 template<typename AccountIdsT = Aws::Vector<Aws::String>>
62 UpdateMemberDetectorsRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
63 template<typename AccountIdsT = Aws::String>
64 UpdateMemberDetectorsRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
66
68
72 inline const Aws::Vector<MemberFeaturesConfiguration>& GetFeatures() const { return m_features; }
73 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
74 template<typename FeaturesT = Aws::Vector<MemberFeaturesConfiguration>>
75 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
76 template<typename FeaturesT = Aws::Vector<MemberFeaturesConfiguration>>
77 UpdateMemberDetectorsRequest& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
78 template<typename FeaturesT = MemberFeaturesConfiguration>
79 UpdateMemberDetectorsRequest& AddFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features.emplace_back(std::forward<FeaturesT>(value)); return *this; }
81 private:
82
83 Aws::String m_detectorId;
84 bool m_detectorIdHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_accountIds;
87 bool m_accountIdsHasBeenSet = false;
88
90 bool m_featuresHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace GuardDuty
95} // 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