AWS SDK for C++  0.12.9
AWS SDK for C++
BatchGetImageResult.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/Image.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<Image>& GetImages() const{ return m_images; }
49 
54  inline void SetImages(const Aws::Vector<Image>& value) { m_images = value; }
55 
60  inline void SetImages(Aws::Vector<Image>&& value) { m_images = value; }
61 
66  inline BatchGetImageResult& WithImages(const Aws::Vector<Image>& value) { SetImages(value); return *this;}
67 
72  inline BatchGetImageResult& WithImages(Aws::Vector<Image>&& value) { SetImages(value); return *this;}
73 
78  inline BatchGetImageResult& AddImages(const Image& value) { m_images.push_back(value); return *this; }
79 
84  inline BatchGetImageResult& AddImages(Image&& value) { m_images.push_back(value); return *this; }
85 
89  inline const Aws::Vector<ImageFailure>& GetFailures() const{ return m_failures; }
90 
94  inline void SetFailures(const Aws::Vector<ImageFailure>& value) { m_failures = value; }
95 
99  inline void SetFailures(Aws::Vector<ImageFailure>&& value) { m_failures = value; }
100 
104  inline BatchGetImageResult& WithFailures(const Aws::Vector<ImageFailure>& value) { SetFailures(value); return *this;}
105 
109  inline BatchGetImageResult& WithFailures(Aws::Vector<ImageFailure>&& value) { SetFailures(value); return *this;}
110 
114  inline BatchGetImageResult& AddFailures(const ImageFailure& value) { m_failures.push_back(value); return *this; }
115 
119  inline BatchGetImageResult& AddFailures(ImageFailure&& value) { m_failures.push_back(value); return *this; }
120 
121  private:
122  Aws::Vector<Image> m_images;
123  Aws::Vector<ImageFailure> m_failures;
124  };
125 
126 } // namespace Model
127 } // namespace ECR
128 } // namespace Aws
void SetFailures(Aws::Vector< ImageFailure > &&value)
const Aws::Vector< Image > & GetImages() const
void SetImages(Aws::Vector< Image > &&value)
BatchGetImageResult & WithFailures(Aws::Vector< ImageFailure > &&value)
BatchGetImageResult & WithImages(const Aws::Vector< Image > &value)
BatchGetImageResult & AddImages(const Image &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
BatchGetImageResult & WithFailures(const Aws::Vector< ImageFailure > &value)
BatchGetImageResult & WithImages(Aws::Vector< Image > &&value)
BatchGetImageResult & AddImages(Image &&value)
void SetFailures(const Aws::Vector< ImageFailure > &value)
BatchGetImageResult & AddFailures(const ImageFailure &value)
BatchGetImageResult & AddFailures(ImageFailure &&value)
const Aws::Vector< ImageFailure > & GetFailures() const
void SetImages(const Aws::Vector< Image > &value)
JSON (JavaScript Object Notation).