com.backblaze.b2.client.structures.B2DeleteFileVersionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of b2-sdk-core Show documentation
Show all versions of b2-sdk-core Show documentation
The core logic for B2 SDK for Java. Does not include any implementations of B2WebApiClient.
/*
* Copyright 2017, Backblaze Inc. All Rights Reserved.
* License https://www.backblaze.com/using_b2_code.html
*/
package com.backblaze.b2.client.structures;
import com.backblaze.b2.json.B2Json;
import java.util.Objects;
public class B2DeleteFileVersionRequest {
@B2Json.required
private final String fileName;
@B2Json.required
private final String fileId;
@B2Json.constructor(params = "fileName,fileId")
public B2DeleteFileVersionRequest(String fileName,
String fileId) {
this.fileName = fileName;
this.fileId = fileId;
}
public String getFileName() {
return fileName;
}
public String getFileId() {
return fileId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
B2DeleteFileVersionRequest that = (B2DeleteFileVersionRequest) o;
return Objects.equals(getFileName(), that.getFileName()) &&
Objects.equals(getFileId(), that.getFileId());
}
@Override
public int hashCode() {
return Objects.hash(getFileName(), getFileId());
}
public static Builder builder(String fileName,
String fileId) {
return new Builder(fileName, fileId);
}
public static class Builder {
private final String fileName;
private final String fileId;
public Builder(String fileName,
String fileId) {
this.fileName = fileName;
this.fileId = fileId;
}
public B2DeleteFileVersionRequest build() {
return new B2DeleteFileVersionRequest(fileName, fileId);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy