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

com.pulumi.azurenative.machinelearning.inputs.WebServiceKeysArgs Maven / Gradle / Ivy

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


/**
 * Access keys for the web service calls.
 * 
 */
public final class WebServiceKeysArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebServiceKeysArgs Empty = new WebServiceKeysArgs();

    /**
     * The primary access key.
     * 
     */
    @Import(name="primary")
    private @Nullable Output primary;

    /**
     * @return The primary access key.
     * 
     */
    public Optional> primary() {
        return Optional.ofNullable(this.primary);
    }

    /**
     * The secondary access key.
     * 
     */
    @Import(name="secondary")
    private @Nullable Output secondary;

    /**
     * @return The secondary access key.
     * 
     */
    public Optional> secondary() {
        return Optional.ofNullable(this.secondary);
    }

    private WebServiceKeysArgs() {}

    private WebServiceKeysArgs(WebServiceKeysArgs $) {
        this.primary = $.primary;
        this.secondary = $.secondary;
    }

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

    public static final class Builder {
        private WebServiceKeysArgs $;

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

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

        /**
         * @param primary The primary access key.
         * 
         * @return builder
         * 
         */
        public Builder primary(@Nullable Output primary) {
            $.primary = primary;
            return this;
        }

        /**
         * @param primary The primary access key.
         * 
         * @return builder
         * 
         */
        public Builder primary(String primary) {
            return primary(Output.of(primary));
        }

        /**
         * @param secondary The secondary access key.
         * 
         * @return builder
         * 
         */
        public Builder secondary(@Nullable Output secondary) {
            $.secondary = secondary;
            return this;
        }

        /**
         * @param secondary The secondary access key.
         * 
         * @return builder
         * 
         */
        public Builder secondary(String secondary) {
            return secondary(Output.of(secondary));
        }

        public WebServiceKeysArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy