AWS SDK for C++  0.12.9
AWS SDK for C++
BatchCheckLayerAvailabilityResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecr/ECR_EXPORTS.h>
18 #include <aws/ecr/model/Layer.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace ECR
34 {
35 namespace Model
36 {
38  {
39  public:
43 
48  inline const Aws::Vector<Layer>& GetLayers() const{ return m_layers; }
49 
54  inline void SetLayers(const Aws::Vector<Layer>& value) { m_layers = value; }
55 
60  inline void SetLayers(Aws::Vector<Layer>&& value) { m_layers = value; }
61 
66  inline BatchCheckLayerAvailabilityResult& WithLayers(const Aws::Vector<Layer>& value) { SetLayers(value); return *this;}
67 
72  inline BatchCheckLayerAvailabilityResult& WithLayers(Aws::Vector<Layer>&& value) { SetLayers(value); return *this;}
73 
78  inline BatchCheckLayerAvailabilityResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; }
79 
84  inline BatchCheckLayerAvailabilityResult& AddLayers(Layer&& value) { m_layers.push_back(value); return *this; }
85 
89  inline const Aws::Vector<LayerFailure>& GetFailures() const{ return m_failures; }
90 
94  inline void SetFailures(const Aws::Vector<LayerFailure>& value) { m_failures = value; }
95 
99  inline void SetFailures(Aws::Vector<LayerFailure>&& value) { m_failures = value; }
100 
104  inline BatchCheckLayerAvailabilityResult& WithFailures(const Aws::Vector<LayerFailure>& value) { SetFailures(value); return *this;}
105 
109  inline BatchCheckLayerAvailabilityResult& WithFailures(Aws::Vector<LayerFailure>&& value) { SetFailures(value); return *this;}
110 
114  inline BatchCheckLayerAvailabilityResult& AddFailures(const LayerFailure& value) { m_failures.push_back(value); return *this; }
115 
119  inline BatchCheckLayerAvailabilityResult& AddFailures(LayerFailure&& value) { m_failures.push_back(value); return *this; }
120 
121  private:
122  Aws::Vector<Layer> m_layers;
123  Aws::Vector<LayerFailure> m_failures;
124  };
125 
126 } // namespace Model
127 } // namespace ECR
128 } // namespace Aws
BatchCheckLayerAvailabilityResult & WithFailures(const Aws::Vector< LayerFailure > &value)
BatchCheckLayerAvailabilityResult & AddFailures(const LayerFailure &value)
BatchCheckLayerAvailabilityResult & AddLayers(const Layer &value)
const Aws::Vector< LayerFailure > & GetFailures() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
BatchCheckLayerAvailabilityResult & AddLayers(Layer &&value)
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
BatchCheckLayerAvailabilityResult & WithLayers(const Aws::Vector< Layer > &value)
void SetFailures(const Aws::Vector< LayerFailure > &value)
BatchCheckLayerAvailabilityResult & WithLayers(Aws::Vector< Layer > &&value)
BatchCheckLayerAvailabilityResult & AddFailures(LayerFailure &&value)
BatchCheckLayerAvailabilityResult & WithFailures(Aws::Vector< LayerFailure > &&value)
JSON (JavaScript Object Notation).