com.pulumi.azurenative.web.outputs.VolumeMountResponse 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.web.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VolumeMountResponse {
/**
* @return Target path on the container where volume is mounted on
*
*/
private String containerMountPath;
/**
* @return Config Data to be mounted on the volume
*
*/
private @Nullable String data;
/**
* @return Boolean to specify if the mount is read only on the container
*
*/
private @Nullable Boolean readOnly;
/**
* @return Sub path in the volume where volume is mounted from.
*
*/
private String volumeSubPath;
private VolumeMountResponse() {}
/**
* @return Target path on the container where volume is mounted on
*
*/
public String containerMountPath() {
return this.containerMountPath;
}
/**
* @return Config Data to be mounted on the volume
*
*/
public Optional data() {
return Optional.ofNullable(this.data);
}
/**
* @return Boolean to specify if the mount is read only on the container
*
*/
public Optional readOnly() {
return Optional.ofNullable(this.readOnly);
}
/**
* @return Sub path in the volume where volume is mounted from.
*
*/
public String volumeSubPath() {
return this.volumeSubPath;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VolumeMountResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String containerMountPath;
private @Nullable String data;
private @Nullable Boolean readOnly;
private String volumeSubPath;
public Builder() {}
public Builder(VolumeMountResponse defaults) {
Objects.requireNonNull(defaults);
this.containerMountPath = defaults.containerMountPath;
this.data = defaults.data;
this.readOnly = defaults.readOnly;
this.volumeSubPath = defaults.volumeSubPath;
}
@CustomType.Setter
public Builder containerMountPath(String containerMountPath) {
if (containerMountPath == null) {
throw new MissingRequiredPropertyException("VolumeMountResponse", "containerMountPath");
}
this.containerMountPath = containerMountPath;
return this;
}
@CustomType.Setter
public Builder data(@Nullable String data) {
this.data = data;
return this;
}
@CustomType.Setter
public Builder readOnly(@Nullable Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
@CustomType.Setter
public Builder volumeSubPath(String volumeSubPath) {
if (volumeSubPath == null) {
throw new MissingRequiredPropertyException("VolumeMountResponse", "volumeSubPath");
}
this.volumeSubPath = volumeSubPath;
return this;
}
public VolumeMountResponse build() {
final var _resultValue = new VolumeMountResponse();
_resultValue.containerMountPath = containerMountPath;
_resultValue.data = data;
_resultValue.readOnly = readOnly;
_resultValue.volumeSubPath = volumeSubPath;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy