AWS SDK for C++  1.9.103
AWS SDK for C++
BatchCheckLayerAvailabilityResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
9 #include <aws/ecr/model/Layer.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<Layer>& GetLayers() const{ return m_layers; }
42 
47  inline void SetLayers(const Aws::Vector<Layer>& value) { m_layers = value; }
48 
53  inline void SetLayers(Aws::Vector<Layer>&& value) { m_layers = std::move(value); }
54 
59  inline BatchCheckLayerAvailabilityResult& WithLayers(const Aws::Vector<Layer>& value) { SetLayers(value); return *this;}
60 
65  inline BatchCheckLayerAvailabilityResult& WithLayers(Aws::Vector<Layer>&& value) { SetLayers(std::move(value)); return *this;}
66 
71  inline BatchCheckLayerAvailabilityResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; }
72 
77  inline BatchCheckLayerAvailabilityResult& AddLayers(Layer&& value) { m_layers.push_back(std::move(value)); return *this; }
78 
79 
83  inline const Aws::Vector<LayerFailure>& GetFailures() const{ return m_failures; }
84 
88  inline void SetFailures(const Aws::Vector<LayerFailure>& value) { m_failures = value; }
89 
93  inline void SetFailures(Aws::Vector<LayerFailure>&& value) { m_failures = std::move(value); }
94 
98  inline BatchCheckLayerAvailabilityResult& WithFailures(const Aws::Vector<LayerFailure>& value) { SetFailures(value); return *this;}
99 
103  inline BatchCheckLayerAvailabilityResult& WithFailures(Aws::Vector<LayerFailure>&& value) { SetFailures(std::move(value)); return *this;}
104 
108  inline BatchCheckLayerAvailabilityResult& AddFailures(const LayerFailure& value) { m_failures.push_back(value); return *this; }
109 
113  inline BatchCheckLayerAvailabilityResult& AddFailures(LayerFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  Aws::Vector<Layer> m_layers;
118 
119  Aws::Vector<LayerFailure> m_failures;
120  };
121 
122 } // namespace Model
123 } // namespace ECR
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECR::Model::LayerFailure
Definition: LayerFailure.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::SetFailures
void SetFailures(Aws::Vector< LayerFailure > &&value)
Definition: BatchCheckLayerAvailabilityResult.h:93
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::operator=
BatchCheckLayerAvailabilityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::AddFailures
BatchCheckLayerAvailabilityResult & AddFailures(LayerFailure &&value)
Definition: BatchCheckLayerAvailabilityResult.h:113
AWSVector.h
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::WithLayers
BatchCheckLayerAvailabilityResult & WithLayers(const Aws::Vector< Layer > &value)
Definition: BatchCheckLayerAvailabilityResult.h:59
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::BatchCheckLayerAvailabilityResult
BatchCheckLayerAvailabilityResult()
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::SetLayers
void SetLayers(const Aws::Vector< Layer > &value)
Definition: BatchCheckLayerAvailabilityResult.h:47
Layer.h
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::SetFailures
void SetFailures(const Aws::Vector< LayerFailure > &value)
Definition: BatchCheckLayerAvailabilityResult.h:88
ECR_EXPORTS.h
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::WithFailures
BatchCheckLayerAvailabilityResult & WithFailures(const Aws::Vector< LayerFailure > &value)
Definition: BatchCheckLayerAvailabilityResult.h:98
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::WithFailures
BatchCheckLayerAvailabilityResult & WithFailures(Aws::Vector< LayerFailure > &&value)
Definition: BatchCheckLayerAvailabilityResult.h:103
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::GetLayers
const Aws::Vector< Layer > & GetLayers() const
Definition: BatchCheckLayerAvailabilityResult.h:41
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::AddFailures
BatchCheckLayerAvailabilityResult & AddFailures(const LayerFailure &value)
Definition: BatchCheckLayerAvailabilityResult.h:108
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::SetLayers
void SetLayers(Aws::Vector< Layer > &&value)
Definition: BatchCheckLayerAvailabilityResult.h:53
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::AddLayers
BatchCheckLayerAvailabilityResult & AddLayers(const Layer &value)
Definition: BatchCheckLayerAvailabilityResult.h:71
LayerFailure.h
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::WithLayers
BatchCheckLayerAvailabilityResult & WithLayers(Aws::Vector< Layer > &&value)
Definition: BatchCheckLayerAvailabilityResult.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::AddLayers
BatchCheckLayerAvailabilityResult & AddLayers(Layer &&value)
Definition: BatchCheckLayerAvailabilityResult.h:77
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::BatchCheckLayerAvailabilityResult
BatchCheckLayerAvailabilityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::BatchCheckLayerAvailabilityResult
Definition: BatchCheckLayerAvailabilityResult.h:30
Aws::ECR::Model::Layer
Definition: Layer.h:33
Aws::ECR::Model::BatchCheckLayerAvailabilityResult::GetFailures
const Aws::Vector< LayerFailure > & GetFailures() const
Definition: BatchCheckLayerAvailabilityResult.h:83