AWS SDK for C++  1.9.66
AWS SDK for C++
UngroupResourcesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ResourceGroups
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetGroup() const{ return m_group; }
41 
46  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
47 
52  inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
53 
58  inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
59 
64  inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
65 
70  inline UngroupResourcesRequest& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
71 
76  inline UngroupResourcesRequest& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
77 
82  inline UngroupResourcesRequest& WithGroup(const char* value) { SetGroup(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
89 
93  inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
94 
98  inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
99 
103  inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
104 
108  inline UngroupResourcesRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
109 
113  inline UngroupResourcesRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
114 
118  inline UngroupResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
119 
123  inline UngroupResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
124 
128  inline UngroupResourcesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
129 
130  private:
131 
132  Aws::String m_group;
133  bool m_groupHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_resourceArns;
136  bool m_resourceArnsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace ResourceGroups
141 } // namespace Aws
Aws::ResourceGroups::Model::UngroupResourcesRequest::GetGroup
const Aws::String & GetGroup() const
Definition: UngroupResourcesRequest.h:40
Aws::ResourceGroups::Model::UngroupResourcesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ResourceGroups::Model::UngroupResourcesRequest::WithGroup
UngroupResourcesRequest & WithGroup(const char *value)
Definition: UngroupResourcesRequest.h:82
Aws::ResourceGroups::Model::UngroupResourcesRequest::SetResourceArns
void SetResourceArns(Aws::Vector< Aws::String > &&value)
Definition: UngroupResourcesRequest.h:103
Aws::ResourceGroups::Model::UngroupResourcesRequest::WithGroup
UngroupResourcesRequest & WithGroup(const Aws::String &value)
Definition: UngroupResourcesRequest.h:70
Aws::ResourceGroups::Model::UngroupResourcesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UngroupResourcesRequest.h:31
Aws::ResourceGroups::Model::UngroupResourcesRequest
Definition: UngroupResourcesRequest.h:23
Aws::ResourceGroups::Model::UngroupResourcesRequest::ResourceArnsHasBeenSet
bool ResourceArnsHasBeenSet() const
Definition: UngroupResourcesRequest.h:93
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ResourceGroups::Model::UngroupResourcesRequest::SetResourceArns
void SetResourceArns(const Aws::Vector< Aws::String > &value)
Definition: UngroupResourcesRequest.h:98
Aws::ResourceGroups::Model::UngroupResourcesRequest::AddResourceArns
UngroupResourcesRequest & AddResourceArns(const Aws::String &value)
Definition: UngroupResourcesRequest.h:118
Aws::ResourceGroups::ResourceGroupsRequest
Definition: ResourceGroupsRequest.h:17
Aws::ResourceGroups::Model::UngroupResourcesRequest::AddResourceArns
UngroupResourcesRequest & AddResourceArns(const char *value)
Definition: UngroupResourcesRequest.h:128
Aws::ResourceGroups::Model::UngroupResourcesRequest::UngroupResourcesRequest
UngroupResourcesRequest()
Aws::ResourceGroups::Model::UngroupResourcesRequest::WithResourceArns
UngroupResourcesRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
Definition: UngroupResourcesRequest.h:108
AWSString.h
Aws::ResourceGroups::Model::UngroupResourcesRequest::SetGroup
void SetGroup(const Aws::String &value)
Definition: UngroupResourcesRequest.h:52
Aws::ResourceGroups::Model::UngroupResourcesRequest::SetGroup
void SetGroup(Aws::String &&value)
Definition: UngroupResourcesRequest.h:58
Aws::ResourceGroups::Model::UngroupResourcesRequest::WithResourceArns
UngroupResourcesRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
Definition: UngroupResourcesRequest.h:113
ResourceGroupsRequest.h
Aws
Definition: AccessManagementClient.h:15
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::UngroupResourcesRequest::GetResourceArns
const Aws::Vector< Aws::String > & GetResourceArns() const
Definition: UngroupResourcesRequest.h:88
Aws::ResourceGroups::Model::UngroupResourcesRequest::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: UngroupResourcesRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::UngroupResourcesRequest::AddResourceArns
UngroupResourcesRequest & AddResourceArns(Aws::String &&value)
Definition: UngroupResourcesRequest.h:123
Aws::ResourceGroups::Model::UngroupResourcesRequest::SetGroup
void SetGroup(const char *value)
Definition: UngroupResourcesRequest.h:64
Aws::ResourceGroups::Model::UngroupResourcesRequest::WithGroup
UngroupResourcesRequest & WithGroup(Aws::String &&value)
Definition: UngroupResourcesRequest.h:76