AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
BatchGetSecurityControlsResult.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#include <aws/securityhub/model/SecurityControl.h>
12#include <aws/securityhub/model/UnprocessedSecurityControl.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub {
26namespace Model {
28 public:
29 AWS_SECURITYHUB_API BatchGetSecurityControlsResult() = default;
32
34
40 inline const Aws::Vector<SecurityControl>& GetSecurityControls() const { return m_securityControls; }
41 template <typename SecurityControlsT = Aws::Vector<SecurityControl>>
42 void SetSecurityControls(SecurityControlsT&& value) {
43 m_securityControlsHasBeenSet = true;
44 m_securityControls = std::forward<SecurityControlsT>(value);
45 }
46 template <typename SecurityControlsT = Aws::Vector<SecurityControl>>
48 SetSecurityControls(std::forward<SecurityControlsT>(value));
49 return *this;
50 }
51 template <typename SecurityControlsT = SecurityControl>
53 m_securityControlsHasBeenSet = true;
54 m_securityControls.emplace_back(std::forward<SecurityControlsT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::Vector<UnprocessedSecurityControl>& GetUnprocessedIds() const { return m_unprocessedIds; }
66 template <typename UnprocessedIdsT = Aws::Vector<UnprocessedSecurityControl>>
67 void SetUnprocessedIds(UnprocessedIdsT&& value) {
68 m_unprocessedIdsHasBeenSet = true;
69 m_unprocessedIds = std::forward<UnprocessedIdsT>(value);
70 }
71 template <typename UnprocessedIdsT = Aws::Vector<UnprocessedSecurityControl>>
73 SetUnprocessedIds(std::forward<UnprocessedIdsT>(value));
74 return *this;
75 }
76 template <typename UnprocessedIdsT = UnprocessedSecurityControl>
78 m_unprocessedIdsHasBeenSet = true;
79 m_unprocessedIds.emplace_back(std::forward<UnprocessedIdsT>(value));
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 Aws::Vector<SecurityControl> m_securityControls;
102
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_securityControlsHasBeenSet = false;
108 bool m_unprocessedIdsHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
BatchGetSecurityControlsResult & AddSecurityControls(SecurityControlsT &&value)
const Aws::Vector< UnprocessedSecurityControl > & GetUnprocessedIds() const
AWS_SECURITYHUB_API BatchGetSecurityControlsResult()=default
AWS_SECURITYHUB_API BatchGetSecurityControlsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetSecurityControlsResult & AddUnprocessedIds(UnprocessedIdsT &&value)
BatchGetSecurityControlsResult & WithUnprocessedIds(UnprocessedIdsT &&value)
BatchGetSecurityControlsResult & WithSecurityControls(SecurityControlsT &&value)
const Aws::Vector< SecurityControl > & GetSecurityControls() const
AWS_SECURITYHUB_API BatchGetSecurityControlsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetSecurityControlsResult & WithRequestId(RequestIdT &&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