AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateOrganizationConfigurationRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHubRequest.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/AutoEnableStandards.h>
10#include <aws/securityhub/model/OrganizationConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API UpdateOrganizationConfigurationRequest() = 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 "UpdateOrganizationConfiguration"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
45 inline bool GetAutoEnable() const { return m_autoEnable; }
46 inline bool AutoEnableHasBeenSet() const { return m_autoEnableHasBeenSet; }
47 inline void SetAutoEnable(bool value) {
48 m_autoEnableHasBeenSet = true;
49 m_autoEnable = value;
50 }
52 SetAutoEnable(value);
53 return *this;
54 }
56
58
73 inline AutoEnableStandards GetAutoEnableStandards() const { return m_autoEnableStandards; }
74 inline bool AutoEnableStandardsHasBeenSet() const { return m_autoEnableStandardsHasBeenSet; }
76 m_autoEnableStandardsHasBeenSet = true;
77 m_autoEnableStandards = value;
78 }
81 return *this;
82 }
84
86
87 inline const OrganizationConfiguration& GetOrganizationConfiguration() const { return m_organizationConfiguration; }
88 inline bool OrganizationConfigurationHasBeenSet() const { return m_organizationConfigurationHasBeenSet; }
89 template <typename OrganizationConfigurationT = OrganizationConfiguration>
90 void SetOrganizationConfiguration(OrganizationConfigurationT&& value) {
91 m_organizationConfigurationHasBeenSet = true;
92 m_organizationConfiguration = std::forward<OrganizationConfigurationT>(value);
93 }
94 template <typename OrganizationConfigurationT = OrganizationConfiguration>
96 SetOrganizationConfiguration(std::forward<OrganizationConfigurationT>(value));
97 return *this;
98 }
100 private:
101 bool m_autoEnable{false};
102
104
105 OrganizationConfiguration m_organizationConfiguration;
106 bool m_autoEnableHasBeenSet = false;
107 bool m_autoEnableStandardsHasBeenSet = false;
108 bool m_organizationConfigurationHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SecurityHub
113} // namespace Aws
UpdateOrganizationConfigurationRequest & WithOrganizationConfiguration(OrganizationConfigurationT &&value)
UpdateOrganizationConfigurationRequest & WithAutoEnableStandards(AutoEnableStandards value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String