AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
StringCondition.h
1
6#pragma once
7#include <aws/backupsearch/BackupSearch_EXPORTS.h>
8#include <aws/backupsearch/model/StringConditionOperator.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 BackupSearch {
21namespace Model {
22
30 public:
31 AWS_BACKUPSEARCH_API StringCondition() = default;
32 AWS_BACKUPSEARCH_API StringCondition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BACKUPSEARCH_API StringCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = Aws::String>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = Aws::String>
48 StringCondition& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
53
55
62 inline StringConditionOperator GetOperator() const { return m_operator; }
63 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
65 m_operatorHasBeenSet = true;
66 m_operator = value;
67 }
69 SetOperator(value);
70 return *this;
71 }
73 private:
74 Aws::String m_value;
75
77 bool m_valueHasBeenSet = false;
78 bool m_operatorHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace BackupSearch
83} // namespace Aws
StringCondition & WithOperator(StringConditionOperator value)
AWS_BACKUPSEARCH_API StringCondition()=default
AWS_BACKUPSEARCH_API StringCondition(Aws::Utils::Json::JsonView jsonValue)
void SetOperator(StringConditionOperator value)
StringConditionOperator GetOperator() const
StringCondition & WithValue(ValueT &&value)
AWS_BACKUPSEARCH_API StringCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUPSEARCH_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue