// *** 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.appservice.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 LinuxFunctionAppSlotSiteConfigApplicationStackDocker {
    /**
     * @return The name of the Docker image to use.
     * 
     */
    private String imageName;
    /**
     * @return The image tag of the image to use.
     * 
     */
    private String imageTag;
    /**
     * @return The password for the account to use to connect to the registry.
     * 
     * &gt; **NOTE:** This value is required if `container_registry_use_managed_identity` is not set to `true`.
     * 
     */
    private @Nullable String registryPassword;
    /**
     * @return The URL of the docker registry.
     * 
     */
    private String registryUrl;
    /**
     * @return The username to use for connections to the registry.
     * 
     * &gt; **NOTE:** This value is required if `container_registry_use_managed_identity` is not set to `true`.
     * 
     */
    private @Nullable String registryUsername;

    private LinuxFunctionAppSlotSiteConfigApplicationStackDocker() {}
    /**
     * @return The name of the Docker image to use.
     * 
     */
    public String imageName() {
        return this.imageName;
    }
    /**
     * @return The image tag of the image to use.
     * 
     */
    public String imageTag() {
        return this.imageTag;
    }
    /**
     * @return The password for the account to use to connect to the registry.
     * 
     * &gt; **NOTE:** This value is required if `container_registry_use_managed_identity` is not set to `true`.
     * 
     */
    public Optional<String> registryPassword() {
        return Optional.ofNullable(this.registryPassword);
    }
    /**
     * @return The URL of the docker registry.
     * 
     */
    public String registryUrl() {
        return this.registryUrl;
    }
    /**
     * @return The username to use for connections to the registry.
     * 
     * &gt; **NOTE:** This value is required if `container_registry_use_managed_identity` is not set to `true`.
     * 
     */
    public Optional<String> registryUsername() {
        return Optional.ofNullable(this.registryUsername);
    }

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

    public static Builder builder(LinuxFunctionAppSlotSiteConfigApplicationStackDocker defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String imageName;
        private String imageTag;
        private @Nullable String registryPassword;
        private String registryUrl;
        private @Nullable String registryUsername;
        public Builder() {}
        public Builder(LinuxFunctionAppSlotSiteConfigApplicationStackDocker defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.imageName = defaults.imageName;
    	      this.imageTag = defaults.imageTag;
    	      this.registryPassword = defaults.registryPassword;
    	      this.registryUrl = defaults.registryUrl;
    	      this.registryUsername = defaults.registryUsername;
        }

        @CustomType.Setter
        public Builder imageName(String imageName) {
            this.imageName = Objects.requireNonNull(imageName);
            return this;
        }
        @CustomType.Setter
        public Builder imageTag(String imageTag) {
            this.imageTag = Objects.requireNonNull(imageTag);
            return this;
        }
        @CustomType.Setter
        public Builder registryPassword(@Nullable String registryPassword) {
            this.registryPassword = registryPassword;
            return this;
        }
        @CustomType.Setter
        public Builder registryUrl(String registryUrl) {
            this.registryUrl = Objects.requireNonNull(registryUrl);
            return this;
        }
        @CustomType.Setter
        public Builder registryUsername(@Nullable String registryUsername) {
            this.registryUsername = registryUsername;
            return this;
        }
        public LinuxFunctionAppSlotSiteConfigApplicationStackDocker build() {
            final var o = new LinuxFunctionAppSlotSiteConfigApplicationStackDocker();
            o.imageName = imageName;
            o.imageTag = imageTag;
            o.registryPassword = registryPassword;
            o.registryUrl = registryUrl;
            o.registryUsername = registryUsername;
            return o;
        }
    }
}
