AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishPackageVersionResult.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/PackageVersionStatus.h>
11#include <aws/codeartifact/model/AssetSummary.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeArtifact
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CODEARTIFACT_API PublishPackageVersionResult();
36
37
39
42 inline const PackageFormat& GetFormat() const{ return m_format; }
43 inline void SetFormat(const PackageFormat& value) { m_format = value; }
44 inline void SetFormat(PackageFormat&& value) { m_format = std::move(value); }
45 inline PublishPackageVersionResult& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
46 inline PublishPackageVersionResult& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetNamespace() const{ return m_namespace; }
54 inline void SetNamespace(const Aws::String& value) { m_namespace = value; }
55 inline void SetNamespace(Aws::String&& value) { m_namespace = std::move(value); }
56 inline void SetNamespace(const char* value) { m_namespace.assign(value); }
57 inline PublishPackageVersionResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
58 inline PublishPackageVersionResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
59 inline PublishPackageVersionResult& WithNamespace(const char* value) { SetNamespace(value); return *this;}
61
63
66 inline const Aws::String& GetPackage() const{ return m_package; }
67 inline void SetPackage(const Aws::String& value) { m_package = value; }
68 inline void SetPackage(Aws::String&& value) { m_package = std::move(value); }
69 inline void SetPackage(const char* value) { m_package.assign(value); }
70 inline PublishPackageVersionResult& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
71 inline PublishPackageVersionResult& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
72 inline PublishPackageVersionResult& WithPackage(const char* value) { SetPackage(value); return *this;}
74
76
79 inline const Aws::String& GetVersion() const{ return m_version; }
80 inline void SetVersion(const Aws::String& value) { m_version = value; }
81 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
82 inline void SetVersion(const char* value) { m_version.assign(value); }
83 inline PublishPackageVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
84 inline PublishPackageVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
85 inline PublishPackageVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
87
89
92 inline const Aws::String& GetVersionRevision() const{ return m_versionRevision; }
93 inline void SetVersionRevision(const Aws::String& value) { m_versionRevision = value; }
94 inline void SetVersionRevision(Aws::String&& value) { m_versionRevision = std::move(value); }
95 inline void SetVersionRevision(const char* value) { m_versionRevision.assign(value); }
97 inline PublishPackageVersionResult& WithVersionRevision(Aws::String&& value) { SetVersionRevision(std::move(value)); return *this;}
98 inline PublishPackageVersionResult& WithVersionRevision(const char* value) { SetVersionRevision(value); return *this;}
100
102
108 inline const PackageVersionStatus& GetStatus() const{ return m_status; }
109 inline void SetStatus(const PackageVersionStatus& value) { m_status = value; }
110 inline void SetStatus(PackageVersionStatus&& value) { m_status = std::move(value); }
111 inline PublishPackageVersionResult& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;}
112 inline PublishPackageVersionResult& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
114
116
121 inline const AssetSummary& GetAsset() const{ return m_asset; }
122 inline void SetAsset(const AssetSummary& value) { m_asset = value; }
123 inline void SetAsset(AssetSummary&& value) { m_asset = std::move(value); }
124 inline PublishPackageVersionResult& WithAsset(const AssetSummary& value) { SetAsset(value); return *this;}
125 inline PublishPackageVersionResult& WithAsset(AssetSummary&& value) { SetAsset(std::move(value)); return *this;}
127
129
130 inline const Aws::String& GetRequestId() const{ return m_requestId; }
131 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
133 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
134 inline PublishPackageVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
135 inline PublishPackageVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
136 inline PublishPackageVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
138 private:
139
140 PackageFormat m_format;
141
142 Aws::String m_namespace;
143
144 Aws::String m_package;
145
146 Aws::String m_version;
147
148 Aws::String m_versionRevision;
149
150 PackageVersionStatus m_status;
151
152 AssetSummary m_asset;
153
154 Aws::String m_requestId;
155 };
156
157} // namespace Model
158} // namespace CodeArtifact
159} // namespace Aws
PublishPackageVersionResult & WithVersion(const char *value)
PublishPackageVersionResult & WithNamespace(const Aws::String &value)
PublishPackageVersionResult & WithVersionRevision(Aws::String &&value)
PublishPackageVersionResult & WithStatus(const PackageVersionStatus &value)
PublishPackageVersionResult & WithVersion(Aws::String &&value)
PublishPackageVersionResult & WithFormat(const PackageFormat &value)
PublishPackageVersionResult & WithPackage(const Aws::String &value)
PublishPackageVersionResult & WithVersionRevision(const char *value)
PublishPackageVersionResult & WithPackage(const char *value)
AWS_CODEARTIFACT_API PublishPackageVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PublishPackageVersionResult & WithPackage(Aws::String &&value)
PublishPackageVersionResult & WithAsset(AssetSummary &&value)
PublishPackageVersionResult & WithStatus(PackageVersionStatus &&value)
PublishPackageVersionResult & WithAsset(const AssetSummary &value)
PublishPackageVersionResult & WithFormat(PackageFormat &&value)
PublishPackageVersionResult & WithNamespace(const char *value)
PublishPackageVersionResult & WithVersionRevision(const Aws::String &value)
PublishPackageVersionResult & WithVersion(const Aws::String &value)
PublishPackageVersionResult & WithRequestId(const Aws::String &value)
PublishPackageVersionResult & WithNamespace(Aws::String &&value)
AWS_CODEARTIFACT_API PublishPackageVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PublishPackageVersionResult & WithRequestId(const char *value)
PublishPackageVersionResult & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue