AWS SDK for C++  1.9.40
AWS SDK for C++
ListTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/xray/XRayRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace XRay
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
39 
43  inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
44 
48  inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
49 
53  inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
54 
58  inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
59 
63  inline ListTagsForResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
64 
68  inline ListTagsForResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
69 
73  inline ListTagsForResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
74 
75 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
88  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 
95  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 
102  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
103 
109  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
110 
116  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
123  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
124 
130  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
131 
132  private:
133 
134  Aws::String m_resourceARN;
135  bool m_resourceARNHasBeenSet;
136 
137  Aws::String m_nextToken;
138  bool m_nextTokenHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace XRay
143 } // namespace Aws
Aws::XRay::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:22
Aws::XRay::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:109
Aws::XRay::Model::ListTagsForResourceRequest::GetResourceARN
const Aws::String & GetResourceARN() const
Definition: ListTagsForResourceRequest.h:38
Aws::XRay::Model::ListTagsForResourceRequest::SetResourceARN
void SetResourceARN(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:48
Aws::XRay::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:30
Aws::XRay::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:102
Aws::XRay::Model::ListTagsForResourceRequest::WithResourceARN
ListTagsForResourceRequest & WithResourceARN(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:63
XRayRequest.h
Aws::XRay::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:123
Aws::XRay::Model::ListTagsForResourceRequest::WithResourceARN
ListTagsForResourceRequest & WithResourceARN(const char *value)
Definition: ListTagsForResourceRequest.h:73
Aws::XRay::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:95
Aws::XRay::Model::ListTagsForResourceRequest::SetResourceARN
void SetResourceARN(const char *value)
Definition: ListTagsForResourceRequest.h:58
Aws::XRay::XRayRequest
Definition: XRayRequest.h:17
AWSString.h
XRay_EXPORTS.h
Aws::XRay::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:130
Aws::XRay::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_XRAY_API
#define AWS_XRAY_API
Definition: XRay_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::XRay::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::XRay::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::XRay::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:116
Aws::XRay::Model::ListTagsForResourceRequest::ResourceARNHasBeenSet
bool ResourceARNHasBeenSet() const
Definition: ListTagsForResourceRequest.h:43
Aws::XRay::Model::ListTagsForResourceRequest::SetResourceARN
void SetResourceARN(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:53
Aws::XRay::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:81
Aws::XRay::Model::ListTagsForResourceRequest::WithResourceARN
ListTagsForResourceRequest & WithResourceARN(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:68