AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchCheckLayerAvailabilityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11#include <aws/ecr/model/Layer.h>
12#include <aws/ecr/model/LayerFailure.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ECR {
26namespace Model {
28 public:
29 AWS_ECR_API BatchCheckLayerAvailabilityResult() = default;
32
34
38 inline const Aws::Vector<Layer>& GetLayers() const { return m_layers; }
39 template <typename LayersT = Aws::Vector<Layer>>
40 void SetLayers(LayersT&& value) {
41 m_layersHasBeenSet = true;
42 m_layers = std::forward<LayersT>(value);
43 }
44 template <typename LayersT = Aws::Vector<Layer>>
46 SetLayers(std::forward<LayersT>(value));
47 return *this;
48 }
49 template <typename LayersT = Layer>
51 m_layersHasBeenSet = true;
52 m_layers.emplace_back(std::forward<LayersT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<LayerFailure>& GetFailures() const { return m_failures; }
62 template <typename FailuresT = Aws::Vector<LayerFailure>>
63 void SetFailures(FailuresT&& value) {
64 m_failuresHasBeenSet = true;
65 m_failures = std::forward<FailuresT>(value);
66 }
67 template <typename FailuresT = Aws::Vector<LayerFailure>>
69 SetFailures(std::forward<FailuresT>(value));
70 return *this;
71 }
72 template <typename FailuresT = LayerFailure>
74 m_failuresHasBeenSet = true;
75 m_failures.emplace_back(std::forward<FailuresT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::Vector<Layer> m_layers;
98
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_layersHasBeenSet = false;
104 bool m_failuresHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ECR
110} // 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