AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
CreateDetectorResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/UnprocessedDataSourcesResult.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
25 public:
26 AWS_GUARDDUTY_API CreateDetectorResult() = default;
29
31
34 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
35 template <typename DetectorIdT = Aws::String>
36 void SetDetectorId(DetectorIdT&& value) {
37 m_detectorIdHasBeenSet = true;
38 m_detectorId = std::forward<DetectorIdT>(value);
39 }
40 template <typename DetectorIdT = Aws::String>
41 CreateDetectorResult& WithDetectorId(DetectorIdT&& value) {
42 SetDetectorId(std::forward<DetectorIdT>(value));
43 return *this;
44 }
46
48
52 inline const UnprocessedDataSourcesResult& GetUnprocessedDataSources() const { return m_unprocessedDataSources; }
53 template <typename UnprocessedDataSourcesT = UnprocessedDataSourcesResult>
54 void SetUnprocessedDataSources(UnprocessedDataSourcesT&& value) {
55 m_unprocessedDataSourcesHasBeenSet = true;
56 m_unprocessedDataSources = std::forward<UnprocessedDataSourcesT>(value);
57 }
58 template <typename UnprocessedDataSourcesT = UnprocessedDataSourcesResult>
59 CreateDetectorResult& WithUnprocessedDataSources(UnprocessedDataSourcesT&& value) {
60 SetUnprocessedDataSources(std::forward<UnprocessedDataSourcesT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
74 CreateDetectorResult& WithRequestId(RequestIdT&& value) {
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_detectorId;
81
82 UnprocessedDataSourcesResult m_unprocessedDataSources;
83
84 Aws::String m_requestId;
85 bool m_detectorIdHasBeenSet = false;
86 bool m_unprocessedDataSourcesHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace GuardDuty
92} // 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
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