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/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SNS
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_SNS_API ListTagsForResourceRequest : public SNSRequest
22   {
23   public:
24     ListTagsForResourceRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
31 
32     Aws::String SerializePayload() const override;
33 
34   protected:
35     void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37   public:
38 
39     /**
40      * <p>The ARN of the topic for which to list tags.</p>
41      */
GetResourceArn()42     inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
43 
44     /**
45      * <p>The ARN of the topic for which to list tags.</p>
46      */
ResourceArnHasBeenSet()47     inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 
49     /**
50      * <p>The ARN of the topic for which to list tags.</p>
51      */
SetResourceArn(const Aws::String & value)52     inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
53 
54     /**
55      * <p>The ARN of the topic for which to list tags.</p>
56      */
SetResourceArn(Aws::String && value)57     inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
58 
59     /**
60      * <p>The ARN of the topic for which to list tags.</p>
61      */
SetResourceArn(const char * value)62     inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
63 
64     /**
65      * <p>The ARN of the topic for which to list tags.</p>
66      */
WithResourceArn(const Aws::String & value)67     inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
68 
69     /**
70      * <p>The ARN of the topic for which to list tags.</p>
71      */
WithResourceArn(Aws::String && value)72     inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
73 
74     /**
75      * <p>The ARN of the topic for which to list tags.</p>
76      */
WithResourceArn(const char * value)77     inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
78 
79   private:
80 
81     Aws::String m_resourceArn;
82     bool m_resourceArnHasBeenSet;
83   };
84 
85 } // namespace Model
86 } // namespace SNS
87 } // namespace Aws
88