AWS SDK for C++  1.9.17
AWS SDK for C++
TagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace AppMesh
21 {
22 namespace Model
23 {
24 
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 "TagResource"; }
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 TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
75 
79  inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
80 
84  inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
85 
86 
92  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
93 
99  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 
106  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 
113  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
114 
120  inline TagResourceRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
121 
127  inline TagResourceRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
128 
134  inline TagResourceRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
135 
141  inline TagResourceRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
142 
143  private:
144 
145  Aws::String m_resourceArn;
146  bool m_resourceArnHasBeenSet;
147 
148  Aws::Vector<TagRef> m_tags;
149  bool m_tagsHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace AppMesh
154 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::TagResourceRequest
Definition: TagResourceRequest.h:31
Aws::AppMesh::Model::TagResourceRequest::WithResourceArn
TagResourceRequest & WithResourceArn(Aws::String &&value)
Definition: TagResourceRequest.h:79
TagRef.h
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::AppMesh::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(TagRef &&value)
Definition: TagResourceRequest.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::TagResourceRequest::WithResourceArn
TagResourceRequest & WithResourceArn(const char *value)
Definition: TagResourceRequest.h:84
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::TagResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: TagResourceRequest.h:64
Aws::AppMesh::Model::TagResourceRequest::GetTags
const Aws::Vector< TagRef > & GetTags() const
Definition: TagResourceRequest.h:92
Aws::AppMesh::Model::TagResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: TagResourceRequest.h:54
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::TagResourceRequest::AddTags
TagResourceRequest & AddTags(const TagRef &value)
Definition: TagResourceRequest.h:134
AWSString.h
Aws::AppMesh::Model::TagResourceRequest::WithResourceArn
TagResourceRequest & WithResourceArn(const Aws::String &value)
Definition: TagResourceRequest.h:74
Aws::AppMesh::Model::TagResourceRequest::SetTags
void SetTags(const Aws::Vector< TagRef > &value)
Definition: TagResourceRequest.h:106
Aws::AppMesh::Model::TagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::TagResourceRequest::SetTags
void SetTags(Aws::Vector< TagRef > &&value)
Definition: TagResourceRequest.h:113
Aws::AppMesh::Model::TagResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: TagResourceRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::TagResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: TagResourceRequest.h:49
Aws::AppMesh::Model::TagResourceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: TagResourceRequest.h:99
Aws::AppMesh::Model::TagResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: TagResourceRequest.h:59
Aws::AppMesh::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(const Aws::Vector< TagRef > &value)
Definition: TagResourceRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::TagResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AppMesh::Model::TagResourceRequest::TagResourceRequest
TagResourceRequest()
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::TagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TagResourceRequest.h:39
Aws::AppMesh::Model::TagResourceRequest::WithTags
TagResourceRequest & WithTags(Aws::Vector< TagRef > &&value)
Definition: TagResourceRequest.h:127
AppMeshRequest.h