AWS SDK for C++  1.9.105
AWS SDK for C++
UntagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Organizations
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 "UntagResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
49  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
50 
62  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 
75  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
76 
88  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
89 
101  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
102 
114  inline UntagResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
115 
127  inline UntagResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
128 
140  inline UntagResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
141 
142 
146  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
147 
151  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
152 
156  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
157 
161  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
162 
166  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
167 
171  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
172 
176  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
177 
181  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
182 
186  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
187 
188  private:
189 
190  Aws::String m_resourceId;
191  bool m_resourceIdHasBeenSet;
192 
193  Aws::Vector<Aws::String> m_tagKeys;
194  bool m_tagKeysHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace Organizations
199 } // namespace Aws
Aws::Organizations::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:156
Aws::Organizations::Model::UntagResourceRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: UntagResourceRequest.h:62
Aws::Organizations::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(Aws::String &&value)
Definition: UntagResourceRequest.h:181
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const char *value)
Definition: UntagResourceRequest.h:186
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::UntagResourceRequest::UntagResourceRequest
UntagResourceRequest()
Aws::Organizations::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:161
AWSVector.h
Aws::Organizations::Model::UntagResourceRequest::WithResourceId
UntagResourceRequest & WithResourceId(Aws::String &&value)
Definition: UntagResourceRequest.h:127
Aws::Organizations::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:171
Aws::Organizations::Model::UntagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::UntagResourceRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: UntagResourceRequest.h:75
Aws::Organizations::Model::UntagResourceRequest::WithResourceId
UntagResourceRequest & WithResourceId(const char *value)
Definition: UntagResourceRequest.h:140
Aws::Organizations::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const Aws::String &value)
Definition: UntagResourceRequest.h:176
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::UntagResourceRequest::WithResourceId
UntagResourceRequest & WithResourceId(const Aws::String &value)
Definition: UntagResourceRequest.h:114
Aws::Organizations::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:166
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::UntagResourceRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: UntagResourceRequest.h:88
Aws::Organizations::Model::UntagResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: UntagResourceRequest.h:151
AWSString.h
Aws::Organizations::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:23
Aws::Organizations::Model::UntagResourceRequest::SetResourceId
void SetResourceId(const char *value)
Definition: UntagResourceRequest.h:101
Aws::Organizations::Model::UntagResourceRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: UntagResourceRequest.h:49
Aws::Organizations::Model::UntagResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: UntagResourceRequest.h:146
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::UntagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::UntagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagResourceRequest.h:31
OrganizationsRequest.h