AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 PackageFormat GetFormat() const { return m_format; }
47 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
48 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
49 inline AssociatedPackage& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
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) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
67 template<typename NamespaceT = Aws::String>
68 AssociatedPackage& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
70
72
75 inline const Aws::String& GetPackage() const { return m_package; }
76 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
77 template<typename PackageT = Aws::String>
78 void SetPackage(PackageT&& value) { m_packageHasBeenSet = true; m_package = std::forward<PackageT>(value); }
79 template<typename PackageT = Aws::String>
80 AssociatedPackage& WithPackage(PackageT&& value) { SetPackage(std::forward<PackageT>(value)); return *this;}
82
84
94 inline PackageGroupAssociationType GetAssociationType() const { return m_associationType; }
95 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
96 inline void SetAssociationType(PackageGroupAssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
99 private:
100
102 bool m_formatHasBeenSet = false;
103
104 Aws::String m_namespace;
105 bool m_namespaceHasBeenSet = false;
106
107 Aws::String m_package;
108 bool m_packageHasBeenSet = false;
109
111 bool m_associationTypeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CodeArtifact
116} // 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