AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageDependency.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeArtifact
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CODEARTIFACT_API PackageDependency();
35 AWS_CODEARTIFACT_API PackageDependency(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEARTIFACT_API PackageDependency& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
51 inline const Aws::String& GetNamespace() const{ return m_namespace; }
52 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
53 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
54 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
55 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
56 inline PackageDependency& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
57 inline PackageDependency& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
58 inline PackageDependency& WithNamespace(const char* value) { SetNamespace(value); return *this;}
60
62
65 inline const Aws::String& GetPackage() const{ return m_package; }
66 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
67 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
68 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
69 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
70 inline PackageDependency& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
71 inline PackageDependency& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
72 inline PackageDependency& WithPackage(const char* value) { SetPackage(value); return *this;}
74
76
89 inline const Aws::String& GetDependencyType() const{ return m_dependencyType; }
90 inline bool DependencyTypeHasBeenSet() const { return m_dependencyTypeHasBeenSet; }
91 inline void SetDependencyType(const Aws::String& value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = value; }
92 inline void SetDependencyType(Aws::String&& value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = std::move(value); }
93 inline void SetDependencyType(const char* value) { m_dependencyTypeHasBeenSet = true; m_dependencyType.assign(value); }
94 inline PackageDependency& WithDependencyType(const Aws::String& value) { SetDependencyType(value); return *this;}
95 inline PackageDependency& WithDependencyType(Aws::String&& value) { SetDependencyType(std::move(value)); return *this;}
96 inline PackageDependency& WithDependencyType(const char* value) { SetDependencyType(value); return *this;}
98
100
106 inline const Aws::String& GetVersionRequirement() const{ return m_versionRequirement; }
107 inline bool VersionRequirementHasBeenSet() const { return m_versionRequirementHasBeenSet; }
108 inline void SetVersionRequirement(const Aws::String& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = value; }
109 inline void SetVersionRequirement(Aws::String&& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = std::move(value); }
110 inline void SetVersionRequirement(const char* value) { m_versionRequirementHasBeenSet = true; m_versionRequirement.assign(value); }
111 inline PackageDependency& WithVersionRequirement(const Aws::String& value) { SetVersionRequirement(value); return *this;}
112 inline PackageDependency& WithVersionRequirement(Aws::String&& value) { SetVersionRequirement(std::move(value)); return *this;}
113 inline PackageDependency& WithVersionRequirement(const char* value) { SetVersionRequirement(value); return *this;}
115 private:
116
117 Aws::String m_namespace;
118 bool m_namespaceHasBeenSet = false;
119
120 Aws::String m_package;
121 bool m_packageHasBeenSet = false;
122
123 Aws::String m_dependencyType;
124 bool m_dependencyTypeHasBeenSet = false;
125
126 Aws::String m_versionRequirement;
127 bool m_versionRequirementHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodeArtifact
132} // namespace Aws
PackageDependency & WithDependencyType(const char *value)
PackageDependency & WithVersionRequirement(Aws::String &&value)
PackageDependency & WithDependencyType(Aws::String &&value)
PackageDependency & WithVersionRequirement(const Aws::String &value)
void SetDependencyType(const Aws::String &value)
const Aws::String & GetDependencyType() const
PackageDependency & WithNamespace(const Aws::String &value)
PackageDependency & WithPackage(const Aws::String &value)
const Aws::String & GetVersionRequirement() const
void SetVersionRequirement(const Aws::String &value)
PackageDependency & WithDependencyType(const Aws::String &value)
void SetPackage(const Aws::String &value)
void SetNamespace(const Aws::String &value)
PackageDependency & WithPackage(Aws::String &&value)
AWS_CODEARTIFACT_API PackageDependency(Aws::Utils::Json::JsonView jsonValue)
PackageDependency & WithNamespace(Aws::String &&value)
AWS_CODEARTIFACT_API PackageDependency & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageDependency & WithNamespace(const char *value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageDependency & WithVersionRequirement(const char *value)
PackageDependency & WithPackage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue