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/cloud9/Cloud9_EXPORTS.h> 8 #include <aws/cloud9/Cloud9Request.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Cloud9 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_CLOUD9_API ListTagsForResourceRequest : public Cloud9Request 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 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 39 * the tags for.</p> 40 */ GetResourceARN()41 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; } 42 43 /** 44 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 45 * the tags for.</p> 46 */ ResourceARNHasBeenSet()47 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; } 48 49 /** 50 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 51 * the tags for.</p> 52 */ SetResourceARN(const Aws::String & value)53 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; } 54 55 /** 56 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 57 * the tags for.</p> 58 */ SetResourceARN(Aws::String && value)59 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); } 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 63 * the tags for.</p> 64 */ SetResourceARN(const char * value)65 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); } 66 67 /** 68 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 69 * the tags for.</p> 70 */ WithResourceARN(const Aws::String & value)71 inline ListTagsForResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;} 72 73 /** 74 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 75 * the tags for.</p> 76 */ WithResourceARN(Aws::String && value)77 inline ListTagsForResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;} 78 79 /** 80 * <p>The Amazon Resource Name (ARN) of the Cloud9 development environment to get 81 * the tags for.</p> 82 */ WithResourceARN(const char * value)83 inline ListTagsForResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;} 84 85 private: 86 87 Aws::String m_resourceARN; 88 bool m_resourceARNHasBeenSet; 89 }; 90 91 } // namespace Model 92 } // namespace Cloud9 93 } // namespace Aws 94