1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/cloudfront/CloudFront_EXPORTS.h>
8 #include <aws/cloudfront/CloudFrontRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
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 
23   /**
24    * <p> The request to list tags for a CloudFront resource.</p><p><h3>See Also:</h3>
25    * <a
26    * href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResourceRequest">AWS
27    * API Reference</a></p>
28    */
29   class AWS_CLOUDFRONT_API ListTagsForResource2020_05_31Request : public CloudFrontRequest
30   {
31   public:
32     ListTagsForResource2020_05_31Request();
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.
GetServiceRequestName()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 
45     /**
46      * <p> An ARN of a CloudFront resource.</p>
47      */
GetResource()48     inline const Aws::String& GetResource() const{ return m_resource; }
49 
50     /**
51      * <p> An ARN of a CloudFront resource.</p>
52      */
ResourceHasBeenSet()53     inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
54 
55     /**
56      * <p> An ARN of a CloudFront resource.</p>
57      */
SetResource(const Aws::String & value)58     inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
59 
60     /**
61      * <p> An ARN of a CloudFront resource.</p>
62      */
SetResource(Aws::String && value)63     inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
64 
65     /**
66      * <p> An ARN of a CloudFront resource.</p>
67      */
SetResource(const char * value)68     inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
69 
70     /**
71      * <p> An ARN of a CloudFront resource.</p>
72      */
WithResource(const Aws::String & value)73     inline ListTagsForResource2020_05_31Request& WithResource(const Aws::String& value) { SetResource(value); return *this;}
74 
75     /**
76      * <p> An ARN of a CloudFront resource.</p>
77      */
WithResource(Aws::String && value)78     inline ListTagsForResource2020_05_31Request& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
79 
80     /**
81      * <p> An ARN of a CloudFront resource.</p>
82      */
WithResource(const char * value)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
94