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 <utility>
11 
12 namespace Aws
13 {
14 namespace LicenseManager
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_LICENSEMANAGER_API DeleteLicenseRequest : public LicenseManagerRequest
22   {
23   public:
24     DeleteLicenseRequest();
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 "DeleteLicense"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>Amazon Resource Name (ARN) of the license.</p>
39      */
GetLicenseArn()40     inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
41 
42     /**
43      * <p>Amazon Resource Name (ARN) of the license.</p>
44      */
LicenseArnHasBeenSet()45     inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
46 
47     /**
48      * <p>Amazon Resource Name (ARN) of the license.</p>
49      */
SetLicenseArn(const Aws::String & value)50     inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
51 
52     /**
53      * <p>Amazon Resource Name (ARN) of the license.</p>
54      */
SetLicenseArn(Aws::String && value)55     inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
56 
57     /**
58      * <p>Amazon Resource Name (ARN) of the license.</p>
59      */
SetLicenseArn(const char * value)60     inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
61 
62     /**
63      * <p>Amazon Resource Name (ARN) of the license.</p>
64      */
WithLicenseArn(const Aws::String & value)65     inline DeleteLicenseRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
66 
67     /**
68      * <p>Amazon Resource Name (ARN) of the license.</p>
69      */
WithLicenseArn(Aws::String && value)70     inline DeleteLicenseRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
71 
72     /**
73      * <p>Amazon Resource Name (ARN) of the license.</p>
74      */
WithLicenseArn(const char * value)75     inline DeleteLicenseRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
76 
77 
78     /**
79      * <p>Current version of the license.</p>
80      */
GetSourceVersion()81     inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
82 
83     /**
84      * <p>Current version of the license.</p>
85      */
SourceVersionHasBeenSet()86     inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
87 
88     /**
89      * <p>Current version of the license.</p>
90      */
SetSourceVersion(const Aws::String & value)91     inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
92 
93     /**
94      * <p>Current version of the license.</p>
95      */
SetSourceVersion(Aws::String && value)96     inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
97 
98     /**
99      * <p>Current version of the license.</p>
100      */
SetSourceVersion(const char * value)101     inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
102 
103     /**
104      * <p>Current version of the license.</p>
105      */
WithSourceVersion(const Aws::String & value)106     inline DeleteLicenseRequest& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
107 
108     /**
109      * <p>Current version of the license.</p>
110      */
WithSourceVersion(Aws::String && value)111     inline DeleteLicenseRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
112 
113     /**
114      * <p>Current version of the license.</p>
115      */
WithSourceVersion(const char * value)116     inline DeleteLicenseRequest& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
117 
118   private:
119 
120     Aws::String m_licenseArn;
121     bool m_licenseArnHasBeenSet;
122 
123     Aws::String m_sourceVersion;
124     bool m_sourceVersionHasBeenSet;
125   };
126 
127 } // namespace Model
128 } // namespace LicenseManager
129 } // namespace Aws
130