AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageDescription.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
34 {
35 public:
36 AWS_CODEARTIFACT_API PackageDescription();
37 AWS_CODEARTIFACT_API PackageDescription(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const PackageFormat& GetFormat() const{ return m_format; }
47 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
48 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
49 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
50 inline PackageDescription& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
51 inline PackageDescription& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
53
55
65 inline const Aws::String& GetNamespace() const{ return m_namespace; }
66 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
67 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
68 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
69 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
70 inline PackageDescription& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
71 inline PackageDescription& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
72 inline PackageDescription& WithNamespace(const char* value) { SetNamespace(value); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline PackageDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline PackageDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline PackageDescription& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const PackageOriginConfiguration& GetOriginConfiguration() const{ return m_originConfiguration; }
94 inline bool OriginConfigurationHasBeenSet() const { return m_originConfigurationHasBeenSet; }
95 inline void SetOriginConfiguration(const PackageOriginConfiguration& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = value; }
96 inline void SetOriginConfiguration(PackageOriginConfiguration&& value) { m_originConfigurationHasBeenSet = true; m_originConfiguration = std::move(value); }
100 private:
101
102 PackageFormat m_format;
103 bool m_formatHasBeenSet = false;
104
105 Aws::String m_namespace;
106 bool m_namespaceHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 PackageOriginConfiguration m_originConfiguration;
112 bool m_originConfigurationHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CodeArtifact
117} // namespace Aws
void SetOriginConfiguration(const PackageOriginConfiguration &value)
AWS_CODEARTIFACT_API PackageDescription(Aws::Utils::Json::JsonView jsonValue)
PackageDescription & WithOriginConfiguration(const PackageOriginConfiguration &value)
void SetOriginConfiguration(PackageOriginConfiguration &&value)
PackageDescription & WithName(const Aws::String &value)
PackageDescription & WithNamespace(Aws::String &&value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEARTIFACT_API PackageDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
const PackageOriginConfiguration & GetOriginConfiguration() const
PackageDescription & WithName(const char *value)
PackageDescription & WithName(Aws::String &&value)
PackageDescription & WithFormat(const PackageFormat &value)
void SetNamespace(const Aws::String &value)
PackageDescription & WithFormat(PackageFormat &&value)
PackageDescription & WithNamespace(const Aws::String &value)
PackageDescription & WithOriginConfiguration(PackageOriginConfiguration &&value)
PackageDescription & WithNamespace(const char *value)
void SetFormat(const PackageFormat &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue