com.pulumi.kubernetes.storage.v1.outputs.VolumeAttachmentSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes 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.kubernetes.storage.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.core.v1.outputs.PersistentVolumeSpec;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VolumeAttachmentSource {
/**
* @return inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.
*
*/
private @Nullable PersistentVolumeSpec inlineVolumeSpec;
/**
* @return persistentVolumeName represents the name of the persistent volume to attach.
*
*/
private @Nullable String persistentVolumeName;
private VolumeAttachmentSource() {}
/**
* @return inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.
*
*/
public Optional inlineVolumeSpec() {
return Optional.ofNullable(this.inlineVolumeSpec);
}
/**
* @return persistentVolumeName represents the name of the persistent volume to attach.
*
*/
public Optional persistentVolumeName() {
return Optional.ofNullable(this.persistentVolumeName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VolumeAttachmentSource defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable PersistentVolumeSpec inlineVolumeSpec;
private @Nullable String persistentVolumeName;
public Builder() {}
public Builder(VolumeAttachmentSource defaults) {
Objects.requireNonNull(defaults);
this.inlineVolumeSpec = defaults.inlineVolumeSpec;
this.persistentVolumeName = defaults.persistentVolumeName;
}
@CustomType.Setter
public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpec inlineVolumeSpec) {
this.inlineVolumeSpec = inlineVolumeSpec;
return this;
}
@CustomType.Setter
public Builder persistentVolumeName(@Nullable String persistentVolumeName) {
this.persistentVolumeName = persistentVolumeName;
return this;
}
public VolumeAttachmentSource build() {
final var _resultValue = new VolumeAttachmentSource();
_resultValue.inlineVolumeSpec = inlineVolumeSpec;
_resultValue.persistentVolumeName = persistentVolumeName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy