AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageSummary.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/PackageOriginConfiguration.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
35 {
36 public:
37 AWS_CODEARTIFACT_API PackageSummary();
38 AWS_CODEARTIFACT_API PackageSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEARTIFACT_API PackageSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PackageFormat& GetFormat() const{ return m_format; }
48 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
49 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
50 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
51 inline PackageSummary& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
52 inline PackageSummary& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
54
56
66 inline const Aws::String& GetNamespace() const{ return m_namespace; }
67 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
68 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
69 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
70 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
71 inline PackageSummary& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
72 inline PackageSummary& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
73 inline PackageSummary& WithNamespace(const char* value) { SetNamespace(value); return *this;}
75
77
80 inline const Aws::String& GetPackage() const{ return m_package; }
81 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
82 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
83 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
84 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
85 inline PackageSummary& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
86 inline PackageSummary& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
87 inline PackageSummary& WithPackage(const char* value) { SetPackage(value); return *this;}
89
91
99 inline const PackageOriginConfiguration& GetOriginConfiguration() const{ return m_originConfiguration; }
100 inline bool OriginConfigurationHasBeenSet() const { return m_originConfigurationHasBeenSet; }
101 inline void SetOriginConfiguration(const PackageOriginConfiguration& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = value; }
102 inline void SetOriginConfiguration(PackageOriginConfiguration&& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = std::move(value); }
106 private:
107
108 PackageFormat m_format;
109 bool m_formatHasBeenSet = false;
110
111 Aws::String m_namespace;
112 bool m_namespaceHasBeenSet = false;
113
114 Aws::String m_package;
115 bool m_packageHasBeenSet = false;
116
117 PackageOriginConfiguration m_originConfiguration;
118 bool m_originConfigurationHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CodeArtifact
123} // namespace Aws
PackageSummary & WithFormat(const PackageFormat &value)
const PackageFormat & GetFormat() const
PackageSummary & WithNamespace(Aws::String &&value)
const Aws::String & GetNamespace() const
PackageSummary & WithPackage(const char *value)
AWS_CODEARTIFACT_API PackageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFormat(PackageFormat &&value)
void SetNamespace(const Aws::String &value)
PackageSummary & WithNamespace(const char *value)
PackageSummary & WithFormat(PackageFormat &&value)
const PackageOriginConfiguration & GetOriginConfiguration() const
PackageSummary & WithOriginConfiguration(const PackageOriginConfiguration &value)
const Aws::String & GetPackage() const
void SetNamespace(Aws::String &&value)
PackageSummary & WithNamespace(const Aws::String &value)
void SetOriginConfiguration(PackageOriginConfiguration &&value)
AWS_CODEARTIFACT_API PackageSummary(Aws::Utils::Json::JsonView jsonValue)
PackageSummary & WithPackage(const Aws::String &value)
void SetOriginConfiguration(const PackageOriginConfiguration &value)
PackageSummary & WithPackage(Aws::String &&value)
PackageSummary & WithOriginConfiguration(PackageOriginConfiguration &&value)
void SetPackage(const Aws::String &value)
void SetFormat(const PackageFormat &value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue