AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
RandomCutForestConfiguration.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/IgnoreNearExpected.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PrometheusService {
21namespace Model {
22
30 public:
31 AWS_PROMETHEUSSERVICE_API RandomCutForestConfiguration() = default;
32 AWS_PROMETHEUSSERVICE_API RandomCutForestConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
47 inline const Aws::String& GetQuery() const { return m_query; }
48 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
49 template <typename QueryT = Aws::String>
50 void SetQuery(QueryT&& value) {
51 m_queryHasBeenSet = true;
52 m_query = std::forward<QueryT>(value);
53 }
54 template <typename QueryT = Aws::String>
56 SetQuery(std::forward<QueryT>(value));
57 return *this;
58 }
60
62
66 inline int GetShingleSize() const { return m_shingleSize; }
67 inline bool ShingleSizeHasBeenSet() const { return m_shingleSizeHasBeenSet; }
68 inline void SetShingleSize(int value) {
69 m_shingleSizeHasBeenSet = true;
70 m_shingleSize = value;
71 }
73 SetShingleSize(value);
74 return *this;
75 }
77
79
83 inline int GetSampleSize() const { return m_sampleSize; }
84 inline bool SampleSizeHasBeenSet() const { return m_sampleSizeHasBeenSet; }
85 inline void SetSampleSize(int value) {
86 m_sampleSizeHasBeenSet = true;
87 m_sampleSize = value;
88 }
90 SetSampleSize(value);
91 return *this;
92 }
94
96
100 inline const IgnoreNearExpected& GetIgnoreNearExpectedFromAbove() const { return m_ignoreNearExpectedFromAbove; }
101 inline bool IgnoreNearExpectedFromAboveHasBeenSet() const { return m_ignoreNearExpectedFromAboveHasBeenSet; }
102 template <typename IgnoreNearExpectedFromAboveT = IgnoreNearExpected>
103 void SetIgnoreNearExpectedFromAbove(IgnoreNearExpectedFromAboveT&& value) {
104 m_ignoreNearExpectedFromAboveHasBeenSet = true;
105 m_ignoreNearExpectedFromAbove = std::forward<IgnoreNearExpectedFromAboveT>(value);
106 }
107 template <typename IgnoreNearExpectedFromAboveT = IgnoreNearExpected>
108 RandomCutForestConfiguration& WithIgnoreNearExpectedFromAbove(IgnoreNearExpectedFromAboveT&& value) {
109 SetIgnoreNearExpectedFromAbove(std::forward<IgnoreNearExpectedFromAboveT>(value));
110 return *this;
111 }
113
115
119 inline const IgnoreNearExpected& GetIgnoreNearExpectedFromBelow() const { return m_ignoreNearExpectedFromBelow; }
120 inline bool IgnoreNearExpectedFromBelowHasBeenSet() const { return m_ignoreNearExpectedFromBelowHasBeenSet; }
121 template <typename IgnoreNearExpectedFromBelowT = IgnoreNearExpected>
122 void SetIgnoreNearExpectedFromBelow(IgnoreNearExpectedFromBelowT&& value) {
123 m_ignoreNearExpectedFromBelowHasBeenSet = true;
124 m_ignoreNearExpectedFromBelow = std::forward<IgnoreNearExpectedFromBelowT>(value);
125 }
126 template <typename IgnoreNearExpectedFromBelowT = IgnoreNearExpected>
127 RandomCutForestConfiguration& WithIgnoreNearExpectedFromBelow(IgnoreNearExpectedFromBelowT&& value) {
128 SetIgnoreNearExpectedFromBelow(std::forward<IgnoreNearExpectedFromBelowT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_query;
134
135 int m_shingleSize{0};
136
137 int m_sampleSize{0};
138
139 IgnoreNearExpected m_ignoreNearExpectedFromAbove;
140
141 IgnoreNearExpected m_ignoreNearExpectedFromBelow;
142 bool m_queryHasBeenSet = false;
143 bool m_shingleSizeHasBeenSet = false;
144 bool m_sampleSizeHasBeenSet = false;
145 bool m_ignoreNearExpectedFromAboveHasBeenSet = false;
146 bool m_ignoreNearExpectedFromBelowHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace PrometheusService
151} // namespace Aws
void SetIgnoreNearExpectedFromAbove(IgnoreNearExpectedFromAboveT &&value)
AWS_PROMETHEUSSERVICE_API RandomCutForestConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API RandomCutForestConfiguration()=default
RandomCutForestConfiguration & WithIgnoreNearExpectedFromAbove(IgnoreNearExpectedFromAboveT &&value)
AWS_PROMETHEUSSERVICE_API RandomCutForestConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetIgnoreNearExpectedFromBelow(IgnoreNearExpectedFromBelowT &&value)
RandomCutForestConfiguration & WithIgnoreNearExpectedFromBelow(IgnoreNearExpectedFromBelowT &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue