AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ResourceQuery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
9#include <aws/resource-groups/model/QueryType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResourceGroups {
21namespace Model {
22
54 public:
55 AWS_RESOURCEGROUPS_API ResourceQuery() = default;
56 AWS_RESOURCEGROUPS_API ResourceQuery(Aws::Utils::Json::JsonView jsonValue);
57 AWS_RESOURCEGROUPS_API ResourceQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
58 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
59
61
70 inline QueryType GetType() const { return m_type; }
71 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
72 inline void SetType(QueryType value) {
73 m_typeHasBeenSet = true;
74 m_type = value;
75 }
77 SetType(value);
78 return *this;
79 }
81
83
134 inline const Aws::String& GetQuery() const { return m_query; }
135 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
136 template <typename QueryT = Aws::String>
137 void SetQuery(QueryT&& value) {
138 m_queryHasBeenSet = true;
139 m_query = std::forward<QueryT>(value);
140 }
141 template <typename QueryT = Aws::String>
142 ResourceQuery& WithQuery(QueryT&& value) {
143 SetQuery(std::forward<QueryT>(value));
144 return *this;
145 }
147 private:
149
150 Aws::String m_query;
151 bool m_typeHasBeenSet = false;
152 bool m_queryHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ResourceGroups
157} // namespace Aws
AWS_RESOURCEGROUPS_API ResourceQuery()=default
ResourceQuery & WithType(QueryType value)
AWS_RESOURCEGROUPS_API ResourceQuery(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuery() const
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceQuery & WithQuery(QueryT &&value)
AWS_RESOURCEGROUPS_API ResourceQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue