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/panorama/Panorama_EXPORTS.h>
8 #include <aws/panorama/PanoramaRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16     class URI;
17 } //namespace Http
18 namespace Panorama
19 {
20 namespace Model
21 {
22 
23   /**
24    */
25   class AWS_PANORAMA_API DeregisterPackageVersionRequest : public PanoramaRequest
26   {
27   public:
28     DeregisterPackageVersionRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "DeregisterPackageVersion"; }
35 
36     Aws::String SerializePayload() const override;
37 
38     void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
41     /**
42      * <p>An owner account.</p>
43      */
GetOwnerAccount()44     inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
45 
46     /**
47      * <p>An owner account.</p>
48      */
OwnerAccountHasBeenSet()49     inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
50 
51     /**
52      * <p>An owner account.</p>
53      */
SetOwnerAccount(const Aws::String & value)54     inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
55 
56     /**
57      * <p>An owner account.</p>
58      */
SetOwnerAccount(Aws::String && value)59     inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
60 
61     /**
62      * <p>An owner account.</p>
63      */
SetOwnerAccount(const char * value)64     inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
65 
66     /**
67      * <p>An owner account.</p>
68      */
WithOwnerAccount(const Aws::String & value)69     inline DeregisterPackageVersionRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
70 
71     /**
72      * <p>An owner account.</p>
73      */
WithOwnerAccount(Aws::String && value)74     inline DeregisterPackageVersionRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
75 
76     /**
77      * <p>An owner account.</p>
78      */
WithOwnerAccount(const char * value)79     inline DeregisterPackageVersionRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
80 
81 
82     /**
83      * <p>A package ID.</p>
84      */
GetPackageId()85     inline const Aws::String& GetPackageId() const{ return m_packageId; }
86 
87     /**
88      * <p>A package ID.</p>
89      */
PackageIdHasBeenSet()90     inline bool PackageIdHasBeenSet() const { return m_packageIdHasBeenSet; }
91 
92     /**
93      * <p>A package ID.</p>
94      */
SetPackageId(const Aws::String & value)95     inline void SetPackageId(const Aws::String& value) { m_packageIdHasBeenSet = true; m_packageId = value; }
96 
97     /**
98      * <p>A package ID.</p>
99      */
SetPackageId(Aws::String && value)100     inline void SetPackageId(Aws::String&& value) { m_packageIdHasBeenSet = true; m_packageId = std::move(value); }
101 
102     /**
103      * <p>A package ID.</p>
104      */
SetPackageId(const char * value)105     inline void SetPackageId(const char* value) { m_packageIdHasBeenSet = true; m_packageId.assign(value); }
106 
107     /**
108      * <p>A package ID.</p>
109      */
WithPackageId(const Aws::String & value)110     inline DeregisterPackageVersionRequest& WithPackageId(const Aws::String& value) { SetPackageId(value); return *this;}
111 
112     /**
113      * <p>A package ID.</p>
114      */
WithPackageId(Aws::String && value)115     inline DeregisterPackageVersionRequest& WithPackageId(Aws::String&& value) { SetPackageId(std::move(value)); return *this;}
116 
117     /**
118      * <p>A package ID.</p>
119      */
WithPackageId(const char * value)120     inline DeregisterPackageVersionRequest& WithPackageId(const char* value) { SetPackageId(value); return *this;}
121 
122 
123     /**
124      * <p>A package version.</p>
125      */
GetPackageVersion()126     inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; }
127 
128     /**
129      * <p>A package version.</p>
130      */
PackageVersionHasBeenSet()131     inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; }
132 
133     /**
134      * <p>A package version.</p>
135      */
SetPackageVersion(const Aws::String & value)136     inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; }
137 
138     /**
139      * <p>A package version.</p>
140      */
SetPackageVersion(Aws::String && value)141     inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); }
142 
143     /**
144      * <p>A package version.</p>
145      */
SetPackageVersion(const char * value)146     inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); }
147 
148     /**
149      * <p>A package version.</p>
150      */
WithPackageVersion(const Aws::String & value)151     inline DeregisterPackageVersionRequest& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;}
152 
153     /**
154      * <p>A package version.</p>
155      */
WithPackageVersion(Aws::String && value)156     inline DeregisterPackageVersionRequest& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;}
157 
158     /**
159      * <p>A package version.</p>
160      */
WithPackageVersion(const char * value)161     inline DeregisterPackageVersionRequest& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;}
162 
163 
164     /**
165      * <p>A patch version.</p>
166      */
GetPatchVersion()167     inline const Aws::String& GetPatchVersion() const{ return m_patchVersion; }
168 
169     /**
170      * <p>A patch version.</p>
171      */
PatchVersionHasBeenSet()172     inline bool PatchVersionHasBeenSet() const { return m_patchVersionHasBeenSet; }
173 
174     /**
175      * <p>A patch version.</p>
176      */
SetPatchVersion(const Aws::String & value)177     inline void SetPatchVersion(const Aws::String& value) { m_patchVersionHasBeenSet = true; m_patchVersion = value; }
178 
179     /**
180      * <p>A patch version.</p>
181      */
SetPatchVersion(Aws::String && value)182     inline void SetPatchVersion(Aws::String&& value) { m_patchVersionHasBeenSet = true; m_patchVersion = std::move(value); }
183 
184     /**
185      * <p>A patch version.</p>
186      */
SetPatchVersion(const char * value)187     inline void SetPatchVersion(const char* value) { m_patchVersionHasBeenSet = true; m_patchVersion.assign(value); }
188 
189     /**
190      * <p>A patch version.</p>
191      */
WithPatchVersion(const Aws::String & value)192     inline DeregisterPackageVersionRequest& WithPatchVersion(const Aws::String& value) { SetPatchVersion(value); return *this;}
193 
194     /**
195      * <p>A patch version.</p>
196      */
WithPatchVersion(Aws::String && value)197     inline DeregisterPackageVersionRequest& WithPatchVersion(Aws::String&& value) { SetPatchVersion(std::move(value)); return *this;}
198 
199     /**
200      * <p>A patch version.</p>
201      */
WithPatchVersion(const char * value)202     inline DeregisterPackageVersionRequest& WithPatchVersion(const char* value) { SetPatchVersion(value); return *this;}
203 
204 
205     /**
206      * <p>If the version was marked latest, the new version to maker as latest.</p>
207      */
GetUpdatedLatestPatchVersion()208     inline const Aws::String& GetUpdatedLatestPatchVersion() const{ return m_updatedLatestPatchVersion; }
209 
210     /**
211      * <p>If the version was marked latest, the new version to maker as latest.</p>
212      */
UpdatedLatestPatchVersionHasBeenSet()213     inline bool UpdatedLatestPatchVersionHasBeenSet() const { return m_updatedLatestPatchVersionHasBeenSet; }
214 
215     /**
216      * <p>If the version was marked latest, the new version to maker as latest.</p>
217      */
SetUpdatedLatestPatchVersion(const Aws::String & value)218     inline void SetUpdatedLatestPatchVersion(const Aws::String& value) { m_updatedLatestPatchVersionHasBeenSet = true; m_updatedLatestPatchVersion = value; }
219 
220     /**
221      * <p>If the version was marked latest, the new version to maker as latest.</p>
222      */
SetUpdatedLatestPatchVersion(Aws::String && value)223     inline void SetUpdatedLatestPatchVersion(Aws::String&& value) { m_updatedLatestPatchVersionHasBeenSet = true; m_updatedLatestPatchVersion = std::move(value); }
224 
225     /**
226      * <p>If the version was marked latest, the new version to maker as latest.</p>
227      */
SetUpdatedLatestPatchVersion(const char * value)228     inline void SetUpdatedLatestPatchVersion(const char* value) { m_updatedLatestPatchVersionHasBeenSet = true; m_updatedLatestPatchVersion.assign(value); }
229 
230     /**
231      * <p>If the version was marked latest, the new version to maker as latest.</p>
232      */
WithUpdatedLatestPatchVersion(const Aws::String & value)233     inline DeregisterPackageVersionRequest& WithUpdatedLatestPatchVersion(const Aws::String& value) { SetUpdatedLatestPatchVersion(value); return *this;}
234 
235     /**
236      * <p>If the version was marked latest, the new version to maker as latest.</p>
237      */
WithUpdatedLatestPatchVersion(Aws::String && value)238     inline DeregisterPackageVersionRequest& WithUpdatedLatestPatchVersion(Aws::String&& value) { SetUpdatedLatestPatchVersion(std::move(value)); return *this;}
239 
240     /**
241      * <p>If the version was marked latest, the new version to maker as latest.</p>
242      */
WithUpdatedLatestPatchVersion(const char * value)243     inline DeregisterPackageVersionRequest& WithUpdatedLatestPatchVersion(const char* value) { SetUpdatedLatestPatchVersion(value); return *this;}
244 
245   private:
246 
247     Aws::String m_ownerAccount;
248     bool m_ownerAccountHasBeenSet;
249 
250     Aws::String m_packageId;
251     bool m_packageIdHasBeenSet;
252 
253     Aws::String m_packageVersion;
254     bool m_packageVersionHasBeenSet;
255 
256     Aws::String m_patchVersion;
257     bool m_patchVersionHasBeenSet;
258 
259     Aws::String m_updatedLatestPatchVersion;
260     bool m_updatedLatestPatchVersionHasBeenSet;
261   };
262 
263 } // namespace Model
264 } // namespace Panorama
265 } // namespace Aws
266