AWS SDK for C++  1.9.20
AWS SDK for C++
ListTagsForResource2020_05_31Request.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 CloudFront
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetResource() const{ return m_resource; }
49 
53  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
54 
58  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
59 
63  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
64 
68  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
69 
73  inline ListTagsForResource2020_05_31Request& WithResource(const Aws::String& value) { SetResource(value); return *this;}
74 
78  inline ListTagsForResource2020_05_31Request& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
79 
83  inline ListTagsForResource2020_05_31Request& WithResource(const char* value) { SetResource(value); return *this;}
84 
85  private:
86 
87  Aws::String m_resource;
88  bool m_resourceHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace CloudFront
93 } // namespace Aws
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::WithResource
ListTagsForResource2020_05_31Request & WithResource(const char *value)
Definition: ListTagsForResource2020_05_31Request.h:83
Aws::Http::URI
Definition: URI.h:32
CloudFrontRequest.h
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::ListTagsForResource2020_05_31Request
ListTagsForResource2020_05_31Request()
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::SetResource
void SetResource(const Aws::String &value)
Definition: ListTagsForResource2020_05_31Request.h:58
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::WithResource
ListTagsForResource2020_05_31Request & WithResource(Aws::String &&value)
Definition: ListTagsForResource2020_05_31Request.h:78
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::WithResource
ListTagsForResource2020_05_31Request & WithResource(const Aws::String &value)
Definition: ListTagsForResource2020_05_31Request.h:73
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::GetResource
const Aws::String & GetResource() const
Definition: ListTagsForResource2020_05_31Request.h:48
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request
Definition: ListTagsForResource2020_05_31Request.h:30
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: ListTagsForResource2020_05_31Request.h:53
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTagsForResource2020_05_31Request.h:38
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::SetResource
void SetResource(Aws::String &&value)
Definition: ListTagsForResource2020_05_31Request.h:63
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::SetResource
void SetResource(const char *value)
Definition: ListTagsForResource2020_05_31Request.h:68
Aws::CloudFront::Model::ListTagsForResource2020_05_31Request::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override