AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourceQuery.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/model/QueryType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResourceGroups
23{
24namespace Model
25{
26
58 {
59 public:
60 AWS_RESOURCEGROUPS_API ResourceQuery() = default;
61 AWS_RESOURCEGROUPS_API ResourceQuery(Aws::Utils::Json::JsonView jsonValue);
62 AWS_RESOURCEGROUPS_API ResourceQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
63 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
64
65
67
76 inline QueryType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(QueryType value) { m_typeHasBeenSet = true; m_type = value; }
79 inline ResourceQuery& WithType(QueryType value) { SetType(value); return *this;}
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) { m_queryHasBeenSet = true; m_query = std::forward<QueryT>(value); }
138 template<typename QueryT = Aws::String>
139 ResourceQuery& WithQuery(QueryT&& value) { SetQuery(std::forward<QueryT>(value)); return *this;}
141 private:
142
144 bool m_typeHasBeenSet = false;
145
146 Aws::String m_query;
147 bool m_queryHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace ResourceGroups
152} // 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