
com.pulumi.azurenative.awsconnector.outputs.VolumeFromResponse 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 VolumeFromResponse {
/**
* @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 another container within the same task definition to mount volumes from.
*
*/
private @Nullable String sourceContainer;
private VolumeFromResponse() {}
/**
* @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 another container within the same task definition to mount volumes from.
*
*/
public Optional sourceContainer() {
return Optional.ofNullable(this.sourceContainer);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VolumeFromResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean readOnly;
private @Nullable String sourceContainer;
public Builder() {}
public Builder(VolumeFromResponse defaults) {
Objects.requireNonNull(defaults);
this.readOnly = defaults.readOnly;
this.sourceContainer = defaults.sourceContainer;
}
@CustomType.Setter
public Builder readOnly(@Nullable Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
@CustomType.Setter
public Builder sourceContainer(@Nullable String sourceContainer) {
this.sourceContainer = sourceContainer;
return this;
}
public VolumeFromResponse build() {
final var _resultValue = new VolumeFromResponse();
_resultValue.readOnly = readOnly;
_resultValue.sourceContainer = sourceContainer;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy