
com.pulumi.azurenative.azurestackhci.outputs.MarketplaceGalleryImageStatusResponse 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.azurestackhci.outputs;
import com.pulumi.azurenative.azurestackhci.outputs.MarketplaceGalleryImageStatusResponseDownloadStatus;
import com.pulumi.azurenative.azurestackhci.outputs.MarketplaceGalleryImageStatusResponseProvisioningStatus;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MarketplaceGalleryImageStatusResponse {
/**
* @return The download status of the gallery image
*
*/
private @Nullable MarketplaceGalleryImageStatusResponseDownloadStatus downloadStatus;
/**
* @return MarketplaceGalleryImage provisioning error code
*
*/
private @Nullable String errorCode;
/**
* @return Descriptive error message
*
*/
private @Nullable String errorMessage;
/**
* @return The progress of the operation in percentage
*
*/
private @Nullable Double progressPercentage;
private @Nullable MarketplaceGalleryImageStatusResponseProvisioningStatus provisioningStatus;
private MarketplaceGalleryImageStatusResponse() {}
/**
* @return The download status of the gallery image
*
*/
public Optional downloadStatus() {
return Optional.ofNullable(this.downloadStatus);
}
/**
* @return MarketplaceGalleryImage provisioning error code
*
*/
public Optional errorCode() {
return Optional.ofNullable(this.errorCode);
}
/**
* @return Descriptive error message
*
*/
public Optional errorMessage() {
return Optional.ofNullable(this.errorMessage);
}
/**
* @return The progress of the operation in percentage
*
*/
public Optional progressPercentage() {
return Optional.ofNullable(this.progressPercentage);
}
public Optional provisioningStatus() {
return Optional.ofNullable(this.provisioningStatus);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MarketplaceGalleryImageStatusResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable MarketplaceGalleryImageStatusResponseDownloadStatus downloadStatus;
private @Nullable String errorCode;
private @Nullable String errorMessage;
private @Nullable Double progressPercentage;
private @Nullable MarketplaceGalleryImageStatusResponseProvisioningStatus provisioningStatus;
public Builder() {}
public Builder(MarketplaceGalleryImageStatusResponse defaults) {
Objects.requireNonNull(defaults);
this.downloadStatus = defaults.downloadStatus;
this.errorCode = defaults.errorCode;
this.errorMessage = defaults.errorMessage;
this.progressPercentage = defaults.progressPercentage;
this.provisioningStatus = defaults.provisioningStatus;
}
@CustomType.Setter
public Builder downloadStatus(@Nullable MarketplaceGalleryImageStatusResponseDownloadStatus downloadStatus) {
this.downloadStatus = downloadStatus;
return this;
}
@CustomType.Setter
public Builder errorCode(@Nullable String errorCode) {
this.errorCode = errorCode;
return this;
}
@CustomType.Setter
public Builder errorMessage(@Nullable String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
@CustomType.Setter
public Builder progressPercentage(@Nullable Double progressPercentage) {
this.progressPercentage = progressPercentage;
return this;
}
@CustomType.Setter
public Builder provisioningStatus(@Nullable MarketplaceGalleryImageStatusResponseProvisioningStatus provisioningStatus) {
this.provisioningStatus = provisioningStatus;
return this;
}
public MarketplaceGalleryImageStatusResponse build() {
final var _resultValue = new MarketplaceGalleryImageStatusResponse();
_resultValue.downloadStatus = downloadStatus;
_resultValue.errorCode = errorCode;
_resultValue.errorMessage = errorMessage;
_resultValue.progressPercentage = progressPercentage;
_resultValue.provisioningStatus = provisioningStatus;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy