// *** 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.core.v1.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 AzureFileVolumeSourcePatch {
    /**
     * @return readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * 
     */
    private @Nullable Boolean readOnly;
    /**
     * @return secretName is the  name of secret that contains Azure Storage Account Name and Key
     * 
     */
    private @Nullable String secretName;
    /**
     * @return shareName is the azure share Name
     * 
     */
    private @Nullable String shareName;

    private AzureFileVolumeSourcePatch() {}
    /**
     * @return readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * 
     */
    public Optional<Boolean> readOnly() {
        return Optional.ofNullable(this.readOnly);
    }
    /**
     * @return secretName is the  name of secret that contains Azure Storage Account Name and Key
     * 
     */
    public Optional<String> secretName() {
        return Optional.ofNullable(this.secretName);
    }
    /**
     * @return shareName is the azure share Name
     * 
     */
    public Optional<String> shareName() {
        return Optional.ofNullable(this.shareName);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AzureFileVolumeSourcePatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean readOnly;
        private @Nullable String secretName;
        private @Nullable String shareName;
        public Builder() {}
        public Builder(AzureFileVolumeSourcePatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.readOnly = defaults.readOnly;
    	      this.secretName = defaults.secretName;
    	      this.shareName = defaults.shareName;
        }

        @CustomType.Setter
        public Builder readOnly(@Nullable Boolean readOnly) {
            this.readOnly = readOnly;
            return this;
        }
        @CustomType.Setter
        public Builder secretName(@Nullable String secretName) {
            this.secretName = secretName;
            return this;
        }
        @CustomType.Setter
        public Builder shareName(@Nullable String shareName) {
            this.shareName = shareName;
            return this;
        }
        public AzureFileVolumeSourcePatch build() {
            final var o = new AzureFileVolumeSourcePatch();
            o.readOnly = readOnly;
            o.secretName = secretName;
            o.shareName = shareName;
            return o;
        }
    }
}
