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

com.pulumi.azurenative.apicenter.inputs.AzureApiManagementSourceArgs Maven / Gradle / Ivy

// *** 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.apicenter.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;


/**
 * API source configuration for Azure API Management.
 * 
 */
public final class AzureApiManagementSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureApiManagementSourceArgs Empty = new AzureApiManagementSourceArgs();

    /**
     * The resource ID of the managed identity that has access to the API Management instance.
     * 
     */
    @Import(name="msiResourceId")
    private @Nullable Output msiResourceId;

    /**
     * @return The resource ID of the managed identity that has access to the API Management instance.
     * 
     */
    public Optional> msiResourceId() {
        return Optional.ofNullable(this.msiResourceId);
    }

    /**
     * API Management service resource ID.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return API Management service resource ID.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    private AzureApiManagementSourceArgs() {}

    private AzureApiManagementSourceArgs(AzureApiManagementSourceArgs $) {
        this.msiResourceId = $.msiResourceId;
        this.resourceId = $.resourceId;
    }

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

    public static final class Builder {
        private AzureApiManagementSourceArgs $;

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

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

        /**
         * @param msiResourceId The resource ID of the managed identity that has access to the API Management instance.
         * 
         * @return builder
         * 
         */
        public Builder msiResourceId(@Nullable Output msiResourceId) {
            $.msiResourceId = msiResourceId;
            return this;
        }

        /**
         * @param msiResourceId The resource ID of the managed identity that has access to the API Management instance.
         * 
         * @return builder
         * 
         */
        public Builder msiResourceId(String msiResourceId) {
            return msiResourceId(Output.of(msiResourceId));
        }

        /**
         * @param resourceId API Management service resource ID.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId API Management service resource ID.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        public AzureApiManagementSourceArgs build() {
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("AzureApiManagementSourceArgs", "resourceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy