AWS SDK for C++  1.9.155
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 Http
16 {
17  class URI;
18 } //namespace Http
19 namespace Amplify
20 {
21 namespace Model
22 {
23 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
49  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
50 
54  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
55 
59  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
60 
64  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
65 
69  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
70 
74  inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
75 
79  inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
80 
84  inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
85 
86 
90  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
91 
95  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
96 
100  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
101 
105  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
106 
110  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
111 
115  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
116 
120  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
121 
125  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
126 
130  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
131 
132  private:
133 
134  Aws::String m_resourceArn;
135  bool m_resourceArnHasBeenSet;
136 
137  Aws::Vector<Aws::String> m_tagKeys;
138  bool m_tagKeysHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace Amplify
143 } // namespace Aws
Amplify_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::Amplify::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:74
Aws::Amplify::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const char *value)
Definition: UntagResourceRequest.h:130
Aws::Amplify::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:105
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Amplify::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:59
Aws::Amplify::Model::UntagResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: UntagResourceRequest.h:49
AWSVector.h
Aws::Amplify::Model::UntagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagResourceRequest.h:39
AmplifyRequest.h
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(Aws::String &&value)
Definition: UntagResourceRequest.h:125
Aws::Amplify::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:100
Aws::Amplify::Model::UntagResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: UntagResourceRequest.h:95
Aws::Amplify::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: UntagResourceRequest.h:69
Aws::Amplify::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:64
AWSString.h
Aws::Amplify::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const char *value)
Definition: UntagResourceRequest.h:84
Aws::Amplify::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:110
Aws::Amplify::Model::UntagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::UntagResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: UntagResourceRequest.h:54
Aws::Amplify::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::UntagResourceRequest::UntagResourceRequest
UntagResourceRequest()
Aws::Amplify::Model::UntagResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: UntagResourceRequest.h:90
Aws::Amplify::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const Aws::String &value)
Definition: UntagResourceRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::UntagResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Amplify::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:115
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:31