
com.pulumi.azurenative.awsconnector.outputs.MountPointResponse 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.awsconnector.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MountPointResponse {
/**
* @return The path on the container to mount the host volume at.
*
*/
private @Nullable String containerPath;
/**
* @return If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
*
*/
private @Nullable Boolean readOnly;
/**
* @return The name of the volume to mount. Must be a volume name referenced in the ``name`` parameter of task definition ``volume``.
*
*/
private @Nullable String sourceVolume;
private MountPointResponse() {}
/**
* @return The path on the container to mount the host volume at.
*
*/
public Optional containerPath() {
return Optional.ofNullable(this.containerPath);
}
/**
* @return If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
*
*/
public Optional readOnly() {
return Optional.ofNullable(this.readOnly);
}
/**
* @return The name of the volume to mount. Must be a volume name referenced in the ``name`` parameter of task definition ``volume``.
*
*/
public Optional sourceVolume() {
return Optional.ofNullable(this.sourceVolume);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MountPointResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String containerPath;
private @Nullable Boolean readOnly;
private @Nullable String sourceVolume;
public Builder() {}
public Builder(MountPointResponse defaults) {
Objects.requireNonNull(defaults);
this.containerPath = defaults.containerPath;
this.readOnly = defaults.readOnly;
this.sourceVolume = defaults.sourceVolume;
}
@CustomType.Setter
public Builder containerPath(@Nullable String containerPath) {
this.containerPath = containerPath;
return this;
}
@CustomType.Setter
public Builder readOnly(@Nullable Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
@CustomType.Setter
public Builder sourceVolume(@Nullable String sourceVolume) {
this.sourceVolume = sourceVolume;
return this;
}
public MountPointResponse build() {
final var _resultValue = new MountPointResponse();
_resultValue.containerPath = containerPath;
_resultValue.readOnly = readOnly;
_resultValue.sourceVolume = sourceVolume;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy