AWS SDK for C++  1.9.106
AWS SDK for C++
ResourceQuery.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ResourceGroups
23 {
24 namespace Model
25 {
26 
71  {
72  public:
77 
78 
114  inline const QueryType& GetType() const{ return m_type; }
115 
151  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
152 
188  inline void SetType(const QueryType& value) { m_typeHasBeenSet = true; m_type = value; }
189 
225  inline void SetType(QueryType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
226 
262  inline ResourceQuery& WithType(const QueryType& value) { SetType(value); return *this;}
263 
299  inline ResourceQuery& WithType(QueryType&& value) { SetType(std::move(value)); return *this;}
300 
301 
305  inline const Aws::String& GetQuery() const{ return m_query; }
306 
310  inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
311 
315  inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
316 
320  inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
321 
325  inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
326 
330  inline ResourceQuery& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
331 
335  inline ResourceQuery& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
336 
340  inline ResourceQuery& WithQuery(const char* value) { SetQuery(value); return *this;}
341 
342  private:
343 
344  QueryType m_type;
345  bool m_typeHasBeenSet;
346 
347  Aws::String m_query;
348  bool m_queryHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace ResourceGroups
353 } // namespace Aws
Aws::ResourceGroups::Model::ResourceQuery::operator=
ResourceQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroups::Model::ResourceQuery::WithQuery
ResourceQuery & WithQuery(const Aws::String &value)
Definition: ResourceQuery.h:330
Aws::ResourceGroups::Model::ResourceQuery::WithQuery
ResourceQuery & WithQuery(const char *value)
Definition: ResourceQuery.h:340
Aws::ResourceGroups::Model::ResourceQuery::SetType
void SetType(QueryType &&value)
Definition: ResourceQuery.h:225
Aws::ResourceGroups::Model::ResourceQuery::WithType
ResourceQuery & WithType(QueryType &&value)
Definition: ResourceQuery.h:299
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
Aws::ResourceGroups::Model::ResourceQuery::ResourceQuery
ResourceQuery(Aws::Utils::Json::JsonView jsonValue)
Aws::ResourceGroups::Model::ResourceQuery::WithType
ResourceQuery & WithType(const QueryType &value)
Definition: ResourceQuery.h:262
Aws::ResourceGroups::Model::ResourceQuery::GetType
const QueryType & GetType() const
Definition: ResourceQuery.h:114
Aws::ResourceGroups::Model::ResourceQuery::SetQuery
void SetQuery(const Aws::String &value)
Definition: ResourceQuery.h:315
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
QueryType.h
Aws::ResourceGroups::Model::ResourceQuery::SetQuery
void SetQuery(const char *value)
Definition: ResourceQuery.h:325
Aws::ResourceGroups::Model::ResourceQuery::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ResourceQuery.h:151
Aws::ResourceGroups::Model::ResourceQuery::SetType
void SetType(const QueryType &value)
Definition: ResourceQuery.h:188
Aws::ResourceGroups::Model::ResourceQuery::QueryHasBeenSet
bool QueryHasBeenSet() const
Definition: ResourceQuery.h:310
Aws::ResourceGroups::Model::QueryType
QueryType
Definition: QueryType.h:17
Aws::ResourceGroups::Model::ResourceQuery::SetQuery
void SetQuery(Aws::String &&value)
Definition: ResourceQuery.h:320
Aws
Definition: AccessManagementClient.h:15
Aws::ResourceGroups::Model::ResourceQuery
Definition: ResourceQuery.h:71
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::ResourceQuery::ResourceQuery
ResourceQuery()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::ResourceQuery::GetQuery
const Aws::String & GetQuery() const
Definition: ResourceQuery.h:305
Aws::ResourceGroups::Model::ResourceQuery::WithQuery
ResourceQuery & WithQuery(Aws::String &&value)
Definition: ResourceQuery.h:335
Aws::ResourceGroups::Model::ResourceQuery::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const