AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 PackageFormat GetFormat() const { return m_format; }
48 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
49 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
50 inline PackageSummary& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
52
54
64 inline const Aws::String& GetNamespace() const { return m_namespace; }
65 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
66 template<typename NamespaceT = Aws::String>
67 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
68 template<typename NamespaceT = Aws::String>
69 PackageSummary& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
71
73
76 inline const Aws::String& GetPackage() const { return m_package; }
77 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
78 template<typename PackageT = Aws::String>
79 void SetPackage(PackageT&& value) { m_packageHasBeenSet = true; m_package = std::forward<PackageT>(value); }
80 template<typename PackageT = Aws::String>
81 PackageSummary& WithPackage(PackageT&& value) { SetPackage(std::forward<PackageT>(value)); return *this;}
83
85
93 inline const PackageOriginConfiguration& GetOriginConfiguration() const { return m_originConfiguration; }
94 inline bool OriginConfigurationHasBeenSet() const { return m_originConfigurationHasBeenSet; }
95 template<typename OriginConfigurationT = PackageOriginConfiguration>
96 void SetOriginConfiguration(OriginConfigurationT&& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = std::forward<OriginConfigurationT>(value); }
97 template<typename OriginConfigurationT = PackageOriginConfiguration>
98 PackageSummary& WithOriginConfiguration(OriginConfigurationT&& value) { SetOriginConfiguration(std::forward<OriginConfigurationT>(value)); return *this;}
100 private:
101
103 bool m_formatHasBeenSet = false;
104
105 Aws::String m_namespace;
106 bool m_namespaceHasBeenSet = false;
107
108 Aws::String m_package;
109 bool m_packageHasBeenSet = false;
110
111 PackageOriginConfiguration m_originConfiguration;
112 bool m_originConfigurationHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CodeArtifact
117} // namespace Aws
PackageSummary & WithPackage(PackageT &&value)
const Aws::String & GetNamespace() const
AWS_CODEARTIFACT_API PackageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const PackageOriginConfiguration & GetOriginConfiguration() const
const Aws::String & GetPackage() const
AWS_CODEARTIFACT_API PackageSummary(Aws::Utils::Json::JsonView jsonValue)
void SetOriginConfiguration(OriginConfigurationT &&value)
PackageSummary & WithOriginConfiguration(OriginConfigurationT &&value)
AWS_CODEARTIFACT_API PackageSummary()=default
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageSummary & WithNamespace(NamespaceT &&value)
PackageSummary & WithFormat(PackageFormat value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue