AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateFindingAggregatorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
26 public:
27 AWS_SECURITYHUB_API CreateFindingAggregatorResult() = default;
30
32
36 inline const Aws::String& GetFindingAggregatorArn() const { return m_findingAggregatorArn; }
37 template <typename FindingAggregatorArnT = Aws::String>
38 void SetFindingAggregatorArn(FindingAggregatorArnT&& value) {
39 m_findingAggregatorArnHasBeenSet = true;
40 m_findingAggregatorArn = std::forward<FindingAggregatorArnT>(value);
41 }
42 template <typename FindingAggregatorArnT = Aws::String>
44 SetFindingAggregatorArn(std::forward<FindingAggregatorArnT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetFindingAggregationRegion() const { return m_findingAggregationRegion; }
55 template <typename FindingAggregationRegionT = Aws::String>
56 void SetFindingAggregationRegion(FindingAggregationRegionT&& value) {
57 m_findingAggregationRegionHasBeenSet = true;
58 m_findingAggregationRegion = std::forward<FindingAggregationRegionT>(value);
59 }
60 template <typename FindingAggregationRegionT = Aws::String>
61 CreateFindingAggregatorResult& WithFindingAggregationRegion(FindingAggregationRegionT&& value) {
62 SetFindingAggregationRegion(std::forward<FindingAggregationRegionT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetRegionLinkingMode() const { return m_regionLinkingMode; }
73 template <typename RegionLinkingModeT = Aws::String>
74 void SetRegionLinkingMode(RegionLinkingModeT&& value) {
75 m_regionLinkingModeHasBeenSet = true;
76 m_regionLinkingMode = std::forward<RegionLinkingModeT>(value);
77 }
78 template <typename RegionLinkingModeT = Aws::String>
80 SetRegionLinkingMode(std::forward<RegionLinkingModeT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
90 template <typename RegionsT = Aws::Vector<Aws::String>>
91 void SetRegions(RegionsT&& value) {
92 m_regionsHasBeenSet = true;
93 m_regions = std::forward<RegionsT>(value);
94 }
95 template <typename RegionsT = Aws::Vector<Aws::String>>
97 SetRegions(std::forward<RegionsT>(value));
98 return *this;
99 }
100 template <typename RegionsT = Aws::String>
102 m_regionsHasBeenSet = true;
103 m_regions.emplace_back(std::forward<RegionsT>(value));
104 return *this;
105 }
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template <typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) {
113 m_requestIdHasBeenSet = true;
114 m_requestId = std::forward<RequestIdT>(value);
115 }
116 template <typename RequestIdT = Aws::String>
118 SetRequestId(std::forward<RequestIdT>(value));
119 return *this;
120 }
122 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
123
124 private:
125 Aws::String m_findingAggregatorArn;
126
127 Aws::String m_findingAggregationRegion;
128
129 Aws::String m_regionLinkingMode;
130
131 Aws::Vector<Aws::String> m_regions;
132
133 Aws::String m_requestId;
134 Aws::Http::HttpResponseCode m_HttpResponseCode;
135 bool m_findingAggregatorArnHasBeenSet = false;
136 bool m_findingAggregationRegionHasBeenSet = false;
137 bool m_regionLinkingModeHasBeenSet = false;
138 bool m_regionsHasBeenSet = false;
139 bool m_requestIdHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace SecurityHub
144} // namespace Aws
CreateFindingAggregatorResult & WithRequestId(RequestIdT &&value)
CreateFindingAggregatorResult & WithRegions(RegionsT &&value)
CreateFindingAggregatorResult & WithFindingAggregatorArn(FindingAggregatorArnT &&value)
CreateFindingAggregatorResult & WithFindingAggregationRegion(FindingAggregationRegionT &&value)
void SetFindingAggregationRegion(FindingAggregationRegionT &&value)
AWS_SECURITYHUB_API CreateFindingAggregatorResult()=default
CreateFindingAggregatorResult & AddRegions(RegionsT &&value)
AWS_SECURITYHUB_API CreateFindingAggregatorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SECURITYHUB_API CreateFindingAggregatorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFindingAggregatorResult & WithRegionLinkingMode(RegionLinkingModeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue