AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchCheckLayerAvailabilityResult.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr/model/Layer.h>
11#include <aws/ecr/model/LayerFailure.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ECR
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ECR_API BatchCheckLayerAvailabilityResult() = default;
36
37
39
43 inline const Aws::Vector<Layer>& GetLayers() const { return m_layers; }
44 template<typename LayersT = Aws::Vector<Layer>>
45 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
46 template<typename LayersT = Aws::Vector<Layer>>
47 BatchCheckLayerAvailabilityResult& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
48 template<typename LayersT = Layer>
49 BatchCheckLayerAvailabilityResult& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(value)); return *this; }
51
53
56 inline const Aws::Vector<LayerFailure>& GetFailures() const { return m_failures; }
57 template<typename FailuresT = Aws::Vector<LayerFailure>>
58 void SetFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures = std::forward<FailuresT>(value); }
59 template<typename FailuresT = Aws::Vector<LayerFailure>>
60 BatchCheckLayerAvailabilityResult& WithFailures(FailuresT&& value) { SetFailures(std::forward<FailuresT>(value)); return *this;}
61 template<typename FailuresT = LayerFailure>
62 BatchCheckLayerAvailabilityResult& AddFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures.emplace_back(std::forward<FailuresT>(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template<typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
70 template<typename RequestIdT = Aws::String>
71 BatchCheckLayerAvailabilityResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
73 private:
74
75 Aws::Vector<Layer> m_layers;
76 bool m_layersHasBeenSet = false;
77
79 bool m_failuresHasBeenSet = false;
80
81 Aws::String m_requestId;
82 bool m_requestIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ECR
87} // namespace Aws
BatchCheckLayerAvailabilityResult & WithLayers(LayersT &&value)
BatchCheckLayerAvailabilityResult & WithFailures(FailuresT &&value)
AWS_ECR_API BatchCheckLayerAvailabilityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchCheckLayerAvailabilityResult & AddFailures(FailuresT &&value)
AWS_ECR_API BatchCheckLayerAvailabilityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchCheckLayerAvailabilityResult & WithRequestId(RequestIdT &&value)
BatchCheckLayerAvailabilityResult & AddLayers(LayersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue