AWS SDK for C++  1.9.106
AWS SDK for C++
AddTagsToResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AddTagsToResource"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
46 
50  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
51 
55  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
56 
60  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
61 
65  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
66 
70  inline AddTagsToResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
71 
75  inline AddTagsToResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
76 
80  inline AddTagsToResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
81 
82 
90  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 
99  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 
108  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
109 
117  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
118 
126  inline AddTagsToResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
127 
135  inline AddTagsToResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
136 
144  inline AddTagsToResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
145 
153  inline AddTagsToResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
154 
155  private:
156 
157  Aws::String m_resourceARN;
158  bool m_resourceARNHasBeenSet;
159 
160  Aws::Vector<Tag> m_tags;
161  bool m_tagsHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace StorageGateway
166 } // namespace Aws
Aws::StorageGateway::Model::AddTagsToResourceRequest::WithTags
AddTagsToResourceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToResourceRequest.h:135
Aws::StorageGateway::Model::AddTagsToResourceRequest::WithResourceARN
AddTagsToResourceRequest & WithResourceARN(const char *value)
Definition: AddTagsToResourceRequest.h:80
Aws::StorageGateway::Model::AddTagsToResourceRequest
Definition: AddTagsToResourceRequest.h:27
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::AddTagsToResourceRequest::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition: AddTagsToResourceRequest.h:50
Aws::StorageGateway::Model::AddTagsToResourceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToResourceRequest.h:117
Aws::StorageGateway::Model::AddTagsToResourceRequest::WithResourceARN
AddTagsToResourceRequest & WithResourceARN(const Aws::String &value)
Definition: AddTagsToResourceRequest.h:70
Aws::StorageGateway::Model::AddTagsToResourceRequest::SetResourceARN
void SetResourceARN(const char *value)
Definition: AddTagsToResourceRequest.h:65
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::AddTagsToResourceRequest::GetResourceARN
const Aws::String & GetResourceARN() const
Definition: AddTagsToResourceRequest.h:45
AWSVector.h
Aws::StorageGateway::Model::AddTagsToResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsToResourceRequest.h:35
Aws::StorageGateway::Model::AddTagsToResourceRequest::AddTagsToResourceRequest
AddTagsToResourceRequest()
Aws::StorageGateway::Model::AddTagsToResourceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToResourceRequest.h:108
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AddTagsToResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::AddTagsToResourceRequest::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition: AddTagsToResourceRequest.h:55
Aws::StorageGateway::Model::AddTagsToResourceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsToResourceRequest.h:90
Aws::StorageGateway::Model::AddTagsToResourceRequest::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition: AddTagsToResourceRequest.h:60
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::AddTagsToResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Tag.h
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::AddTagsToResourceRequest::WithTags
AddTagsToResourceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToResourceRequest.h:126
Aws::StorageGateway::Model::AddTagsToResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsToResourceRequest.h:99
Aws::StorageGateway::Model::AddTagsToResourceRequest::AddTags
AddTagsToResourceRequest & AddTags(const Tag &value)
Definition: AddTagsToResourceRequest.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AddTagsToResourceRequest::WithResourceARN
AddTagsToResourceRequest & WithResourceARN(Aws::String &&value)
Definition: AddTagsToResourceRequest.h:75
Aws::StorageGateway::Model::AddTagsToResourceRequest::AddTags
AddTagsToResourceRequest & AddTags(Tag &&value)
Definition: AddTagsToResourceRequest.h:153