AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateDetectorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/UnprocessedDataSourcesResult.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 GuardDuty {
24namespace Model {
26 public:
27 AWS_GUARDDUTY_API CreateDetectorResult() = default;
30
32
35 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
36 template <typename DetectorIdT = Aws::String>
37 void SetDetectorId(DetectorIdT&& value) {
38 m_detectorIdHasBeenSet = true;
39 m_detectorId = std::forward<DetectorIdT>(value);
40 }
41 template <typename DetectorIdT = Aws::String>
42 CreateDetectorResult& WithDetectorId(DetectorIdT&& value) {
43 SetDetectorId(std::forward<DetectorIdT>(value));
44 return *this;
45 }
47
49
53 inline const UnprocessedDataSourcesResult& GetUnprocessedDataSources() const { return m_unprocessedDataSources; }
54 template <typename UnprocessedDataSourcesT = UnprocessedDataSourcesResult>
55 void SetUnprocessedDataSources(UnprocessedDataSourcesT&& value) {
56 m_unprocessedDataSourcesHasBeenSet = true;
57 m_unprocessedDataSources = std::forward<UnprocessedDataSourcesT>(value);
58 }
59 template <typename UnprocessedDataSourcesT = UnprocessedDataSourcesResult>
60 CreateDetectorResult& WithUnprocessedDataSources(UnprocessedDataSourcesT&& value) {
61 SetUnprocessedDataSources(std::forward<UnprocessedDataSourcesT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
75 CreateDetectorResult& WithRequestId(RequestIdT&& value) {
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
81
82 private:
83 Aws::String m_detectorId;
84
85 UnprocessedDataSourcesResult m_unprocessedDataSources;
86
87 Aws::String m_requestId;
88 Aws::Http::HttpResponseCode m_HttpResponseCode;
89 bool m_detectorIdHasBeenSet = false;
90 bool m_unprocessedDataSourcesHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace GuardDuty
96} // namespace Aws
AWS_GUARDDUTY_API CreateDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDetectorResult & WithUnprocessedDataSources(UnprocessedDataSourcesT &&value)
void SetUnprocessedDataSources(UnprocessedDataSourcesT &&value)
AWS_GUARDDUTY_API CreateDetectorResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const UnprocessedDataSourcesResult & GetUnprocessedDataSources() const
CreateDetectorResult & WithRequestId(RequestIdT &&value)
AWS_GUARDDUTY_API CreateDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDetectorResult & WithDetectorId(DetectorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue