AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/codeartifact/model/PackageOriginConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeArtifact {
22namespace Model {
23
31 public:
32 AWS_CODEARTIFACT_API PackageSummary() = default;
33 AWS_CODEARTIFACT_API PackageSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEARTIFACT_API PackageSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline PackageFormat GetFormat() const { return m_format; }
42 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
43 inline void SetFormat(PackageFormat value) {
44 m_formatHasBeenSet = true;
45 m_format = value;
46 }
48 SetFormat(value);
49 return *this;
50 }
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) {
68 m_namespaceHasBeenSet = true;
69 m_namespace = std::forward<NamespaceT>(value);
70 }
71 template <typename NamespaceT = Aws::String>
72 PackageSummary& WithNamespace(NamespaceT&& value) {
73 SetNamespace(std::forward<NamespaceT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetPackage() const { return m_package; }
83 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
84 template <typename PackageT = Aws::String>
85 void SetPackage(PackageT&& value) {
86 m_packageHasBeenSet = true;
87 m_package = std::forward<PackageT>(value);
88 }
89 template <typename PackageT = Aws::String>
90 PackageSummary& WithPackage(PackageT&& value) {
91 SetPackage(std::forward<PackageT>(value));
92 return *this;
93 }
95
97
105 inline const PackageOriginConfiguration& GetOriginConfiguration() const { return m_originConfiguration; }
106 inline bool OriginConfigurationHasBeenSet() const { return m_originConfigurationHasBeenSet; }
107 template <typename OriginConfigurationT = PackageOriginConfiguration>
108 void SetOriginConfiguration(OriginConfigurationT&& value) {
109 m_originConfigurationHasBeenSet = true;
110 m_originConfiguration = std::forward<OriginConfigurationT>(value);
111 }
112 template <typename OriginConfigurationT = PackageOriginConfiguration>
113 PackageSummary& WithOriginConfiguration(OriginConfigurationT&& value) {
114 SetOriginConfiguration(std::forward<OriginConfigurationT>(value));
115 return *this;
116 }
118 private:
120
121 Aws::String m_namespace;
122
123 Aws::String m_package;
124
125 PackageOriginConfiguration m_originConfiguration;
126 bool m_formatHasBeenSet = false;
127 bool m_namespaceHasBeenSet = false;
128 bool m_packageHasBeenSet = false;
129 bool m_originConfigurationHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace CodeArtifact
134} // 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