AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupResourcesRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ResourceGroups
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_RESOURCEGROUPS_API GroupResourcesRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GroupResources"; }
32
33 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetGroup() const{ return m_group; }
42 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
43 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
44 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
45 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
46 inline GroupResourcesRequest& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
47 inline GroupResourcesRequest& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
48 inline GroupResourcesRequest& WithGroup(const char* value) { SetGroup(value); return *this;}
50
52
56 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
57 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
58 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
59 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
61 inline GroupResourcesRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
62 inline GroupResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
63 inline GroupResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
64 inline GroupResourcesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
66 private:
67
68 Aws::String m_group;
69 bool m_groupHasBeenSet = false;
70
71 Aws::Vector<Aws::String> m_resourceArns;
72 bool m_resourceArnsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ResourceGroups
77} // namespace Aws
GroupResourcesRequest & AddResourceArns(const Aws::String &value)
GroupResourcesRequest & AddResourceArns(const char *value)
GroupResourcesRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
GroupResourcesRequest & WithGroup(Aws::String &&value)
GroupResourcesRequest & AddResourceArns(Aws::String &&value)
GroupResourcesRequest & WithGroup(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GroupResourcesRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
GroupResourcesRequest & WithGroup(const char *value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector