AWS SDK for C++  1.9.153
AWS SDK for C++
CopyPackageVersionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace CodeArtifact
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const Aws::Map<Aws::String, SuccessfulPackageVersionInfo>& GetSuccessfulVersions() const{ return m_successfulVersions; }
43 
48  inline void SetSuccessfulVersions(const Aws::Map<Aws::String, SuccessfulPackageVersionInfo>& value) { m_successfulVersions = value; }
49 
54  inline void SetSuccessfulVersions(Aws::Map<Aws::String, SuccessfulPackageVersionInfo>&& value) { m_successfulVersions = std::move(value); }
55 
60  inline CopyPackageVersionsResult& WithSuccessfulVersions(const Aws::Map<Aws::String, SuccessfulPackageVersionInfo>& value) { SetSuccessfulVersions(value); return *this;}
61 
66  inline CopyPackageVersionsResult& WithSuccessfulVersions(Aws::Map<Aws::String, SuccessfulPackageVersionInfo>&& value) { SetSuccessfulVersions(std::move(value)); return *this;}
67 
72  inline CopyPackageVersionsResult& AddSuccessfulVersions(const Aws::String& key, const SuccessfulPackageVersionInfo& value) { m_successfulVersions.emplace(key, value); return *this; }
73 
78  inline CopyPackageVersionsResult& AddSuccessfulVersions(Aws::String&& key, const SuccessfulPackageVersionInfo& value) { m_successfulVersions.emplace(std::move(key), value); return *this; }
79 
84  inline CopyPackageVersionsResult& AddSuccessfulVersions(const Aws::String& key, SuccessfulPackageVersionInfo&& value) { m_successfulVersions.emplace(key, std::move(value)); return *this; }
85 
90  inline CopyPackageVersionsResult& AddSuccessfulVersions(Aws::String&& key, SuccessfulPackageVersionInfo&& value) { m_successfulVersions.emplace(std::move(key), std::move(value)); return *this; }
91 
96  inline CopyPackageVersionsResult& AddSuccessfulVersions(const char* key, SuccessfulPackageVersionInfo&& value) { m_successfulVersions.emplace(key, std::move(value)); return *this; }
97 
102  inline CopyPackageVersionsResult& AddSuccessfulVersions(const char* key, const SuccessfulPackageVersionInfo& value) { m_successfulVersions.emplace(key, value); return *this; }
103 
104 
114  inline const Aws::Map<Aws::String, PackageVersionError>& GetFailedVersions() const{ return m_failedVersions; }
115 
125  inline void SetFailedVersions(const Aws::Map<Aws::String, PackageVersionError>& value) { m_failedVersions = value; }
126 
136  inline void SetFailedVersions(Aws::Map<Aws::String, PackageVersionError>&& value) { m_failedVersions = std::move(value); }
137 
147  inline CopyPackageVersionsResult& WithFailedVersions(const Aws::Map<Aws::String, PackageVersionError>& value) { SetFailedVersions(value); return *this;}
148 
158  inline CopyPackageVersionsResult& WithFailedVersions(Aws::Map<Aws::String, PackageVersionError>&& value) { SetFailedVersions(std::move(value)); return *this;}
159 
169  inline CopyPackageVersionsResult& AddFailedVersions(const Aws::String& key, const PackageVersionError& value) { m_failedVersions.emplace(key, value); return *this; }
170 
180  inline CopyPackageVersionsResult& AddFailedVersions(Aws::String&& key, const PackageVersionError& value) { m_failedVersions.emplace(std::move(key), value); return *this; }
181 
191  inline CopyPackageVersionsResult& AddFailedVersions(const Aws::String& key, PackageVersionError&& value) { m_failedVersions.emplace(key, std::move(value)); return *this; }
192 
202  inline CopyPackageVersionsResult& AddFailedVersions(Aws::String&& key, PackageVersionError&& value) { m_failedVersions.emplace(std::move(key), std::move(value)); return *this; }
203 
213  inline CopyPackageVersionsResult& AddFailedVersions(const char* key, PackageVersionError&& value) { m_failedVersions.emplace(key, std::move(value)); return *this; }
214 
224  inline CopyPackageVersionsResult& AddFailedVersions(const char* key, const PackageVersionError& value) { m_failedVersions.emplace(key, value); return *this; }
225 
226  private:
227 
229 
231  };
232 
233 } // namespace Model
234 } // namespace CodeArtifact
235 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::CopyPackageVersionsResult::SetSuccessfulVersions
void SetSuccessfulVersions(const Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &value)
Definition: CopyPackageVersionsResult.h:48
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddSuccessfulVersions
CopyPackageVersionsResult & AddSuccessfulVersions(const Aws::String &key, const SuccessfulPackageVersionInfo &value)
Definition: CopyPackageVersionsResult.h:72
Aws::CodeArtifact::Model::SuccessfulPackageVersionInfo
Definition: SuccessfulPackageVersionInfo.h:34
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddFailedVersions
CopyPackageVersionsResult & AddFailedVersions(const char *key, PackageVersionError &&value)
Definition: CopyPackageVersionsResult.h:213
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddSuccessfulVersions
CopyPackageVersionsResult & AddSuccessfulVersions(Aws::String &&key, const SuccessfulPackageVersionInfo &value)
Definition: CopyPackageVersionsResult.h:78
SuccessfulPackageVersionInfo.h
Aws::CodeArtifact::Model::CopyPackageVersionsResult::GetFailedVersions
const Aws::Map< Aws::String, PackageVersionError > & GetFailedVersions() const
Definition: CopyPackageVersionsResult.h:114
Aws::CodeArtifact::Model::CopyPackageVersionsResult::CopyPackageVersionsResult
CopyPackageVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddSuccessfulVersions
CopyPackageVersionsResult & AddSuccessfulVersions(Aws::String &&key, SuccessfulPackageVersionInfo &&value)
Definition: CopyPackageVersionsResult.h:90
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddSuccessfulVersions
CopyPackageVersionsResult & AddSuccessfulVersions(const Aws::String &key, SuccessfulPackageVersionInfo &&value)
Definition: CopyPackageVersionsResult.h:84
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddFailedVersions
CopyPackageVersionsResult & AddFailedVersions(const Aws::String &key, PackageVersionError &&value)
Definition: CopyPackageVersionsResult.h:191
Aws::CodeArtifact::Model::CopyPackageVersionsResult::SetSuccessfulVersions
void SetSuccessfulVersions(Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &&value)
Definition: CopyPackageVersionsResult.h:54
Aws::CodeArtifact::Model::CopyPackageVersionsResult::WithFailedVersions
CopyPackageVersionsResult & WithFailedVersions(Aws::Map< Aws::String, PackageVersionError > &&value)
Definition: CopyPackageVersionsResult.h:158
Aws::CodeArtifact::Model::PackageVersionError
Definition: PackageVersionError.h:33
Aws::CodeArtifact::Model::CopyPackageVersionsResult::operator=
CopyPackageVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddFailedVersions
CopyPackageVersionsResult & AddFailedVersions(const char *key, const PackageVersionError &value)
Definition: CopyPackageVersionsResult.h:224
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddSuccessfulVersions
CopyPackageVersionsResult & AddSuccessfulVersions(const char *key, SuccessfulPackageVersionInfo &&value)
Definition: CopyPackageVersionsResult.h:96
AWSString.h
Aws::CodeArtifact::Model::CopyPackageVersionsResult::CopyPackageVersionsResult
CopyPackageVersionsResult()
PackageVersionError.h
Aws::CodeArtifact::Model::CopyPackageVersionsResult
Definition: CopyPackageVersionsResult.h:31
Aws::CodeArtifact::Model::CopyPackageVersionsResult::WithFailedVersions
CopyPackageVersionsResult & WithFailedVersions(const Aws::Map< Aws::String, PackageVersionError > &value)
Definition: CopyPackageVersionsResult.h:147
Aws::CodeArtifact::Model::CopyPackageVersionsResult::SetFailedVersions
void SetFailedVersions(const Aws::Map< Aws::String, PackageVersionError > &value)
Definition: CopyPackageVersionsResult.h:125
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddFailedVersions
CopyPackageVersionsResult & AddFailedVersions(Aws::String &&key, PackageVersionError &&value)
Definition: CopyPackageVersionsResult.h:202
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::CopyPackageVersionsResult::WithSuccessfulVersions
CopyPackageVersionsResult & WithSuccessfulVersions(const Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &value)
Definition: CopyPackageVersionsResult.h:60
Aws::CodeArtifact::Model::CopyPackageVersionsResult::WithSuccessfulVersions
CopyPackageVersionsResult & WithSuccessfulVersions(Aws::Map< Aws::String, SuccessfulPackageVersionInfo > &&value)
Definition: CopyPackageVersionsResult.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddFailedVersions
CopyPackageVersionsResult & AddFailedVersions(const Aws::String &key, const PackageVersionError &value)
Definition: CopyPackageVersionsResult.h:169
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddSuccessfulVersions
CopyPackageVersionsResult & AddSuccessfulVersions(const char *key, const SuccessfulPackageVersionInfo &value)
Definition: CopyPackageVersionsResult.h:102
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::CodeArtifact::Model::CopyPackageVersionsResult::SetFailedVersions
void SetFailedVersions(Aws::Map< Aws::String, PackageVersionError > &&value)
Definition: CopyPackageVersionsResult.h:136
Aws::CodeArtifact::Model::CopyPackageVersionsResult::GetSuccessfulVersions
const Aws::Map< Aws::String, SuccessfulPackageVersionInfo > & GetSuccessfulVersions() const
Definition: CopyPackageVersionsResult.h:42
Aws::CodeArtifact::Model::CopyPackageVersionsResult::AddFailedVersions
CopyPackageVersionsResult & AddFailedVersions(Aws::String &&key, const PackageVersionError &value)
Definition: CopyPackageVersionsResult.h:180