AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchCheckLayerAvailabilityResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/Layer.h>
11#include <aws/ecr/model/LayerFailure.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ECR {
25namespace Model {
27 public:
28 AWS_ECR_API BatchCheckLayerAvailabilityResult() = default;
31
33
37 inline const Aws::Vector<Layer>& GetLayers() const { return m_layers; }
38 template <typename LayersT = Aws::Vector<Layer>>
39 void SetLayers(LayersT&& value) {
40 m_layersHasBeenSet = true;
41 m_layers = std::forward<LayersT>(value);
42 }
43 template <typename LayersT = Aws::Vector<Layer>>
45 SetLayers(std::forward<LayersT>(value));
46 return *this;
47 }
48 template <typename LayersT = Layer>
50 m_layersHasBeenSet = true;
51 m_layers.emplace_back(std::forward<LayersT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<LayerFailure>& GetFailures() const { return m_failures; }
61 template <typename FailuresT = Aws::Vector<LayerFailure>>
62 void SetFailures(FailuresT&& value) {
63 m_failuresHasBeenSet = true;
64 m_failures = std::forward<FailuresT>(value);
65 }
66 template <typename FailuresT = Aws::Vector<LayerFailure>>
68 SetFailures(std::forward<FailuresT>(value));
69 return *this;
70 }
71 template <typename FailuresT = LayerFailure>
73 m_failuresHasBeenSet = true;
74 m_failures.emplace_back(std::forward<FailuresT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::Vector<Layer> m_layers;
95
97
98 Aws::String m_requestId;
99 bool m_layersHasBeenSet = false;
100 bool m_failuresHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ECR
106} // 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