AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const QueryType& GetType() const{ return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(const QueryType& value) { m_typeHasBeenSet = true; m_type = value; }
79 inline void SetType(QueryType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
80 inline ResourceQuery& WithType(const QueryType& value) { SetType(value); return *this;}
81 inline ResourceQuery& WithType(QueryType&& value) { SetType(std::move(value)); return *this;}
83
85
136 inline const Aws::String& GetQuery() const{ return m_query; }
137 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
138 inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
139 inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
140 inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
141 inline ResourceQuery& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
142 inline ResourceQuery& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
143 inline ResourceQuery& WithQuery(const char* value) { SetQuery(value); return *this;}
145 private:
146
147 QueryType m_type;
148 bool m_typeHasBeenSet = false;
149
150 Aws::String m_query;
151 bool m_queryHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace ResourceGroups
156} // namespace Aws
ResourceQuery & WithQuery(const Aws::String &value)
AWS_RESOURCEGROUPS_API ResourceQuery(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuery() const
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetQuery(const Aws::String &value)
ResourceQuery & WithType(QueryType &&value)
AWS_RESOURCEGROUPS_API ResourceQuery()
AWS_RESOURCEGROUPS_API ResourceQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceQuery & WithType(const QueryType &value)
ResourceQuery & WithQuery(const char *value)
void SetType(const QueryType &value)
ResourceQuery & WithQuery(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue