// *** 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.azure.containerservice.outputs;

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

@CustomType
public final class GroupInitContainerVolumeGitRepo {
    /**
     * @return Specifies the directory into which the repository should be cloned. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable String directory;
    /**
     * @return Specifies the commit hash of the revision to be cloned. If unspecified, the HEAD revision is cloned. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable String revision;
    /**
     * @return Specifies the Git repository to be cloned. Changing this forces a new resource to be created.
     * 
     */
    private String url;

    private GroupInitContainerVolumeGitRepo() {}
    /**
     * @return Specifies the directory into which the repository should be cloned. Changing this forces a new resource to be created.
     * 
     */
    public Optional<String> directory() {
        return Optional.ofNullable(this.directory);
    }
    /**
     * @return Specifies the commit hash of the revision to be cloned. If unspecified, the HEAD revision is cloned. Changing this forces a new resource to be created.
     * 
     */
    public Optional<String> revision() {
        return Optional.ofNullable(this.revision);
    }
    /**
     * @return Specifies the Git repository to be cloned. Changing this forces a new resource to be created.
     * 
     */
    public String url() {
        return this.url;
    }

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

    public static Builder builder(GroupInitContainerVolumeGitRepo defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String directory;
        private @Nullable String revision;
        private String url;
        public Builder() {}
        public Builder(GroupInitContainerVolumeGitRepo defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.directory = defaults.directory;
    	      this.revision = defaults.revision;
    	      this.url = defaults.url;
        }

        @CustomType.Setter
        public Builder directory(@Nullable String directory) {
            this.directory = directory;
            return this;
        }
        @CustomType.Setter
        public Builder revision(@Nullable String revision) {
            this.revision = revision;
            return this;
        }
        @CustomType.Setter
        public Builder url(String url) {
            this.url = Objects.requireNonNull(url);
            return this;
        }
        public GroupInitContainerVolumeGitRepo build() {
            final var o = new GroupInitContainerVolumeGitRepo();
            o.directory = directory;
            o.revision = revision;
            o.url = url;
            return o;
        }
    }
}
