AWS SDK for C++  1.9.156
AWS SDK for C++
ListTagsForResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DataSync
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
44 
48  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
49 
53  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
54 
58  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
59 
63  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
64 
68  inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
69 
73  inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
74 
78  inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
79 
80 
84  inline int GetMaxResults() const{ return m_maxResults; }
85 
89  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 
94  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
95 
99  inline ListTagsForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 
101 
106  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
107 
112  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
113 
118  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 
124  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
125 
130  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
131 
136  inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
137 
142  inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
143 
148  inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
149 
150  private:
151 
152  Aws::String m_resourceArn;
153  bool m_resourceArnHasBeenSet;
154 
155  int m_maxResults;
156  bool m_maxResultsHasBeenSet;
157 
158  Aws::String m_nextToken;
159  bool m_nextTokenHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace DataSync
164 } // namespace Aws
Aws::DataSync::Model::ListTagsForResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ListTagsForResourceRequest.h:48
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:73
Aws::DataSync::Model::ListTagsForResourceRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListTagsForResourceRequest.h:89
DataSyncRequest.h
Aws::DataSync::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:148
Aws::DataSync::Model::ListTagsForResourceRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListTagsForResourceRequest.h:94
Aws::DataSync::Model::ListTagsForResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ListTagsForResourceRequest.h:43
Aws::DataSync::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::DataSync::Model::ListTagsForResourceRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTagsForResourceRequest.h:112
Aws::DataSync::Model::ListTagsForResourceRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTagsForResourceRequest.h:106
Aws::DataSync::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:78
Aws::DataSync::Model::ListTagsForResourceRequest::WithMaxResults
ListTagsForResourceRequest & WithMaxResults(int value)
Definition: ListTagsForResourceRequest.h:99
Aws::DataSync::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:68
AWSString.h
Aws::DataSync::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:136
DataSync_EXPORTS.h
Aws::DataSync::Model::ListTagsForResourceRequest::WithNextToken
ListTagsForResourceRequest & WithNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:142
Aws::DataSync::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:53
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::ListTagsForResourceRequest::GetMaxResults
int GetMaxResults() const
Definition: ListTagsForResourceRequest.h:84
Aws::DataSync::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:25
Aws::DataSync::Model::ListTagsForResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTagsForResourceRequest.h:130
Aws::DataSync::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:33
Aws::DataSync::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:63
Aws::DataSync::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:58
Aws::DataSync::Model::ListTagsForResourceRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:118