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

com.pulumi.azure.containerapp.outputs.JobRegistry Maven / Gradle / Ivy

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

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

@CustomType
public final class JobRegistry {
    /**
     * @return A Managed Identity to use to authenticate with Azure Container Registry.
     * 
     */
    private @Nullable String identity;
    /**
     * @return The name of the Secret that contains the registry login password.
     * 
     */
    private @Nullable String passwordSecretName;
    /**
     * @return The URL of the Azure Container Registry server.
     * 
     */
    private String server;
    /**
     * @return The username to use to authenticate with Azure Container Registry.
     * 
     */
    private @Nullable String username;

    private JobRegistry() {}
    /**
     * @return A Managed Identity to use to authenticate with Azure Container Registry.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return The name of the Secret that contains the registry login password.
     * 
     */
    public Optional passwordSecretName() {
        return Optional.ofNullable(this.passwordSecretName);
    }
    /**
     * @return The URL of the Azure Container Registry server.
     * 
     */
    public String server() {
        return this.server;
    }
    /**
     * @return The username to use to authenticate with Azure Container Registry.
     * 
     */
    public Optional username() {
        return Optional.ofNullable(this.username);
    }

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

    public static Builder builder(JobRegistry defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String identity;
        private @Nullable String passwordSecretName;
        private String server;
        private @Nullable String username;
        public Builder() {}
        public Builder(JobRegistry defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.identity = defaults.identity;
    	      this.passwordSecretName = defaults.passwordSecretName;
    	      this.server = defaults.server;
    	      this.username = defaults.username;
        }

        @CustomType.Setter
        public Builder identity(@Nullable String identity) {

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

            this.passwordSecretName = passwordSecretName;
            return this;
        }
        @CustomType.Setter
        public Builder server(String server) {
            if (server == null) {
              throw new MissingRequiredPropertyException("JobRegistry", "server");
            }
            this.server = server;
            return this;
        }
        @CustomType.Setter
        public Builder username(@Nullable String username) {

            this.username = username;
            return this;
        }
        public JobRegistry build() {
            final var _resultValue = new JobRegistry();
            _resultValue.identity = identity;
            _resultValue.passwordSecretName = passwordSecretName;
            _resultValue.server = server;
            _resultValue.username = username;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy