AWS SDK for C++  1.9.104
AWS SDK for C++
BatchGetImageResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
9 #include <aws/ecr/model/Image.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECR
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<Image>& GetImages() const{ return m_images; }
42 
47  inline void SetImages(const Aws::Vector<Image>& value) { m_images = value; }
48 
53  inline void SetImages(Aws::Vector<Image>&& value) { m_images = std::move(value); }
54 
59  inline BatchGetImageResult& WithImages(const Aws::Vector<Image>& value) { SetImages(value); return *this;}
60 
65  inline BatchGetImageResult& WithImages(Aws::Vector<Image>&& value) { SetImages(std::move(value)); return *this;}
66 
71  inline BatchGetImageResult& AddImages(const Image& value) { m_images.push_back(value); return *this; }
72 
77  inline BatchGetImageResult& AddImages(Image&& value) { m_images.push_back(std::move(value)); return *this; }
78 
79 
83  inline const Aws::Vector<ImageFailure>& GetFailures() const{ return m_failures; }
84 
88  inline void SetFailures(const Aws::Vector<ImageFailure>& value) { m_failures = value; }
89 
93  inline void SetFailures(Aws::Vector<ImageFailure>&& value) { m_failures = std::move(value); }
94 
98  inline BatchGetImageResult& WithFailures(const Aws::Vector<ImageFailure>& value) { SetFailures(value); return *this;}
99 
103  inline BatchGetImageResult& WithFailures(Aws::Vector<ImageFailure>&& value) { SetFailures(std::move(value)); return *this;}
104 
108  inline BatchGetImageResult& AddFailures(const ImageFailure& value) { m_failures.push_back(value); return *this; }
109 
113  inline BatchGetImageResult& AddFailures(ImageFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  Aws::Vector<Image> m_images;
118 
119  Aws::Vector<ImageFailure> m_failures;
120  };
121 
122 } // namespace Model
123 } // namespace ECR
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECR::Model::BatchGetImageResult::AddFailures
BatchGetImageResult & AddFailures(ImageFailure &&value)
Definition: BatchGetImageResult.h:113
Aws::ECR::Model::BatchGetImageResult::BatchGetImageResult
BatchGetImageResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ECR::Model::BatchGetImageResult::AddFailures
BatchGetImageResult & AddFailures(const ImageFailure &value)
Definition: BatchGetImageResult.h:108
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::BatchGetImageResult::GetImages
const Aws::Vector< Image > & GetImages() const
Definition: BatchGetImageResult.h:41
Aws::ECR::Model::BatchGetImageResult::AddImages
BatchGetImageResult & AddImages(Image &&value)
Definition: BatchGetImageResult.h:77
ECR_EXPORTS.h
Aws::ECR::Model::BatchGetImageResult::SetImages
void SetImages(const Aws::Vector< Image > &value)
Definition: BatchGetImageResult.h:47
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::BatchGetImageResult::SetFailures
void SetFailures(Aws::Vector< ImageFailure > &&value)
Definition: BatchGetImageResult.h:93
Aws::ECR::Model::BatchGetImageResult::WithImages
BatchGetImageResult & WithImages(const Aws::Vector< Image > &value)
Definition: BatchGetImageResult.h:59
Aws::ECR::Model::BatchGetImageResult::SetFailures
void SetFailures(const Aws::Vector< ImageFailure > &value)
Definition: BatchGetImageResult.h:88
Aws::ECR::Model::BatchGetImageResult::SetImages
void SetImages(Aws::Vector< Image > &&value)
Definition: BatchGetImageResult.h:53
Image.h
Aws::ECR::Model::BatchGetImageResult::operator=
BatchGetImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::ImageFailure
Definition: ImageFailure.h:34
Aws::ECR::Model::BatchGetImageResult::WithImages
BatchGetImageResult & WithImages(Aws::Vector< Image > &&value)
Definition: BatchGetImageResult.h:65
Aws::ECR::Model::BatchGetImageResult::GetFailures
const Aws::Vector< ImageFailure > & GetFailures() const
Definition: BatchGetImageResult.h:83
Aws
Definition: AccessManagementClient.h:15
ImageFailure.h
Aws::ECR::Model::BatchGetImageResult::WithFailures
BatchGetImageResult & WithFailures(Aws::Vector< ImageFailure > &&value)
Definition: BatchGetImageResult.h:103
Aws::ECR::Model::BatchGetImageResult::AddImages
BatchGetImageResult & AddImages(const Image &value)
Definition: BatchGetImageResult.h:71
Aws::ECR::Model::BatchGetImageResult
Definition: BatchGetImageResult.h:30
Aws::ECR::Model::BatchGetImageResult::WithFailures
BatchGetImageResult & WithFailures(const Aws::Vector< ImageFailure > &value)
Definition: BatchGetImageResult.h:98
Aws::ECR::Model::Image
Definition: Image.h:33
Aws::ECR::Model::BatchGetImageResult::BatchGetImageResult
BatchGetImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)