AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
AlertRuleQuery.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/QueryLanguage.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHOMNI_API AlertRuleQuery() = default;
32 AWS_CLOUDWATCHOMNI_API AlertRuleQuery(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API AlertRuleQuery& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline QueryLanguage GetLanguage() const { return m_language; }
41 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
42 inline void SetLanguage(QueryLanguage value) {
43 m_languageHasBeenSet = true;
44 m_language = value;
45 }
47 SetLanguage(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetExpression() const { return m_expression; }
57 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
58 template <typename ExpressionT = Aws::String>
59 void SetExpression(ExpressionT&& value) {
60 m_expressionHasBeenSet = true;
61 m_expression = std::forward<ExpressionT>(value);
62 }
63 template <typename ExpressionT = Aws::String>
64 AlertRuleQuery& WithExpression(ExpressionT&& value) {
65 SetExpression(std::forward<ExpressionT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_expression;
73 bool m_languageHasBeenSet = false;
74 bool m_expressionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CloudWatchOmni
79} // namespace Aws
AWS_CLOUDWATCHOMNI_API AlertRuleQuery & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AlertRuleQuery & WithLanguage(QueryLanguage value)
const Aws::String & GetExpression() const
AWS_CLOUDWATCHOMNI_API AlertRuleQuery(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API AlertRuleQuery()=default
AlertRuleQuery & WithExpression(ExpressionT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String