AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
FetchRecord.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/FetchQuery.h>
9#include <aws/guardduty/model/FetchResult.h>
10#include <aws/guardduty/model/FetchType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
32 public:
33 AWS_GUARDDUTY_API FetchRecord() = default;
34 AWS_GUARDDUTY_API FetchRecord(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API FetchRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
52 inline FetchType GetFetchType() const { return m_fetchType; }
53 inline bool FetchTypeHasBeenSet() const { return m_fetchTypeHasBeenSet; }
54 inline void SetFetchType(FetchType value) {
55 m_fetchTypeHasBeenSet = true;
56 m_fetchType = value;
57 }
59 SetFetchType(value);
60 return *this;
61 }
63
65
68 inline const FetchQuery& GetQuery() const { return m_query; }
69 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
70 template <typename QueryT = FetchQuery>
71 void SetQuery(QueryT&& value) {
72 m_queryHasBeenSet = true;
73 m_query = std::forward<QueryT>(value);
74 }
75 template <typename QueryT = FetchQuery>
76 FetchRecord& WithQuery(QueryT&& value) {
77 SetQuery(std::forward<QueryT>(value));
78 return *this;
79 }
81
83
87 inline const FetchResult& GetResult() const { return m_result; }
88 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
89 template <typename ResultT = FetchResult>
90 void SetResult(ResultT&& value) {
91 m_resultHasBeenSet = true;
92 m_result = std::forward<ResultT>(value);
93 }
94 template <typename ResultT = FetchResult>
95 FetchRecord& WithResult(ResultT&& value) {
96 SetResult(std::forward<ResultT>(value));
97 return *this;
98 }
100 private:
101 FetchType m_fetchType{FetchType::NOT_SET};
102
103 FetchQuery m_query;
104
105 FetchResult m_result;
106 bool m_fetchTypeHasBeenSet = false;
107 bool m_queryHasBeenSet = false;
108 bool m_resultHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace GuardDuty
113} // namespace Aws
const FetchQuery & GetQuery() const
Definition FetchRecord.h:68
AWS_GUARDDUTY_API FetchRecord()=default
void SetQuery(QueryT &&value)
Definition FetchRecord.h:71
void SetResult(ResultT &&value)
Definition FetchRecord.h:90
AWS_GUARDDUTY_API FetchRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFetchType(FetchType value)
Definition FetchRecord.h:54
FetchRecord & WithFetchType(FetchType value)
Definition FetchRecord.h:58
FetchRecord & WithQuery(QueryT &&value)
Definition FetchRecord.h:76
FetchRecord & WithResult(ResultT &&value)
Definition FetchRecord.h:95
const FetchResult & GetResult() const
Definition FetchRecord.h:87
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API FetchRecord(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue