AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateFindingAggregatorRequest.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/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API CreateFindingAggregatorRequest() = 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 "CreateFindingAggregator"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
54 inline const Aws::String& GetRegionLinkingMode() const { return m_regionLinkingMode; }
55 inline bool RegionLinkingModeHasBeenSet() const { return m_regionLinkingModeHasBeenSet; }
56 template <typename RegionLinkingModeT = Aws::String>
57 void SetRegionLinkingMode(RegionLinkingModeT&& value) {
58 m_regionLinkingModeHasBeenSet = true;
59 m_regionLinkingMode = std::forward<RegionLinkingModeT>(value);
60 }
61 template <typename RegionLinkingModeT = Aws::String>
63 SetRegionLinkingMode(std::forward<RegionLinkingModeT>(value));
64 return *this;
65 }
67
69
79 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
80 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
81 template <typename RegionsT = Aws::Vector<Aws::String>>
82 void SetRegions(RegionsT&& value) {
83 m_regionsHasBeenSet = true;
84 m_regions = std::forward<RegionsT>(value);
85 }
86 template <typename RegionsT = Aws::Vector<Aws::String>>
88 SetRegions(std::forward<RegionsT>(value));
89 return *this;
90 }
91 template <typename RegionsT = Aws::String>
93 m_regionsHasBeenSet = true;
94 m_regions.emplace_back(std::forward<RegionsT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_regionLinkingMode;
100
101 Aws::Vector<Aws::String> m_regions;
102 bool m_regionLinkingModeHasBeenSet = false;
103 bool m_regionsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SecurityHub
108} // namespace Aws
CreateFindingAggregatorRequest & WithRegions(RegionsT &&value)
CreateFindingAggregatorRequest & WithRegionLinkingMode(RegionLinkingModeT &&value)
CreateFindingAggregatorRequest & AddRegions(RegionsT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
AWS_SECURITYHUB_API CreateFindingAggregatorRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector