AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
UpdateOrganizationConfigurationRequest.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/AutoEnableMembers.h>
12#include <aws/guardduty/model/OrganizationFeatureConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GuardDuty {
18namespace Model {
19
23 public:
24 AWS_GUARDDUTY_API UpdateOrganizationConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateOrganizationConfiguration"; }
31
32 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 template <typename DetectorIdT = Aws::String>
45 void SetDetectorId(DetectorIdT&& value) {
46 m_detectorIdHasBeenSet = true;
47 m_detectorId = std::forward<DetectorIdT>(value);
48 }
49 template <typename DetectorIdT = Aws::String>
51 SetDetectorId(std::forward<DetectorIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<OrganizationFeatureConfiguration>& GetFeatures() const { return m_features; }
61 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
62 template <typename FeaturesT = Aws::Vector<OrganizationFeatureConfiguration>>
63 void SetFeatures(FeaturesT&& value) {
64 m_featuresHasBeenSet = true;
65 m_features = std::forward<FeaturesT>(value);
66 }
67 template <typename FeaturesT = Aws::Vector<OrganizationFeatureConfiguration>>
69 SetFeatures(std::forward<FeaturesT>(value));
70 return *this;
71 }
72 template <typename FeaturesT = OrganizationFeatureConfiguration>
74 m_featuresHasBeenSet = true;
75 m_features.emplace_back(std::forward<FeaturesT>(value));
76 return *this;
77 }
79
81
103 inline AutoEnableMembers GetAutoEnableOrganizationMembers() const { return m_autoEnableOrganizationMembers; }
104 inline bool AutoEnableOrganizationMembersHasBeenSet() const { return m_autoEnableOrganizationMembersHasBeenSet; }
106 m_autoEnableOrganizationMembersHasBeenSet = true;
107 m_autoEnableOrganizationMembers = value;
108 }
111 return *this;
112 }
114 private:
115 Aws::String m_detectorId;
116
118
119 AutoEnableMembers m_autoEnableOrganizationMembers{AutoEnableMembers::NOT_SET};
120 bool m_detectorIdHasBeenSet = false;
121 bool m_featuresHasBeenSet = false;
122 bool m_autoEnableOrganizationMembersHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace GuardDuty
127} // namespace Aws
UpdateOrganizationConfigurationRequest & WithFeatures(FeaturesT &&value)
UpdateOrganizationConfigurationRequest & AddFeatures(FeaturesT &&value)
UpdateOrganizationConfigurationRequest & WithDetectorId(DetectorIdT &&value)
const Aws::Vector< OrganizationFeatureConfiguration > & GetFeatures() const
UpdateOrganizationConfigurationRequest & WithAutoEnableOrganizationMembers(AutoEnableMembers value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector