AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSString.h>
10#include <aws/codeartifact/model/PackageGroupAssociationType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact
24{
25namespace Model
26{
27
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
43
46 inline const PackageFormat& GetFormat() const{ return m_format; }
47 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
48 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
49 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
50 inline AssociatedPackage& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
51 inline AssociatedPackage& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
53
55
65 inline const Aws::String& GetNamespace() const{ return m_namespace; }
66 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
67 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
68 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
69 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
70 inline AssociatedPackage& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
71 inline AssociatedPackage& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
72 inline AssociatedPackage& WithNamespace(const char* value) { SetNamespace(value); return *this;}
74
76
79 inline const Aws::String& GetPackage() const{ return m_package; }
80 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
81 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
82 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
83 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
84 inline AssociatedPackage& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
85 inline AssociatedPackage& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
86 inline AssociatedPackage& WithPackage(const char* value) { SetPackage(value); return *this;}
88
90
100 inline const PackageGroupAssociationType& GetAssociationType() const{ return m_associationType; }
101 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
102 inline void SetAssociationType(const PackageGroupAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
103 inline void SetAssociationType(PackageGroupAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
105 inline AssociatedPackage& WithAssociationType(PackageGroupAssociationType&& value) { SetAssociationType(std::move(value)); return *this;}
107 private:
108
109 PackageFormat m_format;
110 bool m_formatHasBeenSet = false;
111
112 Aws::String m_namespace;
113 bool m_namespaceHasBeenSet = false;
114
115 Aws::String m_package;
116 bool m_packageHasBeenSet = false;
117
118 PackageGroupAssociationType m_associationType;
119 bool m_associationTypeHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CodeArtifact
124} // namespace Aws
AssociatedPackage & WithAssociationType(const PackageGroupAssociationType &value)
AssociatedPackage & WithNamespace(const char *value)
void SetPackage(const Aws::String &value)
AssociatedPackage & WithAssociationType(PackageGroupAssociationType &&value)
void SetAssociationType(const PackageGroupAssociationType &value)
AssociatedPackage & WithFormat(PackageFormat &&value)
AWS_CODEARTIFACT_API AssociatedPackage(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API AssociatedPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociatedPackage & WithNamespace(const Aws::String &value)
AssociatedPackage & WithPackage(const char *value)
void SetNamespace(const Aws::String &value)
AssociatedPackage & WithFormat(const PackageFormat &value)
void SetFormat(const PackageFormat &value)
void SetAssociationType(PackageGroupAssociationType &&value)
const PackageGroupAssociationType & GetAssociationType() const
AssociatedPackage & WithPackage(const Aws::String &value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AssociatedPackage & WithNamespace(Aws::String &&value)
AssociatedPackage & WithPackage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue