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

com.pulumi.azurenative.web.inputs.GetCustomApiArgs 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.web.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;


public final class GetCustomApiArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetCustomApiArgs Empty = new GetCustomApiArgs();

    /**
     * API name
     * 
     */
    @Import(name="apiName", required=true)
    private Output apiName;

    /**
     * @return API name
     * 
     */
    public Output apiName() {
        return this.apiName;
    }

    /**
     * The resource group
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Subscription Id
     * 
     */
    @Import(name="subscriptionId")
    private @Nullable Output subscriptionId;

    /**
     * @return Subscription Id
     * 
     */
    public Optional> subscriptionId() {
        return Optional.ofNullable(this.subscriptionId);
    }

    private GetCustomApiArgs() {}

    private GetCustomApiArgs(GetCustomApiArgs $) {
        this.apiName = $.apiName;
        this.resourceGroupName = $.resourceGroupName;
        this.subscriptionId = $.subscriptionId;
    }

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

    public static final class Builder {
        private GetCustomApiArgs $;

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

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

        /**
         * @param apiName API name
         * 
         * @return builder
         * 
         */
        public Builder apiName(Output apiName) {
            $.apiName = apiName;
            return this;
        }

        /**
         * @param apiName API name
         * 
         * @return builder
         * 
         */
        public Builder apiName(String apiName) {
            return apiName(Output.of(apiName));
        }

        /**
         * @param resourceGroupName The resource group
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

        /**
         * @param subscriptionId Subscription Id
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(@Nullable Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId Subscription Id
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy