AWS SDK for C++  1.9.109
AWS SDK for C++
ListTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
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 "ListTagsForResource"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
45 
49  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 
54  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
55 
59  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
60 
64  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 
69  inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
70 
74  inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
75 
79  inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
80 
81 
87  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
88 
94  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 
101  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
102 
108  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
109 
115  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
116 
122  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
123 
129  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
130 
136  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
137 
138  private:
139 
140  Aws::String m_resourceArn;
141  bool m_resourceArnHasBeenSet;
142 
143  Aws::String m_nextToken;
144  bool m_nextTokenHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
Aws::IoT::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:34
Aws::IoT::Model::ListTagsForResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ListTagsForResourceRequest.h:44
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:108
Aws::IoT::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:59
Aws::IoT::Model::ListTagsForResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ListTagsForResourceRequest.h:49
Aws::IoT::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:115
Aws::IoT::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:79
Aws::IoT::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:26
Aws::IoT::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:87
AWSString.h
Aws::IoT::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:69
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:64
Aws::IoT::Model::ListTagsForResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:136
Aws::IoT::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:54
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
IoTRequest.h
Aws::IoT::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:129
Aws::IoT::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:122
Aws::IoT::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:101
Aws::IoT::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:74
IoT_EXPORTS.h