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/comprehend/Comprehend_EXPORTS.h> 8 #include <aws/comprehend/ComprehendRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/core/utils/memory/stl/AWSVector.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Comprehend 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_COMPREHEND_API UntagResourceRequest : public ComprehendRequest 23 { 24 public: 25 UntagResourceRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 40 * which you want to remove the tags. </p> 41 */ GetResourceArn()42 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } 43 44 /** 45 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 46 * which you want to remove the tags. </p> 47 */ ResourceArnHasBeenSet()48 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } 49 50 /** 51 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 52 * which you want to remove the tags. </p> 53 */ SetResourceArn(const Aws::String & value)54 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } 55 56 /** 57 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 58 * which you want to remove the tags. </p> 59 */ SetResourceArn(Aws::String && value)60 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } 61 62 /** 63 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 64 * which you want to remove the tags. </p> 65 */ SetResourceArn(const char * value)66 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } 67 68 /** 69 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 70 * which you want to remove the tags. </p> 71 */ WithResourceArn(const Aws::String & value)72 inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} 73 74 /** 75 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 76 * which you want to remove the tags. </p> 77 */ WithResourceArn(Aws::String && value)78 inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} 79 80 /** 81 * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from 82 * which you want to remove the tags. </p> 83 */ WithResourceArn(const char * value)84 inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} 85 86 87 /** 88 * <p>The initial part of a key-value pair that forms a tag being removed from a 89 * given resource. For example, a tag with "Sales" as the key might be added to a 90 * resource to indicate its use by the sales department. Keys must be unique and 91 * cannot be duplicated for a particular resource. </p> 92 */ GetTagKeys()93 inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; } 94 95 /** 96 * <p>The initial part of a key-value pair that forms a tag being removed from a 97 * given resource. For example, a tag with "Sales" as the key might be added to a 98 * resource to indicate its use by the sales department. Keys must be unique and 99 * cannot be duplicated for a particular resource. </p> 100 */ TagKeysHasBeenSet()101 inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } 102 103 /** 104 * <p>The initial part of a key-value pair that forms a tag being removed from a 105 * given resource. For example, a tag with "Sales" as the key might be added to a 106 * resource to indicate its use by the sales department. Keys must be unique and 107 * cannot be duplicated for a particular resource. </p> 108 */ SetTagKeys(const Aws::Vector<Aws::String> & value)109 inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } 110 111 /** 112 * <p>The initial part of a key-value pair that forms a tag being removed from a 113 * given resource. For example, a tag with "Sales" as the key might be added to a 114 * resource to indicate its use by the sales department. Keys must be unique and 115 * cannot be duplicated for a particular resource. </p> 116 */ SetTagKeys(Aws::Vector<Aws::String> && value)117 inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } 118 119 /** 120 * <p>The initial part of a key-value pair that forms a tag being removed from a 121 * given resource. For example, a tag with "Sales" as the key might be added to a 122 * resource to indicate its use by the sales department. Keys must be unique and 123 * cannot be duplicated for a particular resource. </p> 124 */ WithTagKeys(const Aws::Vector<Aws::String> & value)125 inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;} 126 127 /** 128 * <p>The initial part of a key-value pair that forms a tag being removed from a 129 * given resource. For example, a tag with "Sales" as the key might be added to a 130 * resource to indicate its use by the sales department. Keys must be unique and 131 * cannot be duplicated for a particular resource. </p> 132 */ WithTagKeys(Aws::Vector<Aws::String> && value)133 inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;} 134 135 /** 136 * <p>The initial part of a key-value pair that forms a tag being removed from a 137 * given resource. For example, a tag with "Sales" as the key might be added to a 138 * resource to indicate its use by the sales department. Keys must be unique and 139 * cannot be duplicated for a particular resource. </p> 140 */ AddTagKeys(const Aws::String & value)141 inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } 142 143 /** 144 * <p>The initial part of a key-value pair that forms a tag being removed from a 145 * given resource. For example, a tag with "Sales" as the key might be added to a 146 * resource to indicate its use by the sales department. Keys must be unique and 147 * cannot be duplicated for a particular resource. </p> 148 */ AddTagKeys(Aws::String && value)149 inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } 150 151 /** 152 * <p>The initial part of a key-value pair that forms a tag being removed from a 153 * given resource. For example, a tag with "Sales" as the key might be added to a 154 * resource to indicate its use by the sales department. Keys must be unique and 155 * cannot be duplicated for a particular resource. </p> 156 */ AddTagKeys(const char * value)157 inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } 158 159 private: 160 161 Aws::String m_resourceArn; 162 bool m_resourceArnHasBeenSet; 163 164 Aws::Vector<Aws::String> m_tagKeys; 165 bool m_tagKeysHasBeenSet; 166 }; 167 168 } // namespace Model 169 } // namespace Comprehend 170 } // namespace Aws 171