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

com.pulumi.azurenative.networkcloud.inputs.ImageRepositoryCredentialsArgs Maven / Gradle / Ivy

The 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.networkcloud.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;


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

    public static final ImageRepositoryCredentialsArgs Empty = new ImageRepositoryCredentialsArgs();

    /**
     * The password or token used to access an image in the target repository.
     * 
     */
    @Import(name="password", required=true)
    private Output password;

    /**
     * @return The password or token used to access an image in the target repository.
     * 
     */
    public Output password() {
        return this.password;
    }

    /**
     * The URL of the authentication server used to validate the repository credentials.
     * 
     */
    @Import(name="registryUrl", required=true)
    private Output registryUrl;

    /**
     * @return The URL of the authentication server used to validate the repository credentials.
     * 
     */
    public Output registryUrl() {
        return this.registryUrl;
    }

    /**
     * The username used to access an image in the target repository.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return The username used to access an image in the target repository.
     * 
     */
    public Output username() {
        return this.username;
    }

    private ImageRepositoryCredentialsArgs() {}

    private ImageRepositoryCredentialsArgs(ImageRepositoryCredentialsArgs $) {
        this.password = $.password;
        this.registryUrl = $.registryUrl;
        this.username = $.username;
    }

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

    public static final class Builder {
        private ImageRepositoryCredentialsArgs $;

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

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

        /**
         * @param password The password or token used to access an image in the target repository.
         * 
         * @return builder
         * 
         */
        public Builder password(Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password or token used to access an image in the target repository.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param registryUrl The URL of the authentication server used to validate the repository credentials.
         * 
         * @return builder
         * 
         */
        public Builder registryUrl(Output registryUrl) {
            $.registryUrl = registryUrl;
            return this;
        }

        /**
         * @param registryUrl The URL of the authentication server used to validate the repository credentials.
         * 
         * @return builder
         * 
         */
        public Builder registryUrl(String registryUrl) {
            return registryUrl(Output.of(registryUrl));
        }

        /**
         * @param username The username used to access an image in the target repository.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The username used to access an image in the target repository.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public ImageRepositoryCredentialsArgs build() {
            if ($.password == null) {
                throw new MissingRequiredPropertyException("ImageRepositoryCredentialsArgs", "password");
            }
            if ($.registryUrl == null) {
                throw new MissingRequiredPropertyException("ImageRepositoryCredentialsArgs", "registryUrl");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("ImageRepositoryCredentialsArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy