AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GroupQuery.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resource-groups/model/ResourceQuery.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
35 {
36 public:
37 AWS_RESOURCEGROUPS_API GroupQuery() = default;
38 AWS_RESOURCEGROUPS_API GroupQuery(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESOURCEGROUPS_API GroupQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetGroupName() const { return m_groupName; }
49 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
50 template<typename GroupNameT = Aws::String>
51 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
52 template<typename GroupNameT = Aws::String>
53 GroupQuery& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
55
57
61 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
62 inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
63 template<typename ResourceQueryT = ResourceQuery>
64 void SetResourceQuery(ResourceQueryT&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::forward<ResourceQueryT>(value); }
65 template<typename ResourceQueryT = ResourceQuery>
66 GroupQuery& WithResourceQuery(ResourceQueryT&& value) { SetResourceQuery(std::forward<ResourceQueryT>(value)); return *this;}
68 private:
69
70 Aws::String m_groupName;
71 bool m_groupNameHasBeenSet = false;
72
73 ResourceQuery m_resourceQuery;
74 bool m_resourceQueryHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ResourceGroups
79} // namespace Aws
void SetResourceQuery(ResourceQueryT &&value)
Definition GroupQuery.h:64
GroupQuery & WithGroupName(GroupNameT &&value)
Definition GroupQuery.h:53
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGroupName() const
Definition GroupQuery.h:48
void SetGroupName(GroupNameT &&value)
Definition GroupQuery.h:51
AWS_RESOURCEGROUPS_API GroupQuery()=default
AWS_RESOURCEGROUPS_API GroupQuery(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEGROUPS_API GroupQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResourceQuery & GetResourceQuery() const
Definition GroupQuery.h:61
GroupQuery & WithResourceQuery(ResourceQueryT &&value)
Definition GroupQuery.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue