com.amazonaws.services.ecr.model.InvalidLayerPartException Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ecr Show documentation
/*
* Copyright 2019-2024 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.ecr.model;
import javax.annotation.Generated;
/**
*
* 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.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class InvalidLayerPartException extends com.amazonaws.services.ecr.model.AmazonECRException {
private static final long serialVersionUID = 1L;
/**
*
* The registry ID associated with the exception.
*
*/
private String registryId;
/**
*
* The repository name associated with the exception.
*
*/
private String repositoryName;
/**
*
* The upload ID associated with the exception.
*
*/
private String uploadId;
/**
*
* The last valid byte received from the layer part upload that is associated with the exception.
*
*/
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 registry ID associated with the exception.
*
*
* @param registryId
* The registry ID associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("registryId")
public void setRegistryId(String registryId) {
this.registryId = registryId;
}
/**
*
* The registry ID associated with the exception.
*
*
* @return The registry ID associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("registryId")
public String getRegistryId() {
return this.registryId;
}
/**
*
* The registry ID associated with the exception.
*
*
* @param registryId
* The registry ID associated with the exception.
* @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 repository name associated with the exception.
*
*
* @param repositoryName
* The repository name associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("repositoryName")
public void setRepositoryName(String repositoryName) {
this.repositoryName = repositoryName;
}
/**
*
* The repository name associated with the exception.
*
*
* @return The repository name associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("repositoryName")
public String getRepositoryName() {
return this.repositoryName;
}
/**
*
* The repository name associated with the exception.
*
*
* @param repositoryName
* The repository name associated with the exception.
* @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 associated with the exception.
*
*
* @param uploadId
* The upload ID associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("uploadId")
public void setUploadId(String uploadId) {
this.uploadId = uploadId;
}
/**
*
* The upload ID associated with the exception.
*
*
* @return The upload ID associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("uploadId")
public String getUploadId() {
return this.uploadId;
}
/**
*
* The upload ID associated with the exception.
*
*
* @param uploadId
* The upload ID associated with the exception.
* @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 last valid byte received from the layer part upload that is associated with the exception.
*
*
* @param lastValidByteReceived
* The last valid byte received from the layer part upload that is associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("lastValidByteReceived")
public void setLastValidByteReceived(Long lastValidByteReceived) {
this.lastValidByteReceived = lastValidByteReceived;
}
/**
*
* The last valid byte received from the layer part upload that is associated with the exception.
*
*
* @return The last valid byte received from the layer part upload that is associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("lastValidByteReceived")
public Long getLastValidByteReceived() {
return this.lastValidByteReceived;
}
/**
*
* The last valid byte received from the layer part upload that is associated with the exception.
*
*
* @param lastValidByteReceived
* The last valid byte received from the layer part upload that is associated with the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InvalidLayerPartException withLastValidByteReceived(Long lastValidByteReceived) {
setLastValidByteReceived(lastValidByteReceived);
return this;
}
}