AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
RowScope.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/RowScopeOperator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CloudWatchOmni {
22namespace Model {
23
32class RowScope {
33 public:
34 AWS_CLOUDWATCHOMNI_API RowScope() = default;
35 AWS_CLOUDWATCHOMNI_API RowScope(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API RowScope& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
44 inline const Aws::String& GetField() const { return m_field; }
45 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
46 template <typename FieldT = Aws::String>
47 void SetField(FieldT&& value) {
48 m_fieldHasBeenSet = true;
49 m_field = std::forward<FieldT>(value);
50 }
51 template <typename FieldT = Aws::String>
52 RowScope& WithField(FieldT&& value) {
53 SetField(std::forward<FieldT>(value));
54 return *this;
55 }
57
59
62 inline RowScopeOperator GetOperator() const { return m_operator; }
63 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
64 inline void SetOperator(RowScopeOperator value) {
65 m_operatorHasBeenSet = true;
66 m_operator = value;
67 }
69 SetOperator(value);
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
79 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
80 template <typename ValuesT = Aws::Vector<Aws::String>>
81 void SetValues(ValuesT&& value) {
82 m_valuesHasBeenSet = true;
83 m_values = std::forward<ValuesT>(value);
84 }
85 template <typename ValuesT = Aws::Vector<Aws::String>>
86 RowScope& WithValues(ValuesT&& value) {
87 SetValues(std::forward<ValuesT>(value));
88 return *this;
89 }
90 template <typename ValuesT = Aws::String>
91 RowScope& AddValues(ValuesT&& value) {
92 m_valuesHasBeenSet = true;
93 m_values.emplace_back(std::forward<ValuesT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_field;
99
101
103 bool m_fieldHasBeenSet = false;
104 bool m_operatorHasBeenSet = false;
105 bool m_valuesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CloudWatchOmni
110} // namespace Aws
void SetField(FieldT &&value)
Definition RowScope.h:47
RowScope & WithOperator(RowScopeOperator value)
Definition RowScope.h:68
AWS_CLOUDWATCHOMNI_API RowScope & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetValues(ValuesT &&value)
Definition RowScope.h:81
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
RowScope & WithValues(ValuesT &&value)
Definition RowScope.h:86
RowScope & WithField(FieldT &&value)
Definition RowScope.h:52
AWS_CLOUDWATCHOMNI_API RowScope(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API RowScope()=default
const Aws::Vector< Aws::String > & GetValues() const
Definition RowScope.h:78
RowScope & AddValues(ValuesT &&value)
Definition RowScope.h:91
RowScopeOperator GetOperator() const
Definition RowScope.h:62
void SetOperator(RowScopeOperator value)
Definition RowScope.h:64
const Aws::String & GetField() const
Definition RowScope.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector