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

com.pulumi.azurenative.containerregistry.CredentialSetArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.containerregistry;

import com.pulumi.azurenative.containerregistry.inputs.AuthCredentialArgs;
import com.pulumi.azurenative.containerregistry.inputs.IdentityPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CredentialSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final CredentialSetArgs Empty = new CredentialSetArgs();

    /**
     * List of authentication credentials stored for an upstream.
     * Usually consists of a primary and an optional secondary credential.
     * 
     */
    @Import(name="authCredentials")
    private @Nullable Output> authCredentials;

    /**
     * @return List of authentication credentials stored for an upstream.
     * Usually consists of a primary and an optional secondary credential.
     * 
     */
    public Optional>> authCredentials() {
        return Optional.ofNullable(this.authCredentials);
    }

    /**
     * The name of the credential set.
     * 
     */
    @Import(name="credentialSetName")
    private @Nullable Output credentialSetName;

    /**
     * @return The name of the credential set.
     * 
     */
    public Optional> credentialSetName() {
        return Optional.ofNullable(this.credentialSetName);
    }

    /**
     * Identities associated with the resource. This is used to access the KeyVault secrets.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identities associated with the resource. This is used to access the KeyVault secrets.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The credentials are stored for this upstream or login server.
     * 
     */
    @Import(name="loginServer")
    private @Nullable Output loginServer;

    /**
     * @return The credentials are stored for this upstream or login server.
     * 
     */
    public Optional> loginServer() {
        return Optional.ofNullable(this.loginServer);
    }

    /**
     * The name of the container registry.
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return The name of the container registry.
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private CredentialSetArgs() {}

    private CredentialSetArgs(CredentialSetArgs $) {
        this.authCredentials = $.authCredentials;
        this.credentialSetName = $.credentialSetName;
        this.identity = $.identity;
        this.loginServer = $.loginServer;
        this.registryName = $.registryName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private CredentialSetArgs $;

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

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

        /**
         * @param authCredentials List of authentication credentials stored for an upstream.
         * Usually consists of a primary and an optional secondary credential.
         * 
         * @return builder
         * 
         */
        public Builder authCredentials(@Nullable Output> authCredentials) {
            $.authCredentials = authCredentials;
            return this;
        }

        /**
         * @param authCredentials List of authentication credentials stored for an upstream.
         * Usually consists of a primary and an optional secondary credential.
         * 
         * @return builder
         * 
         */
        public Builder authCredentials(List authCredentials) {
            return authCredentials(Output.of(authCredentials));
        }

        /**
         * @param authCredentials List of authentication credentials stored for an upstream.
         * Usually consists of a primary and an optional secondary credential.
         * 
         * @return builder
         * 
         */
        public Builder authCredentials(AuthCredentialArgs... authCredentials) {
            return authCredentials(List.of(authCredentials));
        }

        /**
         * @param credentialSetName The name of the credential set.
         * 
         * @return builder
         * 
         */
        public Builder credentialSetName(@Nullable Output credentialSetName) {
            $.credentialSetName = credentialSetName;
            return this;
        }

        /**
         * @param credentialSetName The name of the credential set.
         * 
         * @return builder
         * 
         */
        public Builder credentialSetName(String credentialSetName) {
            return credentialSetName(Output.of(credentialSetName));
        }

        /**
         * @param identity Identities associated with the resource. This is used to access the KeyVault secrets.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identities associated with the resource. This is used to access the KeyVault secrets.
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityPropertiesArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param loginServer The credentials are stored for this upstream or login server.
         * 
         * @return builder
         * 
         */
        public Builder loginServer(@Nullable Output loginServer) {
            $.loginServer = loginServer;
            return this;
        }

        /**
         * @param loginServer The credentials are stored for this upstream or login server.
         * 
         * @return builder
         * 
         */
        public Builder loginServer(String loginServer) {
            return loginServer(Output.of(loginServer));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(String registryName) {
            return registryName(Output.of(registryName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public CredentialSetArgs build() {
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("CredentialSetArgs", "registryName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CredentialSetArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy