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

com.pulumi.azurenative.app.inputs.SessionRegistryCredentialsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.app.inputs;

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


/**
 * Session pool private registry credentials.
 * 
 */
public final class SessionRegistryCredentialsArgs extends com.pulumi.resources.ResourceArgs {

    public static final SessionRegistryCredentialsArgs Empty = new SessionRegistryCredentialsArgs();

    /**
     * The name of the secret that contains the registry login password
     * 
     */
    @Import(name="passwordSecretRef")
    private @Nullable Output passwordSecretRef;

    /**
     * @return The name of the secret that contains the registry login password
     * 
     */
    public Optional> passwordSecretRef() {
        return Optional.ofNullable(this.passwordSecretRef);
    }

    /**
     * Container registry server.
     * 
     */
    @Import(name="registryServer")
    private @Nullable Output registryServer;

    /**
     * @return Container registry server.
     * 
     */
    public Optional> registryServer() {
        return Optional.ofNullable(this.registryServer);
    }

    /**
     * Container registry username.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Container registry username.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private SessionRegistryCredentialsArgs() {}

    private SessionRegistryCredentialsArgs(SessionRegistryCredentialsArgs $) {
        this.passwordSecretRef = $.passwordSecretRef;
        this.registryServer = $.registryServer;
        this.username = $.username;
    }

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

    public static final class Builder {
        private SessionRegistryCredentialsArgs $;

        public Builder() {
            $ = new SessionRegistryCredentialsArgs();
        }

        public Builder(SessionRegistryCredentialsArgs defaults) {
            $ = new SessionRegistryCredentialsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param passwordSecretRef The name of the secret that contains the registry login password
         * 
         * @return builder
         * 
         */
        public Builder passwordSecretRef(@Nullable Output passwordSecretRef) {
            $.passwordSecretRef = passwordSecretRef;
            return this;
        }

        /**
         * @param passwordSecretRef The name of the secret that contains the registry login password
         * 
         * @return builder
         * 
         */
        public Builder passwordSecretRef(String passwordSecretRef) {
            return passwordSecretRef(Output.of(passwordSecretRef));
        }

        /**
         * @param registryServer Container registry server.
         * 
         * @return builder
         * 
         */
        public Builder registryServer(@Nullable Output registryServer) {
            $.registryServer = registryServer;
            return this;
        }

        /**
         * @param registryServer Container registry server.
         * 
         * @return builder
         * 
         */
        public Builder registryServer(String registryServer) {
            return registryServer(Output.of(registryServer));
        }

        /**
         * @param username Container registry username.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Container registry username.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public SessionRegistryCredentialsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy