Skip to content

Commit 1f4fc88

Browse files
This release adds Package groups to CodeArtifact so you can more conveniently configure package origin controls for multiple packages.
1 parent 53259b8 commit 1f4fc88

File tree

94 files changed

+11809
-1319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+11809
-1319
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.290
1+
1.11.291

generated/src/aws-cpp-sdk-codeartifact/include/aws/codeartifact/CodeArtifactClient.h

Lines changed: 378 additions & 49 deletions
Large diffs are not rendered by default.

generated/src/aws-cpp-sdk-codeartifact/include/aws/codeartifact/CodeArtifactServiceClientModel.h

Lines changed: 50 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
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/codeartifact/CodeArtifact_EXPORTS.h>
8+
#include <aws/codeartifact/model/PackageFormat.h>
9+
#include <aws/core/utils/memory/stl/AWSString.h>
10+
#include <aws/codeartifact/model/PackageGroupAssociationType.h>
11+
#include <utility>
12+
13+
namespace Aws
14+
{
15+
namespace Utils
16+
{
17+
namespace Json
18+
{
19+
class JsonValue;
20+
class JsonView;
21+
} // namespace Json
22+
} // namespace Utils
23+
namespace CodeArtifact
24+
{
25+
namespace Model
26+
{
27+
28+
/**
29+
* <p> A package associated with a package group. </p><p><h3>See Also:</h3> <a
30+
* href="http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociatedPackage">AWS
31+
* API Reference</a></p>
32+
*/
33+
class AssociatedPackage
34+
{
35+
public:
36+
AWS_CODEARTIFACT_API AssociatedPackage();
37+
AWS_CODEARTIFACT_API AssociatedPackage(Aws::Utils::Json::JsonView jsonValue);
38+
AWS_CODEARTIFACT_API AssociatedPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
39+
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40+
41+
42+
/**
43+
* <p>A format that specifies the type of the associated package.</p>
44+
*/
45+
inline const PackageFormat& GetFormat() const{ return m_format; }
46+
47+
/**
48+
* <p>A format that specifies the type of the associated package.</p>
49+
*/
50+
inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
51+
52+
/**
53+
* <p>A format that specifies the type of the associated package.</p>
54+
*/
55+
inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
56+
57+
/**
58+
* <p>A format that specifies the type of the associated package.</p>
59+
*/
60+
inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
61+
62+
/**
63+
* <p>A format that specifies the type of the associated package.</p>
64+
*/
65+
inline AssociatedPackage& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
66+
67+
/**
68+
* <p>A format that specifies the type of the associated package.</p>
69+
*/
70+
inline AssociatedPackage& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
71+
72+
73+
/**
74+
* <p>The namespace of the associated package. The package component that specifies
75+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
76+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
77+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
78+
* </li> <li> <p>The namespace of a generic package is its
79+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
80+
* not contain a corresponding component, package versions of those formats do not
81+
* have a namespace. </p> </li> </ul>
82+
*/
83+
inline const Aws::String& GetNamespace() const{ return m_namespace; }
84+
85+
/**
86+
* <p>The namespace of the associated package. The package component that specifies
87+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
88+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
89+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
90+
* </li> <li> <p>The namespace of a generic package is its
91+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
92+
* not contain a corresponding component, package versions of those formats do not
93+
* have a namespace. </p> </li> </ul>
94+
*/
95+
inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
96+
97+
/**
98+
* <p>The namespace of the associated package. The package component that specifies
99+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
100+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
101+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
102+
* </li> <li> <p>The namespace of a generic package is its
103+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
104+
* not contain a corresponding component, package versions of those formats do not
105+
* have a namespace. </p> </li> </ul>
106+
*/
107+
inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
108+
109+
/**
110+
* <p>The namespace of the associated package. The package component that specifies
111+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
112+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
113+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
114+
* </li> <li> <p>The namespace of a generic package is its
115+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
116+
* not contain a corresponding component, package versions of those formats do not
117+
* have a namespace. </p> </li> </ul>
118+
*/
119+
inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
120+
121+
/**
122+
* <p>The namespace of the associated package. The package component that specifies
123+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
124+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
125+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
126+
* </li> <li> <p>The namespace of a generic package is its
127+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
128+
* not contain a corresponding component, package versions of those formats do not
129+
* have a namespace. </p> </li> </ul>
130+
*/
131+
inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
132+
133+
/**
134+
* <p>The namespace of the associated package. The package component that specifies
135+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
136+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
137+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
138+
* </li> <li> <p>The namespace of a generic package is its
139+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
140+
* not contain a corresponding component, package versions of those formats do not
141+
* have a namespace. </p> </li> </ul>
142+
*/
143+
inline AssociatedPackage& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
144+
145+
/**
146+
* <p>The namespace of the associated package. The package component that specifies
147+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
148+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
149+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
150+
* </li> <li> <p>The namespace of a generic package is its
151+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
152+
* not contain a corresponding component, package versions of those formats do not
153+
* have a namespace. </p> </li> </ul>
154+
*/
155+
inline AssociatedPackage& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
156+
157+
/**
158+
* <p>The namespace of the associated package. The package component that specifies
159+
* its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace
160+
* of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The
161+
* namespace of an npm or Swift package version is its <code>scope</code>. </p>
162+
* </li> <li> <p>The namespace of a generic package is its
163+
* <code>namespace</code>.</p> </li> <li> <p> Python and NuGet package versions do
164+
* not contain a corresponding component, package versions of those formats do not
165+
* have a namespace. </p> </li> </ul>
166+
*/
167+
inline AssociatedPackage& WithNamespace(const char* value) { SetNamespace(value); return *this;}
168+
169+
170+
/**
171+
* <p> The name of the associated package. </p>
172+
*/
173+
inline const Aws::String& GetPackage() const{ return m_package; }
174+
175+
/**
176+
* <p> The name of the associated package. </p>
177+
*/
178+
inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
179+
180+
/**
181+
* <p> The name of the associated package. </p>
182+
*/
183+
inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
184+
185+
/**
186+
* <p> The name of the associated package. </p>
187+
*/
188+
inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
189+
190+
/**
191+
* <p> The name of the associated package. </p>
192+
*/
193+
inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
194+
195+
/**
196+
* <p> The name of the associated package. </p>
197+
*/
198+
inline AssociatedPackage& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
199+
200+
/**
201+
* <p> The name of the associated package. </p>
202+
*/
203+
inline AssociatedPackage& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
204+
205+
/**
206+
* <p> The name of the associated package. </p>
207+
*/
208+
inline AssociatedPackage& WithPackage(const char* value) { SetPackage(value); return *this;}
209+
210+
211+
/**
212+
* <p>Describes the strength of the association between the package and package
213+
* group. A strong match can be thought of as an exact match, and a weak match can
214+
* be thought of as a variation match, for example, the package name matches a
215+
* variation of the package group pattern. For more information about package group
216+
* pattern matching, including strong and weak matches, see <a
217+
* href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package
218+
* group definition syntax and matching behavior</a> in the <i>CodeArtifact User
219+
* Guide</i>.</p>
220+
*/
221+
inline const PackageGroupAssociationType& GetAssociationType() const{ return m_associationType; }
222+
223+
/**
224+
* <p>Describes the strength of the association between the package and package
225+
* group. A strong match can be thought of as an exact match, and a weak match can
226+
* be thought of as a variation match, for example, the package name matches a
227+
* variation of the package group pattern. For more information about package group
228+
* pattern matching, including strong and weak matches, see <a
229+
* href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package
230+
* group definition syntax and matching behavior</a> in the <i>CodeArtifact User
231+
* Guide</i>.</p>
232+
*/
233+
inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
234+
235+
/**
236+
* <p>Describes the strength of the association between the package and package
237+
* group. A strong match can be thought of as an exact match, and a weak match can
238+
* be thought of as a variation match, for example, the package name matches a
239+
* variation of the package group pattern. For more information about package group
240+
* pattern matching, including strong and weak matches, see <a
241+
* href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package
242+
* group definition syntax and matching behavior</a> in the <i>CodeArtifact User
243+
* Guide</i>.</p>
244+
*/
245+
inline void SetAssociationType(const PackageGroupAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
246+
247+
/**
248+
* <p>Describes the strength of the association between the package and package
249+
* group. A strong match can be thought of as an exact match, and a weak match can
250+
* be thought of as a variation match, for example, the package name matches a
251+
* variation of the package group pattern. For more information about package group
252+
* pattern matching, including strong and weak matches, see <a
253+
* href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package
254+
* group definition syntax and matching behavior</a> in the <i>CodeArtifact User
255+
* Guide</i>.</p>
256+
*/
257+
inline void SetAssociationType(PackageGroupAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
258+
259+
/**
260+
* <p>Describes the strength of the association between the package and package
261+
* group. A strong match can be thought of as an exact match, and a weak match can
262+
* be thought of as a variation match, for example, the package name matches a
263+
* variation of the package group pattern. For more information about package group
264+
* pattern matching, including strong and weak matches, see <a
265+
* href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package
266+
* group definition syntax and matching behavior</a> in the <i>CodeArtifact User
267+
* Guide</i>.</p>
268+
*/
269+
inline AssociatedPackage& WithAssociationType(const PackageGroupAssociationType& value) { SetAssociationType(value); return *this;}
270+
271+
/**
272+
* <p>Describes the strength of the association between the package and package
273+
* group. A strong match can be thought of as an exact match, and a weak match can
274+
* be thought of as a variation match, for example, the package name matches a
275+
* variation of the package group pattern. For more information about package group
276+
* pattern matching, including strong and weak matches, see <a
277+
* href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html">Package
278+
* group definition syntax and matching behavior</a> in the <i>CodeArtifact User
279+
* Guide</i>.</p>
280+
*/
281+
inline AssociatedPackage& WithAssociationType(PackageGroupAssociationType&& value) { SetAssociationType(std::move(value)); return *this;}
282+
283+
private:
284+
285+
PackageFormat m_format;
286+
bool m_formatHasBeenSet = false;
287+
288+
Aws::String m_namespace;
289+
bool m_namespaceHasBeenSet = false;
290+
291+
Aws::String m_package;
292+
bool m_packageHasBeenSet = false;
293+
294+
PackageGroupAssociationType m_associationType;
295+
bool m_associationTypeHasBeenSet = false;
296+
};
297+
298+
} // namespace Model
299+
} // namespace CodeArtifact
300+
} // namespace Aws

0 commit comments

Comments
 (0)