AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GroupQuery.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/ResourceQuery.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
31 public:
32 AWS_RESOURCEGROUPS_API GroupQuery() = default;
33 AWS_RESOURCEGROUPS_API GroupQuery(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEGROUPS_API GroupQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetGroupName() const { return m_groupName; }
43 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
44 template <typename GroupNameT = Aws::String>
45 void SetGroupName(GroupNameT&& value) {
46 m_groupNameHasBeenSet = true;
47 m_groupName = std::forward<GroupNameT>(value);
48 }
49 template <typename GroupNameT = Aws::String>
50 GroupQuery& WithGroupName(GroupNameT&& value) {
51 SetGroupName(std::forward<GroupNameT>(value));
52 return *this;
53 }
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) {
65 m_resourceQueryHasBeenSet = true;
66 m_resourceQuery = std::forward<ResourceQueryT>(value);
67 }
68 template <typename ResourceQueryT = ResourceQuery>
69 GroupQuery& WithResourceQuery(ResourceQueryT&& value) {
70 SetResourceQuery(std::forward<ResourceQueryT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_groupName;
76
77 ResourceQuery m_resourceQuery;
78 bool m_groupNameHasBeenSet = false;
79 bool m_resourceQueryHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ResourceGroups
84} // namespace Aws
void SetResourceQuery(ResourceQueryT &&value)
Definition GroupQuery.h:64
GroupQuery & WithGroupName(GroupNameT &&value)
Definition GroupQuery.h:50
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetGroupName() const
Definition GroupQuery.h:42
void SetGroupName(GroupNameT &&value)
Definition GroupQuery.h:45
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:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue