AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociatedPackage.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageFormat.h>
9#include <aws/codeartifact/model/PackageGroupAssociationType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeArtifact {
22namespace Model {
23
30 public:
31 AWS_CODEARTIFACT_API AssociatedPackage() = default;
32 AWS_CODEARTIFACT_API AssociatedPackage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEARTIFACT_API AssociatedPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline PackageFormat GetFormat() const { return m_format; }
41 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
42 inline void SetFormat(PackageFormat value) {
43 m_formatHasBeenSet = true;
44 m_format = value;
45 }
47 SetFormat(value);
48 return *this;
49 }
51
53
63 inline const Aws::String& GetNamespace() const { return m_namespace; }
64 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
65 template <typename NamespaceT = Aws::String>
66 void SetNamespace(NamespaceT&& value) {
67 m_namespaceHasBeenSet = true;
68 m_namespace = std::forward<NamespaceT>(value);
69 }
70 template <typename NamespaceT = Aws::String>
71 AssociatedPackage& WithNamespace(NamespaceT&& value) {
72 SetNamespace(std::forward<NamespaceT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetPackage() const { return m_package; }
82 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
83 template <typename PackageT = Aws::String>
84 void SetPackage(PackageT&& value) {
85 m_packageHasBeenSet = true;
86 m_package = std::forward<PackageT>(value);
87 }
88 template <typename PackageT = Aws::String>
89 AssociatedPackage& WithPackage(PackageT&& value) {
90 SetPackage(std::forward<PackageT>(value));
91 return *this;
92 }
94
96
106 inline PackageGroupAssociationType GetAssociationType() const { return m_associationType; }
107 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
109 m_associationTypeHasBeenSet = true;
110 m_associationType = value;
111 }
113 SetAssociationType(value);
114 return *this;
115 }
117 private:
119
120 Aws::String m_namespace;
121
122 Aws::String m_package;
123
125 bool m_formatHasBeenSet = false;
126 bool m_namespaceHasBeenSet = false;
127 bool m_packageHasBeenSet = false;
128 bool m_associationTypeHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace CodeArtifact
133} // namespace Aws
void SetAssociationType(PackageGroupAssociationType value)
AssociatedPackage & WithFormat(PackageFormat value)
AssociatedPackage & WithNamespace(NamespaceT &&value)
AssociatedPackage & WithPackage(PackageT &&value)
AWS_CODEARTIFACT_API AssociatedPackage()=default
AWS_CODEARTIFACT_API AssociatedPackage(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API AssociatedPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageGroupAssociationType GetAssociationType() const
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AssociatedPackage & WithAssociationType(PackageGroupAssociationType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue