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 Lightsail
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 
41  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
42 
46  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
47 
51  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
52 
56  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
57 
61  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
62 
66  inline UntagResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
67 
71  inline UntagResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
72 
76  inline UntagResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
77 
78 
83  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
84 
89  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
90 
95  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
96 
101  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
102 
107  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
108 
113  inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
114 
119  inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
120 
125  inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
126 
127 
131  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
132 
136  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
137 
141  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
142 
146  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
147 
151  inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
152 
156  inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
157 
161  inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
162 
166  inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
167 
171  inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
172 
173  private:
174 
175  Aws::String m_resourceName;
176  bool m_resourceNameHasBeenSet;
177 
178  Aws::String m_resourceArn;
179  bool m_resourceArnHasBeenSet;
180 
181  Aws::Vector<Aws::String> m_tagKeys;
182  bool m_tagKeysHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace Lightsail
187 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:156
Aws::Lightsail::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:146
Aws::Lightsail::Model::UntagResourceRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: UntagResourceRequest.h:41
Aws::Lightsail::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:95
Aws::Lightsail::Model::UntagResourceRequest::WithResourceName
UntagResourceRequest & WithResourceName(const char *value)
Definition: UntagResourceRequest.h:76
Aws::Lightsail::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const char *value)
Definition: UntagResourceRequest.h:125
Aws::Lightsail::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: UntagResourceRequest.h:107
Aws::Lightsail::Model::UntagResourceRequest::WithResourceName
UntagResourceRequest & WithResourceName(const Aws::String &value)
Definition: UntagResourceRequest.h:66
Aws::Lightsail::Model::UntagResourceRequest::WithTagKeys
UntagResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:151
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::UntagResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: UntagResourceRequest.h:83
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::UntagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:23
Aws::Lightsail::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const Aws::String &value)
Definition: UntagResourceRequest.h:161
Aws::Lightsail::Model::UntagResourceRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: UntagResourceRequest.h:56
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:101
AWSString.h
Aws::Lightsail::Model::UntagResourceRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: UntagResourceRequest.h:46
Aws::Lightsail::Model::UntagResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: UntagResourceRequest.h:136
Aws::Lightsail::Model::UntagResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: UntagResourceRequest.h:89
Lightsail_EXPORTS.h
Aws::Lightsail::Model::UntagResourceRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: UntagResourceRequest.h:51
Aws::Lightsail::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(Aws::String &&value)
Definition: UntagResourceRequest.h:166
Aws::Lightsail::Model::UntagResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: UntagResourceRequest.h:131
Aws::Lightsail::Model::UntagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::UntagResourceRequest::AddTagKeys
UntagResourceRequest & AddTagKeys(const char *value)
Definition: UntagResourceRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::UntagResourceRequest::SetResourceName
void SetResourceName(const char *value)
Definition: UntagResourceRequest.h:61
Aws::Lightsail::Model::UntagResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:141
Aws::Lightsail::Model::UntagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagResourceRequest.h:31
Aws::Lightsail::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:119
Aws::Lightsail::Model::UntagResourceRequest::UntagResourceRequest
UntagResourceRequest()
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::UntagResourceRequest::WithResourceName
UntagResourceRequest & WithResourceName(Aws::String &&value)
Definition: UntagResourceRequest.h:71
Aws::Lightsail::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:113