AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePackageVersionsStatusResult.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeartifact/model/SuccessfulPackageVersionInfo.h>
11#include <aws/codeartifact/model/PackageVersionError.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 UpdatePackageVersionsStatusResult();
36
37
39
43 inline const Aws::Map<Aws::String, SuccessfulPackageVersionInfo>& GetSuccessfulVersions() const{ return m_successfulVersions; }
44 inline void SetSuccessfulVersions(const Aws::Map<Aws::String, SuccessfulPackageVersionInfo>& value) { m_successfulVersions = value; }
45 inline void SetSuccessfulVersions(Aws::Map<Aws::String, SuccessfulPackageVersionInfo>&& value) { m_successfulVersions = std::move(value); }
48 inline UpdatePackageVersionsStatusResult& AddSuccessfulVersions(const Aws::String& key, const SuccessfulPackageVersionInfo& value) { m_successfulVersions.emplace(key, value); return *this; }
49 inline UpdatePackageVersionsStatusResult& AddSuccessfulVersions(Aws::String&& key, const SuccessfulPackageVersionInfo& value) { m_successfulVersions.emplace(std::move(key), value); return *this; }
50 inline UpdatePackageVersionsStatusResult& AddSuccessfulVersions(const Aws::String& key, SuccessfulPackageVersionInfo&& value) { m_successfulVersions.emplace(key, std::move(value)); return *this; }
51 inline UpdatePackageVersionsStatusResult& AddSuccessfulVersions(Aws::String&& key, SuccessfulPackageVersionInfo&& value) { m_successfulVersions.emplace(std::move(key), std::move(value)); return *this; }
52 inline UpdatePackageVersionsStatusResult& AddSuccessfulVersions(const char* key, SuccessfulPackageVersionInfo&& value) { m_successfulVersions.emplace(key, std::move(value)); return *this; }
53 inline UpdatePackageVersionsStatusResult& AddSuccessfulVersions(const char* key, const SuccessfulPackageVersionInfo& value) { m_successfulVersions.emplace(key, value); return *this; }
55
57
61 inline const Aws::Map<Aws::String, PackageVersionError>& GetFailedVersions() const{ return m_failedVersions; }
62 inline void SetFailedVersions(const Aws::Map<Aws::String, PackageVersionError>& value) { m_failedVersions = value; }
63 inline void SetFailedVersions(Aws::Map<Aws::String, PackageVersionError>&& value) { m_failedVersions = std::move(value); }
66 inline UpdatePackageVersionsStatusResult& AddFailedVersions(const Aws::String& key, const PackageVersionError& value) { m_failedVersions.emplace(key, value); return *this; }
67 inline UpdatePackageVersionsStatusResult& AddFailedVersions(Aws::String&& key, const PackageVersionError& value) { m_failedVersions.emplace(std::move(key), value); return *this; }
68 inline UpdatePackageVersionsStatusResult& AddFailedVersions(const Aws::String& key, PackageVersionError&& value) { m_failedVersions.emplace(key, std::move(value)); return *this; }
69 inline UpdatePackageVersionsStatusResult& AddFailedVersions(Aws::String&& key, PackageVersionError&& value) { m_failedVersions.emplace(std::move(key), std::move(value)); return *this; }
70 inline UpdatePackageVersionsStatusResult& AddFailedVersions(const char* key, PackageVersionError&& value) { m_failedVersions.emplace(key, std::move(value)); return *this; }
71 inline UpdatePackageVersionsStatusResult& AddFailedVersions(const char* key, const PackageVersionError& value) { m_failedVersions.emplace(key, value); return *this; }
73
75
76 inline const Aws::String& GetRequestId() const{ return m_requestId; }
77 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
78 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
79 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
80 inline UpdatePackageVersionsStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
81 inline UpdatePackageVersionsStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
82 inline UpdatePackageVersionsStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
84 private:
85
87
89
90 Aws::String m_requestId;
91 };
92
93} // namespace Model
94} // namespace CodeArtifact
95} // namespace Aws
UpdatePackageVersionsStatusResult & AddSuccessfulVersions(Aws::String &&key, SuccessfulPackageVersionInfo &&value)
UpdatePackageVersionsStatusResult & AddFailedVersions(const Aws::String &key, const PackageVersionError &value)
void SetSuccessfulVersions(const Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &value)
UpdatePackageVersionsStatusResult & AddSuccessfulVersions(Aws::String &&key, const SuccessfulPackageVersionInfo &value)
void SetFailedVersions(Aws::Map< Aws::String, PackageVersionError > &&value)
UpdatePackageVersionsStatusResult & AddSuccessfulVersions(const Aws::String &key, const SuccessfulPackageVersionInfo &value)
UpdatePackageVersionsStatusResult & AddFailedVersions(const Aws::String &key, PackageVersionError &&value)
UpdatePackageVersionsStatusResult & AddFailedVersions(const char *key, PackageVersionError &&value)
UpdatePackageVersionsStatusResult & WithRequestId(const char *value)
UpdatePackageVersionsStatusResult & AddFailedVersions(const char *key, const PackageVersionError &value)
UpdatePackageVersionsStatusResult & AddSuccessfulVersions(const Aws::String &key, SuccessfulPackageVersionInfo &&value)
const Aws::Map< Aws::String, SuccessfulPackageVersionInfo > & GetSuccessfulVersions() const
AWS_CODEARTIFACT_API UpdatePackageVersionsStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePackageVersionsStatusResult & WithFailedVersions(const Aws::Map< Aws::String, PackageVersionError > &value)
UpdatePackageVersionsStatusResult & WithFailedVersions(Aws::Map< Aws::String, PackageVersionError > &&value)
AWS_CODEARTIFACT_API UpdatePackageVersionsStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePackageVersionsStatusResult & WithRequestId(const Aws::String &value)
const Aws::Map< Aws::String, PackageVersionError > & GetFailedVersions() const
void SetFailedVersions(const Aws::Map< Aws::String, PackageVersionError > &value)
UpdatePackageVersionsStatusResult & AddFailedVersions(Aws::String &&key, const PackageVersionError &value)
UpdatePackageVersionsStatusResult & AddFailedVersions(Aws::String &&key, PackageVersionError &&value)
UpdatePackageVersionsStatusResult & WithSuccessfulVersions(const Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &value)
UpdatePackageVersionsStatusResult & AddSuccessfulVersions(const char *key, const SuccessfulPackageVersionInfo &value)
UpdatePackageVersionsStatusResult & WithRequestId(Aws::String &&value)
UpdatePackageVersionsStatusResult & AddSuccessfulVersions(const char *key, SuccessfulPackageVersionInfo &&value)
UpdatePackageVersionsStatusResult & WithSuccessfulVersions(Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &&value)
void SetSuccessfulVersions(Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue