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

com.pulumi.azurenative.servicefabricmesh.inputs.ImageRegistryCredentialArgs 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.servicefabricmesh.inputs;

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


/**
 * Image registry credential.
 * 
 */
public final class ImageRegistryCredentialArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageRegistryCredentialArgs Empty = new ImageRegistryCredentialArgs();

    /**
     * The password for the private registry. The password is required for create or update operations, however it is not returned in the get or list operations.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password for the private registry. The password is required for create or update operations, however it is not returned in the get or list operations.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Docker image registry server, without protocol such as `http` and `https`.
     * 
     */
    @Import(name="server", required=true)
    private Output server;

    /**
     * @return Docker image registry server, without protocol such as `http` and `https`.
     * 
     */
    public Output server() {
        return this.server;
    }

    /**
     * The username for the private registry.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return The username for the private registry.
     * 
     */
    public Output username() {
        return this.username;
    }

    private ImageRegistryCredentialArgs() {}

    private ImageRegistryCredentialArgs(ImageRegistryCredentialArgs $) {
        this.password = $.password;
        this.server = $.server;
        this.username = $.username;
    }

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

    public static final class Builder {
        private ImageRegistryCredentialArgs $;

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

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

        /**
         * @param password The password for the private registry. The password is required for create or update operations, however it is not returned in the get or list operations.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password for the private registry. The password is required for create or update operations, however it is not returned in the get or list operations.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param server Docker image registry server, without protocol such as `http` and `https`.
         * 
         * @return builder
         * 
         */
        public Builder server(Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server Docker image registry server, without protocol such as `http` and `https`.
         * 
         * @return builder
         * 
         */
        public Builder server(String server) {
            return server(Output.of(server));
        }

        /**
         * @param username The username for the private registry.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The username for the private registry.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public ImageRegistryCredentialArgs build() {
            if ($.server == null) {
                throw new MissingRequiredPropertyException("ImageRegistryCredentialArgs", "server");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("ImageRegistryCredentialArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy