AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
QueryField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace InternetMonitor {
20namespace Model {
21
31 public:
32 AWS_INTERNETMONITOR_API QueryField() = default;
33 AWS_INTERNETMONITOR_API QueryField(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INTERNETMONITOR_API QueryField& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 QueryField& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 template <typename TypeT = Aws::String>
65 void SetType(TypeT&& value) {
66 m_typeHasBeenSet = true;
67 m_type = std::forward<TypeT>(value);
68 }
69 template <typename TypeT = Aws::String>
70 QueryField& WithType(TypeT&& value) {
71 SetType(std::forward<TypeT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_name;
77
78 Aws::String m_type;
79 bool m_nameHasBeenSet = false;
80 bool m_typeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace InternetMonitor
85} // namespace Aws
AWS_INTERNETMONITOR_API QueryField()=default
QueryField & WithType(TypeT &&value)
Definition QueryField.h:70
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetType() const
Definition QueryField.h:62
const Aws::String & GetName() const
Definition QueryField.h:42
AWS_INTERNETMONITOR_API QueryField(Aws::Utils::Json::JsonView jsonValue)
QueryField & WithName(NameT &&value)
Definition QueryField.h:50
AWS_INTERNETMONITOR_API QueryField & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue