
com.pulumi.azurenative.databox.outputs.DataBoxDiskCopyProgressResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.databox.outputs;
import com.pulumi.azurenative.databox.outputs.CloudErrorResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class DataBoxDiskCopyProgressResponse {
/**
* @return Available actions on the job.
*
*/
private List actions;
/**
* @return Bytes copied during the copy of disk.
*
*/
private Double bytesCopied;
/**
* @return Error, if any, in the stage
*
*/
private CloudErrorResponse error;
/**
* @return Indicates the percentage completed for the copy of the disk.
*
*/
private Integer percentComplete;
/**
* @return The serial number of the disk
*
*/
private String serialNumber;
/**
* @return The Status of the copy
*
*/
private String status;
private DataBoxDiskCopyProgressResponse() {}
/**
* @return Available actions on the job.
*
*/
public List actions() {
return this.actions;
}
/**
* @return Bytes copied during the copy of disk.
*
*/
public Double bytesCopied() {
return this.bytesCopied;
}
/**
* @return Error, if any, in the stage
*
*/
public CloudErrorResponse error() {
return this.error;
}
/**
* @return Indicates the percentage completed for the copy of the disk.
*
*/
public Integer percentComplete() {
return this.percentComplete;
}
/**
* @return The serial number of the disk
*
*/
public String serialNumber() {
return this.serialNumber;
}
/**
* @return The Status of the copy
*
*/
public String status() {
return this.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataBoxDiskCopyProgressResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List actions;
private Double bytesCopied;
private CloudErrorResponse error;
private Integer percentComplete;
private String serialNumber;
private String status;
public Builder() {}
public Builder(DataBoxDiskCopyProgressResponse defaults) {
Objects.requireNonNull(defaults);
this.actions = defaults.actions;
this.bytesCopied = defaults.bytesCopied;
this.error = defaults.error;
this.percentComplete = defaults.percentComplete;
this.serialNumber = defaults.serialNumber;
this.status = defaults.status;
}
@CustomType.Setter
public Builder actions(List actions) {
if (actions == null) {
throw new MissingRequiredPropertyException("DataBoxDiskCopyProgressResponse", "actions");
}
this.actions = actions;
return this;
}
public Builder actions(String... actions) {
return actions(List.of(actions));
}
@CustomType.Setter
public Builder bytesCopied(Double bytesCopied) {
if (bytesCopied == null) {
throw new MissingRequiredPropertyException("DataBoxDiskCopyProgressResponse", "bytesCopied");
}
this.bytesCopied = bytesCopied;
return this;
}
@CustomType.Setter
public Builder error(CloudErrorResponse error) {
if (error == null) {
throw new MissingRequiredPropertyException("DataBoxDiskCopyProgressResponse", "error");
}
this.error = error;
return this;
}
@CustomType.Setter
public Builder percentComplete(Integer percentComplete) {
if (percentComplete == null) {
throw new MissingRequiredPropertyException("DataBoxDiskCopyProgressResponse", "percentComplete");
}
this.percentComplete = percentComplete;
return this;
}
@CustomType.Setter
public Builder serialNumber(String serialNumber) {
if (serialNumber == null) {
throw new MissingRequiredPropertyException("DataBoxDiskCopyProgressResponse", "serialNumber");
}
this.serialNumber = serialNumber;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("DataBoxDiskCopyProgressResponse", "status");
}
this.status = status;
return this;
}
public DataBoxDiskCopyProgressResponse build() {
final var _resultValue = new DataBoxDiskCopyProgressResponse();
_resultValue.actions = actions;
_resultValue.bytesCopied = bytesCopied;
_resultValue.error = error;
_resultValue.percentComplete = percentComplete;
_resultValue.serialNumber = serialNumber;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy