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/license-manager/LicenseManager_EXPORTS.h> 8 #include <aws/license-manager/LicenseManagerRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/license-manager/model/LicenseConversionContext.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace LicenseManager 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_LICENSEMANAGER_API CreateLicenseConversionTaskForResourceRequest : public LicenseManagerRequest 23 { 24 public: 25 CreateLicenseConversionTaskForResourceRequest(); 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 "CreateLicenseConversionTaskForResource"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>Amazon Resource Name (ARN) of the resource you are converting the license 40 * type for.</p> 41 */ GetResourceArn()42 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } 43 44 /** 45 * <p>Amazon Resource Name (ARN) of the resource you are converting the license 46 * type for.</p> 47 */ ResourceArnHasBeenSet()48 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } 49 50 /** 51 * <p>Amazon Resource Name (ARN) of the resource you are converting the license 52 * type for.</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>Amazon Resource Name (ARN) of the resource you are converting the license 58 * type for.</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>Amazon Resource Name (ARN) of the resource you are converting the license 64 * type for.</p> 65 */ SetResourceArn(const char * value)66 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } 67 68 /** 69 * <p>Amazon Resource Name (ARN) of the resource you are converting the license 70 * type for.</p> 71 */ WithResourceArn(const Aws::String & value)72 inline CreateLicenseConversionTaskForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} 73 74 /** 75 * <p>Amazon Resource Name (ARN) of the resource you are converting the license 76 * type for.</p> 77 */ WithResourceArn(Aws::String && value)78 inline CreateLicenseConversionTaskForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} 79 80 /** 81 * <p>Amazon Resource Name (ARN) of the resource you are converting the license 82 * type for.</p> 83 */ WithResourceArn(const char * value)84 inline CreateLicenseConversionTaskForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} 85 86 87 /** 88 * <p>Information that identifies the license type you are converting from. For the 89 * structure of the source license, see <a 90 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 91 * a license type using the AWS CLI</a> in the <i>License Manager User 92 * Guide</i>.</p> 93 */ GetSourceLicenseContext()94 inline const LicenseConversionContext& GetSourceLicenseContext() const{ return m_sourceLicenseContext; } 95 96 /** 97 * <p>Information that identifies the license type you are converting from. For the 98 * structure of the source license, see <a 99 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 100 * a license type using the AWS CLI</a> in the <i>License Manager User 101 * Guide</i>.</p> 102 */ SourceLicenseContextHasBeenSet()103 inline bool SourceLicenseContextHasBeenSet() const { return m_sourceLicenseContextHasBeenSet; } 104 105 /** 106 * <p>Information that identifies the license type you are converting from. For the 107 * structure of the source license, see <a 108 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 109 * a license type using the AWS CLI</a> in the <i>License Manager User 110 * Guide</i>.</p> 111 */ SetSourceLicenseContext(const LicenseConversionContext & value)112 inline void SetSourceLicenseContext(const LicenseConversionContext& value) { m_sourceLicenseContextHasBeenSet = true; m_sourceLicenseContext = value; } 113 114 /** 115 * <p>Information that identifies the license type you are converting from. For the 116 * structure of the source license, see <a 117 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 118 * a license type using the AWS CLI</a> in the <i>License Manager User 119 * Guide</i>.</p> 120 */ SetSourceLicenseContext(LicenseConversionContext && value)121 inline void SetSourceLicenseContext(LicenseConversionContext&& value) { m_sourceLicenseContextHasBeenSet = true; m_sourceLicenseContext = std::move(value); } 122 123 /** 124 * <p>Information that identifies the license type you are converting from. For the 125 * structure of the source license, see <a 126 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 127 * a license type using the AWS CLI</a> in the <i>License Manager User 128 * Guide</i>.</p> 129 */ WithSourceLicenseContext(const LicenseConversionContext & value)130 inline CreateLicenseConversionTaskForResourceRequest& WithSourceLicenseContext(const LicenseConversionContext& value) { SetSourceLicenseContext(value); return *this;} 131 132 /** 133 * <p>Information that identifies the license type you are converting from. For the 134 * structure of the source license, see <a 135 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 136 * a license type using the AWS CLI</a> in the <i>License Manager User 137 * Guide</i>.</p> 138 */ WithSourceLicenseContext(LicenseConversionContext && value)139 inline CreateLicenseConversionTaskForResourceRequest& WithSourceLicenseContext(LicenseConversionContext&& value) { SetSourceLicenseContext(std::move(value)); return *this;} 140 141 142 /** 143 * <p>Information that identifies the license type you are converting to. For the 144 * structure of the destination license, see <a 145 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 146 * a license type using the AWS CLI</a> in the <i>License Manager User 147 * Guide</i>.</p> 148 */ GetDestinationLicenseContext()149 inline const LicenseConversionContext& GetDestinationLicenseContext() const{ return m_destinationLicenseContext; } 150 151 /** 152 * <p>Information that identifies the license type you are converting to. For the 153 * structure of the destination license, see <a 154 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 155 * a license type using the AWS CLI</a> in the <i>License Manager User 156 * Guide</i>.</p> 157 */ DestinationLicenseContextHasBeenSet()158 inline bool DestinationLicenseContextHasBeenSet() const { return m_destinationLicenseContextHasBeenSet; } 159 160 /** 161 * <p>Information that identifies the license type you are converting to. For the 162 * structure of the destination license, see <a 163 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 164 * a license type using the AWS CLI</a> in the <i>License Manager User 165 * Guide</i>.</p> 166 */ SetDestinationLicenseContext(const LicenseConversionContext & value)167 inline void SetDestinationLicenseContext(const LicenseConversionContext& value) { m_destinationLicenseContextHasBeenSet = true; m_destinationLicenseContext = value; } 168 169 /** 170 * <p>Information that identifies the license type you are converting to. For the 171 * structure of the destination license, see <a 172 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 173 * a license type using the AWS CLI</a> in the <i>License Manager User 174 * Guide</i>.</p> 175 */ SetDestinationLicenseContext(LicenseConversionContext && value)176 inline void SetDestinationLicenseContext(LicenseConversionContext&& value) { m_destinationLicenseContextHasBeenSet = true; m_destinationLicenseContext = std::move(value); } 177 178 /** 179 * <p>Information that identifies the license type you are converting to. For the 180 * structure of the destination license, see <a 181 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 182 * a license type using the AWS CLI</a> in the <i>License Manager User 183 * Guide</i>.</p> 184 */ WithDestinationLicenseContext(const LicenseConversionContext & value)185 inline CreateLicenseConversionTaskForResourceRequest& WithDestinationLicenseContext(const LicenseConversionContext& value) { SetDestinationLicenseContext(value); return *this;} 186 187 /** 188 * <p>Information that identifies the license type you are converting to. For the 189 * structure of the destination license, see <a 190 * href="https://docs.aws.amazon.com/license-manager/latest/userguide/conversion-procedures.html#conversion-cli">Convert 191 * a license type using the AWS CLI</a> in the <i>License Manager User 192 * Guide</i>.</p> 193 */ WithDestinationLicenseContext(LicenseConversionContext && value)194 inline CreateLicenseConversionTaskForResourceRequest& WithDestinationLicenseContext(LicenseConversionContext&& value) { SetDestinationLicenseContext(std::move(value)); return *this;} 195 196 private: 197 198 Aws::String m_resourceArn; 199 bool m_resourceArnHasBeenSet; 200 201 LicenseConversionContext m_sourceLicenseContext; 202 bool m_sourceLicenseContextHasBeenSet; 203 204 LicenseConversionContext m_destinationLicenseContext; 205 bool m_destinationLicenseContextHasBeenSet; 206 }; 207 208 } // namespace Model 209 } // namespace LicenseManager 210 } // namespace Aws 211