/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECRPublic { namespace Model { class BatchCheckLayerAvailabilityResult { public: AWS_ECRPUBLIC_API BatchCheckLayerAvailabilityResult(); AWS_ECRPUBLIC_API BatchCheckLayerAvailabilityResult(const Aws::AmazonWebServiceResult& result); AWS_ECRPUBLIC_API BatchCheckLayerAvailabilityResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline const Aws::Vector& GetLayers() const{ return m_layers; } /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline void SetLayers(const Aws::Vector& value) { m_layers = value; } /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline void SetLayers(Aws::Vector&& value) { m_layers = std::move(value); } /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline BatchCheckLayerAvailabilityResult& WithLayers(const Aws::Vector& value) { SetLayers(value); return *this;} /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline BatchCheckLayerAvailabilityResult& WithLayers(Aws::Vector&& value) { SetLayers(std::move(value)); return *this;} /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline BatchCheckLayerAvailabilityResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; } /** *

A list of image layer objects that correspond to the image layer references * in the request.

*/ inline BatchCheckLayerAvailabilityResult& AddLayers(Layer&& value) { m_layers.push_back(std::move(value)); return *this; } /** *

Any failures associated with the call.

*/ inline const Aws::Vector& GetFailures() const{ return m_failures; } /** *

Any failures associated with the call.

*/ inline void SetFailures(const Aws::Vector& value) { m_failures = value; } /** *

Any failures associated with the call.

*/ inline void SetFailures(Aws::Vector&& value) { m_failures = std::move(value); } /** *

Any failures associated with the call.

*/ inline BatchCheckLayerAvailabilityResult& WithFailures(const Aws::Vector& value) { SetFailures(value); return *this;} /** *

Any failures associated with the call.

*/ inline BatchCheckLayerAvailabilityResult& WithFailures(Aws::Vector&& value) { SetFailures(std::move(value)); return *this;} /** *

Any failures associated with the call.

*/ inline BatchCheckLayerAvailabilityResult& AddFailures(const LayerFailure& value) { m_failures.push_back(value); return *this; } /** *

Any failures associated with the call.

*/ inline BatchCheckLayerAvailabilityResult& AddFailures(LayerFailure&& value) { m_failures.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchCheckLayerAvailabilityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchCheckLayerAvailabilityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchCheckLayerAvailabilityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_layers; Aws::Vector m_failures; Aws::String m_requestId; }; } // namespace Model } // namespace ECRPublic } // namespace Aws