
com.pulumi.azurenative.migrate.outputs.WebApplicationDirectoryResponse Maven / Gradle / Ivy
// *** 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.migrate.outputs;
import com.pulumi.azurenative.migrate.outputs.TargetStorageProfileResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebApplicationDirectoryResponse {
/**
* @return Gets the unique id corresponding to the application directory.
*
*/
private String id;
/**
* @return Gets or sets a value indicating whether the directory object is editable.
* True when the directory is added as an optional directory, false when discovery is done
* manually.
*
*/
private @Nullable Boolean isEditable;
/**
* @return Gets or sets the paths of the directory on the source machine.
*
*/
private @Nullable List sourcePaths;
/**
* @return Gets or sets the size of the directory on the source machine.
*
*/
private @Nullable String sourceSize;
/**
* @return Storage profile for the directory on the target container.
*
*/
private @Nullable TargetStorageProfileResponse storageProfile;
private WebApplicationDirectoryResponse() {}
/**
* @return Gets the unique id corresponding to the application directory.
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets a value indicating whether the directory object is editable.
* True when the directory is added as an optional directory, false when discovery is done
* manually.
*
*/
public Optional isEditable() {
return Optional.ofNullable(this.isEditable);
}
/**
* @return Gets or sets the paths of the directory on the source machine.
*
*/
public List sourcePaths() {
return this.sourcePaths == null ? List.of() : this.sourcePaths;
}
/**
* @return Gets or sets the size of the directory on the source machine.
*
*/
public Optional sourceSize() {
return Optional.ofNullable(this.sourceSize);
}
/**
* @return Storage profile for the directory on the target container.
*
*/
public Optional storageProfile() {
return Optional.ofNullable(this.storageProfile);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebApplicationDirectoryResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable Boolean isEditable;
private @Nullable List sourcePaths;
private @Nullable String sourceSize;
private @Nullable TargetStorageProfileResponse storageProfile;
public Builder() {}
public Builder(WebApplicationDirectoryResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.isEditable = defaults.isEditable;
this.sourcePaths = defaults.sourcePaths;
this.sourceSize = defaults.sourceSize;
this.storageProfile = defaults.storageProfile;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("WebApplicationDirectoryResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isEditable(@Nullable Boolean isEditable) {
this.isEditable = isEditable;
return this;
}
@CustomType.Setter
public Builder sourcePaths(@Nullable List sourcePaths) {
this.sourcePaths = sourcePaths;
return this;
}
public Builder sourcePaths(String... sourcePaths) {
return sourcePaths(List.of(sourcePaths));
}
@CustomType.Setter
public Builder sourceSize(@Nullable String sourceSize) {
this.sourceSize = sourceSize;
return this;
}
@CustomType.Setter
public Builder storageProfile(@Nullable TargetStorageProfileResponse storageProfile) {
this.storageProfile = storageProfile;
return this;
}
public WebApplicationDirectoryResponse build() {
final var _resultValue = new WebApplicationDirectoryResponse();
_resultValue.id = id;
_resultValue.isEditable = isEditable;
_resultValue.sourcePaths = sourcePaths;
_resultValue.sourceSize = sourceSize;
_resultValue.storageProfile = storageProfile;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy