AWS SDK for C++  1.9.22
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 Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoTSiteWise
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 
46  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
47 
53  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 
60  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
61 
67  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
68 
74  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
75 
81  inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
82 
88  inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
89 
95  inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
96 
97  private:
98 
99  Aws::String m_resourceArn;
100  bool m_resourceArnHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace IoTSiteWise
105 } // namespace Aws
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:81
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::ListTagsForResourceRequest
ListTagsForResourceRequest()
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ListTagsForResourceRequest.h:53
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:88
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResourceRequest.h:34
AWSString.h
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ListTagsForResourceRequest.h:60
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ListTagsForResourceRequest.h:46
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:74
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ListTagsForResourceRequest.h:67
Aws
Definition: AccessManagementClient.h:15
IoTSiteWiseRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::IoTSiteWiseRequest
Definition: IoTSiteWiseRequest.h:17
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoTSiteWise::Model::ListTagsForResourceRequest
Definition: ListTagsForResourceRequest.h:26
Aws::IoTSiteWise::Model::ListTagsForResourceRequest::WithResourceArn
ListTagsForResourceRequest & WithResourceArn(const char *value)
Definition: ListTagsForResourceRequest.h:95