/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecrpublic.model; import javax.annotation.Generated; /** *
* The layer part size isn't valid, or the first byte specified isn't consecutive to the last byte of a previous layer * part upload. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InvalidLayerPartException extends com.amazonaws.services.ecrpublic.model.AmazonECRPublicException { private static final long serialVersionUID = 1L; /** ** The Amazon Web Services account ID that's associated with the layer part. *
*/ private String registryId; /** ** The name of the repository. *
*/ private String repositoryName; /** ** The upload ID that's associated with the layer part. *
*/ private String uploadId; /** ** The position of the last byte of the layer part. *
*/ private Long lastValidByteReceived; /** * Constructs a new InvalidLayerPartException with the specified error message. * * @param message * Describes the error encountered. */ public InvalidLayerPartException(String message) { super(message); } /** ** The Amazon Web Services account ID that's associated with the layer part. *
* * @param registryId * The Amazon Web Services account ID that's associated with the layer part. */ @com.fasterxml.jackson.annotation.JsonProperty("registryId") public void setRegistryId(String registryId) { this.registryId = registryId; } /** ** The Amazon Web Services account ID that's associated with the layer part. *
* * @return The Amazon Web Services account ID that's associated with the layer part. */ @com.fasterxml.jackson.annotation.JsonProperty("registryId") public String getRegistryId() { return this.registryId; } /** ** The Amazon Web Services account ID that's associated with the layer part. *
* * @param registryId * The Amazon Web Services account ID that's associated with the layer part. * @return Returns a reference to this object so that method calls can be chained together. */ public InvalidLayerPartException withRegistryId(String registryId) { setRegistryId(registryId); return this; } /** ** The name of the repository. *
* * @param repositoryName * The name of the repository. */ @com.fasterxml.jackson.annotation.JsonProperty("repositoryName") public void setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; } /** ** The name of the repository. *
* * @return The name of the repository. */ @com.fasterxml.jackson.annotation.JsonProperty("repositoryName") public String getRepositoryName() { return this.repositoryName; } /** ** The name of the repository. *
* * @param repositoryName * The name of the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public InvalidLayerPartException withRepositoryName(String repositoryName) { setRepositoryName(repositoryName); return this; } /** ** The upload ID that's associated with the layer part. *
* * @param uploadId * The upload ID that's associated with the layer part. */ @com.fasterxml.jackson.annotation.JsonProperty("uploadId") public void setUploadId(String uploadId) { this.uploadId = uploadId; } /** ** The upload ID that's associated with the layer part. *
* * @return The upload ID that's associated with the layer part. */ @com.fasterxml.jackson.annotation.JsonProperty("uploadId") public String getUploadId() { return this.uploadId; } /** ** The upload ID that's associated with the layer part. *
* * @param uploadId * The upload ID that's associated with the layer part. * @return Returns a reference to this object so that method calls can be chained together. */ public InvalidLayerPartException withUploadId(String uploadId) { setUploadId(uploadId); return this; } /** ** The position of the last byte of the layer part. *
* * @param lastValidByteReceived * The position of the last byte of the layer part. */ @com.fasterxml.jackson.annotation.JsonProperty("lastValidByteReceived") public void setLastValidByteReceived(Long lastValidByteReceived) { this.lastValidByteReceived = lastValidByteReceived; } /** ** The position of the last byte of the layer part. *
* * @return The position of the last byte of the layer part. */ @com.fasterxml.jackson.annotation.JsonProperty("lastValidByteReceived") public Long getLastValidByteReceived() { return this.lastValidByteReceived; } /** ** The position of the last byte of the layer part. *
* * @param lastValidByteReceived * The position of the last byte of the layer part. * @return Returns a reference to this object so that method calls can be chained together. */ public InvalidLayerPartException withLastValidByteReceived(Long lastValidByteReceived) { setLastValidByteReceived(lastValidByteReceived); return this; } }