com.pulumi.alicloud.eci.outputs.GetContainerGroupsGroupInitContainerVolumeMount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.eci.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetContainerGroupsGroupInitContainerVolumeMount {
/**
* @return The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
*
*/
private String mountPath;
/**
* @return The name of the volume. The name is the same as the volume you selected when you purchased the container.
*
*/
private String name;
/**
* @return Default value: `false`.
*
*/
private Boolean readOnly;
private GetContainerGroupsGroupInitContainerVolumeMount() {}
/**
* @return The directory of the mounted volume. Data under this directory will be overwritten by the data in the volume.
*
*/
public String mountPath() {
return this.mountPath;
}
/**
* @return The name of the volume. The name is the same as the volume you selected when you purchased the container.
*
*/
public String name() {
return this.name;
}
/**
* @return Default value: `false`.
*
*/
public Boolean readOnly() {
return this.readOnly;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetContainerGroupsGroupInitContainerVolumeMount defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String mountPath;
private String name;
private Boolean readOnly;
public Builder() {}
public Builder(GetContainerGroupsGroupInitContainerVolumeMount defaults) {
Objects.requireNonNull(defaults);
this.mountPath = defaults.mountPath;
this.name = defaults.name;
this.readOnly = defaults.readOnly;
}
@CustomType.Setter
public Builder mountPath(String mountPath) {
if (mountPath == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainerVolumeMount", "mountPath");
}
this.mountPath = mountPath;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainerVolumeMount", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder readOnly(Boolean readOnly) {
if (readOnly == null) {
throw new MissingRequiredPropertyException("GetContainerGroupsGroupInitContainerVolumeMount", "readOnly");
}
this.readOnly = readOnly;
return this;
}
public GetContainerGroupsGroupInitContainerVolumeMount build() {
final var _resultValue = new GetContainerGroupsGroupInitContainerVolumeMount();
_resultValue.mountPath = mountPath;
_resultValue.name = name;
_resultValue.readOnly = readOnly;
return _resultValue;
}
}
}