AWS SDK for C++  1.9.108
AWS SDK for C++
BatchDeleteImageResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.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 
40  inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
41 
45  inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIds = value; }
46 
50  inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIds = std::move(value); }
51 
55  inline BatchDeleteImageResult& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
56 
60  inline BatchDeleteImageResult& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
61 
65  inline BatchDeleteImageResult& AddImageIds(const ImageIdentifier& value) { m_imageIds.push_back(value); return *this; }
66 
70  inline BatchDeleteImageResult& AddImageIds(ImageIdentifier&& value) { m_imageIds.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::Vector<ImageFailure>& GetFailures() const{ return m_failures; }
77 
81  inline void SetFailures(const Aws::Vector<ImageFailure>& value) { m_failures = value; }
82 
86  inline void SetFailures(Aws::Vector<ImageFailure>&& value) { m_failures = std::move(value); }
87 
91  inline BatchDeleteImageResult& WithFailures(const Aws::Vector<ImageFailure>& value) { SetFailures(value); return *this;}
92 
96  inline BatchDeleteImageResult& WithFailures(Aws::Vector<ImageFailure>&& value) { SetFailures(std::move(value)); return *this;}
97 
101  inline BatchDeleteImageResult& AddFailures(const ImageFailure& value) { m_failures.push_back(value); return *this; }
102 
106  inline BatchDeleteImageResult& AddFailures(ImageFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  Aws::Vector<ImageIdentifier> m_imageIds;
111 
112  Aws::Vector<ImageFailure> m_failures;
113  };
114 
115 } // namespace Model
116 } // namespace ECR
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECR::Model::BatchDeleteImageResult::WithFailures
BatchDeleteImageResult & WithFailures(const Aws::Vector< ImageFailure > &value)
Definition: BatchDeleteImageResult.h:91
Aws::ECR::Model::BatchDeleteImageResult::SetFailures
void SetFailures(Aws::Vector< ImageFailure > &&value)
Definition: BatchDeleteImageResult.h:86
Aws::ECR::Model::BatchDeleteImageResult::SetFailures
void SetFailures(const Aws::Vector< ImageFailure > &value)
Definition: BatchDeleteImageResult.h:81
ImageIdentifier.h
Aws::ECR::Model::BatchDeleteImageResult::AddImageIds
BatchDeleteImageResult & AddImageIds(ImageIdentifier &&value)
Definition: BatchDeleteImageResult.h:70
Aws::ECR::Model::BatchDeleteImageResult::BatchDeleteImageResult
BatchDeleteImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::BatchDeleteImageResult::GetImageIds
const Aws::Vector< ImageIdentifier > & GetImageIds() const
Definition: BatchDeleteImageResult.h:40
Aws::ECR::Model::BatchDeleteImageResult::SetImageIds
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: BatchDeleteImageResult.h:50
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::BatchDeleteImageResult::AddImageIds
BatchDeleteImageResult & AddImageIds(const ImageIdentifier &value)
Definition: BatchDeleteImageResult.h:65
AWSVector.h
Aws::ECR::Model::BatchDeleteImageResult::SetImageIds
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: BatchDeleteImageResult.h:45
Aws::ECR::Model::BatchDeleteImageResult::GetFailures
const Aws::Vector< ImageFailure > & GetFailures() const
Definition: BatchDeleteImageResult.h:76
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::BatchDeleteImageResult
Definition: BatchDeleteImageResult.h:30
Aws::ECR::Model::BatchDeleteImageResult::BatchDeleteImageResult
BatchDeleteImageResult()
Aws::ECR::Model::BatchDeleteImageResult::AddFailures
BatchDeleteImageResult & AddFailures(ImageFailure &&value)
Definition: BatchDeleteImageResult.h:106
ECR_EXPORTS.h
Aws::ECR::Model::BatchDeleteImageResult::WithImageIds
BatchDeleteImageResult & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: BatchDeleteImageResult.h:60
Aws::ECR::Model::BatchDeleteImageResult::AddFailures
BatchDeleteImageResult & AddFailures(const ImageFailure &value)
Definition: BatchDeleteImageResult.h:101
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::ImageFailure
Definition: ImageFailure.h:34
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::BatchDeleteImageResult::WithFailures
BatchDeleteImageResult & WithFailures(Aws::Vector< ImageFailure > &&value)
Definition: BatchDeleteImageResult.h:96
Aws::ECR::Model::BatchDeleteImageResult::operator=
BatchDeleteImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImageFailure.h
Aws::ECR::Model::BatchDeleteImageResult::WithImageIds
BatchDeleteImageResult & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: BatchDeleteImageResult.h:55