AWS SDK for C++  1.9.109
AWS SDK for C++
RemoveTagsFromResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace StorageGateway
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "RemoveTagsFromResource"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
46 
51  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
52 
57  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
58 
63  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
64 
69  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
70 
75  inline RemoveTagsFromResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
76 
81  inline RemoveTagsFromResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
82 
87  inline RemoveTagsFromResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
88 
89 
94  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
95 
100  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
101 
106  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
107 
112  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
113 
118  inline RemoveTagsFromResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
119 
124  inline RemoveTagsFromResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
125 
130  inline RemoveTagsFromResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
131 
136  inline RemoveTagsFromResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
137 
142  inline RemoveTagsFromResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
143 
144  private:
145 
146  Aws::String m_resourceARN;
147  bool m_resourceARNHasBeenSet;
148 
149  Aws::Vector<Aws::String> m_tagKeys;
150  bool m_tagKeysHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace StorageGateway
155 } // namespace Aws
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:130
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(const char *value)
Definition: RemoveTagsFromResourceRequest.h:142
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:106
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: RemoveTagsFromResourceRequest.h:118
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:57
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::RemoveTagsFromResourceRequest
RemoveTagsFromResourceRequest()
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveTagsFromResourceRequest.h:34
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::WithResourceARN
RemoveTagsFromResourceRequest & WithResourceARN(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:81
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::WithResourceARN
RemoveTagsFromResourceRequest & WithResourceARN(const char *value)
Definition: RemoveTagsFromResourceRequest.h:87
StorageGatewayRequest.h
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::GetResourceARN
const Aws::String & GetResourceARN() const
Definition: RemoveTagsFromResourceRequest.h:45
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest
Definition: RemoveTagsFromResourceRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:51
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: RemoveTagsFromResourceRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::SetResourceARN
void SetResourceARN(const char *value)
Definition: RemoveTagsFromResourceRequest.h:69
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::WithTagKeys
RemoveTagsFromResourceRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: RemoveTagsFromResourceRequest.h:124
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: RemoveTagsFromResourceRequest.h:100
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::AddTagKeys
RemoveTagsFromResourceRequest & AddTagKeys(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:136
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition: RemoveTagsFromResourceRequest.h:63
Aws::StorageGateway::Model::RemoveTagsFromResourceRequest::WithResourceARN
RemoveTagsFromResourceRequest & WithResourceARN(const Aws::String &value)
Definition: RemoveTagsFromResourceRequest.h:75