AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
EnableSecurityHubRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/ControlFindingGenerator.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API EnableSecurityHubRequest() = 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 "EnableSecurityHub"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
38 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
39 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
40 void SetTags(TagsT&& value) {
41 m_tagsHasBeenSet = true;
42 m_tags = std::forward<TagsT>(value);
43 }
44 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
46 SetTags(std::forward<TagsT>(value));
47 return *this;
48 }
49 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
50 EnableSecurityHubRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
51 m_tagsHasBeenSet = true;
52 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
53 return *this;
54 }
56
58
65 inline bool GetEnableDefaultStandards() const { return m_enableDefaultStandards; }
66 inline bool EnableDefaultStandardsHasBeenSet() const { return m_enableDefaultStandardsHasBeenSet; }
67 inline void SetEnableDefaultStandards(bool value) {
68 m_enableDefaultStandardsHasBeenSet = true;
69 m_enableDefaultStandards = value;
70 }
73 return *this;
74 }
76
78
91 inline ControlFindingGenerator GetControlFindingGenerator() const { return m_controlFindingGenerator; }
92 inline bool ControlFindingGeneratorHasBeenSet() const { return m_controlFindingGeneratorHasBeenSet; }
94 m_controlFindingGeneratorHasBeenSet = true;
95 m_controlFindingGenerator = value;
96 }
99 return *this;
100 }
102 private:
104
105 bool m_enableDefaultStandards{false};
106
108 bool m_tagsHasBeenSet = false;
109 bool m_enableDefaultStandardsHasBeenSet = false;
110 bool m_controlFindingGeneratorHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace SecurityHub
115} // namespace Aws
virtual const char * GetServiceRequestName() const override
EnableSecurityHubRequest & WithEnableDefaultStandards(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SECURITYHUB_API EnableSecurityHubRequest()=default
EnableSecurityHubRequest & WithControlFindingGenerator(ControlFindingGenerator value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
EnableSecurityHubRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetControlFindingGenerator(ControlFindingGenerator value)
EnableSecurityHubRequest & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String