AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UngroupResourcesRequest.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 UngroupResourcesRequest();
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 "UngroupResources"; }
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 UngroupResourcesRequest& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
47 inline UngroupResourcesRequest& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
48 inline UngroupResourcesRequest& 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 UngroupResourcesRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
62 inline UngroupResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
63 inline UngroupResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
64 inline UngroupResourcesRequest& 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
UngroupResourcesRequest & AddResourceArns(const char *value)
UngroupResourcesRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
UngroupResourcesRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
UngroupResourcesRequest & WithGroup(const Aws::String &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
UngroupResourcesRequest & AddResourceArns(Aws::String &&value)
UngroupResourcesRequest & WithGroup(const char *value)
UngroupResourcesRequest & AddResourceArns(const Aws::String &value)
const Aws::Vector< Aws::String > & GetResourceArns() const
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
UngroupResourcesRequest & WithGroup(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetResourceArns(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector