/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECR { namespace Model { /** *

The layer part size is not valid, or the first byte specified is not * consecutive to the last byte of a previous layer part upload.

See * Also:

AWS * API Reference

*/ class InvalidLayerPartException { public: AWS_ECR_API InvalidLayerPartException(); AWS_ECR_API InvalidLayerPartException(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API InvalidLayerPartException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The registry ID associated with the exception.

*/ inline const Aws::String& GetRegistryId() const{ return m_registryId; } /** *

The registry ID associated with the exception.

*/ inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; } /** *

The registry ID associated with the exception.

*/ inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; } /** *

The registry ID associated with the exception.

*/ inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); } /** *

The registry ID associated with the exception.

*/ inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); } /** *

The registry ID associated with the exception.

*/ inline InvalidLayerPartException& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;} /** *

The registry ID associated with the exception.

*/ inline InvalidLayerPartException& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;} /** *

The registry ID associated with the exception.

*/ inline InvalidLayerPartException& WithRegistryId(const char* value) { SetRegistryId(value); return *this;} /** *

The repository name associated with the exception.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The repository name associated with the exception.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The repository name associated with the exception.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The repository name associated with the exception.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The repository name associated with the exception.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The repository name associated with the exception.

*/ inline InvalidLayerPartException& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The repository name associated with the exception.

*/ inline InvalidLayerPartException& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The repository name associated with the exception.

*/ inline InvalidLayerPartException& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The upload ID associated with the exception.

*/ inline const Aws::String& GetUploadId() const{ return m_uploadId; } /** *

The upload ID associated with the exception.

*/ inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; } /** *

The upload ID associated with the exception.

*/ inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; } /** *

The upload ID associated with the exception.

*/ inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); } /** *

The upload ID associated with the exception.

*/ inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); } /** *

The upload ID associated with the exception.

*/ inline InvalidLayerPartException& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

The upload ID associated with the exception.

*/ inline InvalidLayerPartException& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} /** *

The upload ID associated with the exception.

*/ inline InvalidLayerPartException& WithUploadId(const char* value) { SetUploadId(value); return *this;} /** *

The last valid byte received from the layer part upload that is associated * with the exception.

*/ inline long long GetLastValidByteReceived() const{ return m_lastValidByteReceived; } /** *

The last valid byte received from the layer part upload that is associated * with the exception.

*/ inline bool LastValidByteReceivedHasBeenSet() const { return m_lastValidByteReceivedHasBeenSet; } /** *

The last valid byte received from the layer part upload that is associated * with the exception.

*/ inline void SetLastValidByteReceived(long long value) { m_lastValidByteReceivedHasBeenSet = true; m_lastValidByteReceived = value; } /** *

The last valid byte received from the layer part upload that is associated * with the exception.

*/ inline InvalidLayerPartException& WithLastValidByteReceived(long long value) { SetLastValidByteReceived(value); return *this;} /** *

The error message associated with the exception.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The error message associated with the exception.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The error message associated with the exception.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The error message associated with the exception.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The error message associated with the exception.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The error message associated with the exception.

*/ inline InvalidLayerPartException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The error message associated with the exception.

*/ inline InvalidLayerPartException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The error message associated with the exception.

*/ inline InvalidLayerPartException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_registryId; bool m_registryIdHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_uploadId; bool m_uploadIdHasBeenSet = false; long long m_lastValidByteReceived; bool m_lastValidByteReceivedHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws