All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.storage.v1beta1.outputs.VolumeAttachmentSourcePatch Maven / Gradle / Ivy

There is a newer version: 4.19.0
Show newest version
// *** 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.v1beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.core.v1.outputs.PersistentVolumeSpecPatch;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VolumeAttachmentSourcePatch {
    /**
     * @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 alpha-level and is only honored by servers that enabled the CSIMigration feature.
     * 
     */
    private @Nullable PersistentVolumeSpecPatch inlineVolumeSpec;
    /**
     * @return Name of the persistent volume to attach.
     * 
     */
    private @Nullable String persistentVolumeName;

    private VolumeAttachmentSourcePatch() {}
    /**
     * @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 alpha-level and is only honored by servers that enabled the CSIMigration feature.
     * 
     */
    public Optional inlineVolumeSpec() {
        return Optional.ofNullable(this.inlineVolumeSpec);
    }
    /**
     * @return 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(VolumeAttachmentSourcePatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PersistentVolumeSpecPatch inlineVolumeSpec;
        private @Nullable String persistentVolumeName;
        public Builder() {}
        public Builder(VolumeAttachmentSourcePatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.inlineVolumeSpec = defaults.inlineVolumeSpec;
    	      this.persistentVolumeName = defaults.persistentVolumeName;
        }

        @CustomType.Setter
        public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpecPatch inlineVolumeSpec) {

            this.inlineVolumeSpec = inlineVolumeSpec;
            return this;
        }
        @CustomType.Setter
        public Builder persistentVolumeName(@Nullable String persistentVolumeName) {

            this.persistentVolumeName = persistentVolumeName;
            return this;
        }
        public VolumeAttachmentSourcePatch build() {
            final var _resultValue = new VolumeAttachmentSourcePatch();
            _resultValue.inlineVolumeSpec = inlineVolumeSpec;
            _resultValue.persistentVolumeName = persistentVolumeName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy