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

com.pulumi.azure.appplatform.SpringCloudApiPortalArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appplatform;

import com.pulumi.azure.appplatform.inputs.SpringCloudApiPortalSsoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SpringCloudApiPortalArgs Empty = new SpringCloudApiPortalArgs();

    /**
     * Specifies whether the API try-out feature is enabled. When enabled, users can try out the API by sending requests and viewing responses in API portal.
     * 
     */
    @Import(name="apiTryOutEnabled")
    private @Nullable Output apiTryOutEnabled;

    /**
     * @return Specifies whether the API try-out feature is enabled. When enabled, users can try out the API by sending requests and viewing responses in API portal.
     * 
     */
    public Optional> apiTryOutEnabled() {
        return Optional.ofNullable(this.apiTryOutEnabled);
    }

    /**
     * Specifies a list of Spring Cloud Gateway.
     * 
     */
    @Import(name="gatewayIds")
    private @Nullable Output> gatewayIds;

    /**
     * @return Specifies a list of Spring Cloud Gateway.
     * 
     */
    public Optional>> gatewayIds() {
        return Optional.ofNullable(this.gatewayIds);
    }

    /**
     * is only https is allowed?
     * 
     */
    @Import(name="httpsOnlyEnabled")
    private @Nullable Output httpsOnlyEnabled;

    /**
     * @return is only https is allowed?
     * 
     */
    public Optional> httpsOnlyEnabled() {
        return Optional.ofNullable(this.httpsOnlyEnabled);
    }

    /**
     * Specifies the required instance count of the Spring Cloud API Portal. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
     * 
     */
    @Import(name="instanceCount")
    private @Nullable Output instanceCount;

    /**
     * @return Specifies the required instance count of the Spring Cloud API Portal. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
     * 
     */
    public Optional> instanceCount() {
        return Optional.ofNullable(this.instanceCount);
    }

    /**
     * The name which should be used for this Spring Cloud API Portal. Changing this forces a new Spring Cloud API Portal to be created. The only possible value is `default`.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Spring Cloud API Portal. Changing this forces a new Spring Cloud API Portal to be created. The only possible value is `default`.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Is the public network access enabled?
     * 
     */
    @Import(name="publicNetworkAccessEnabled")
    private @Nullable Output publicNetworkAccessEnabled;

    /**
     * @return Is the public network access enabled?
     * 
     */
    public Optional> publicNetworkAccessEnabled() {
        return Optional.ofNullable(this.publicNetworkAccessEnabled);
    }

    /**
     * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud API Portal to be created.
     * 
     */
    @Import(name="springCloudServiceId", required=true)
    private Output springCloudServiceId;

    /**
     * @return The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud API Portal to be created.
     * 
     */
    public Output springCloudServiceId() {
        return this.springCloudServiceId;
    }

    /**
     * A `sso` block as defined below.
     * 
     */
    @Import(name="sso")
    private @Nullable Output sso;

    /**
     * @return A `sso` block as defined below.
     * 
     */
    public Optional> sso() {
        return Optional.ofNullable(this.sso);
    }

    private SpringCloudApiPortalArgs() {}

    private SpringCloudApiPortalArgs(SpringCloudApiPortalArgs $) {
        this.apiTryOutEnabled = $.apiTryOutEnabled;
        this.gatewayIds = $.gatewayIds;
        this.httpsOnlyEnabled = $.httpsOnlyEnabled;
        this.instanceCount = $.instanceCount;
        this.name = $.name;
        this.publicNetworkAccessEnabled = $.publicNetworkAccessEnabled;
        this.springCloudServiceId = $.springCloudServiceId;
        this.sso = $.sso;
    }

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

    public static final class Builder {
        private SpringCloudApiPortalArgs $;

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

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

        /**
         * @param apiTryOutEnabled Specifies whether the API try-out feature is enabled. When enabled, users can try out the API by sending requests and viewing responses in API portal.
         * 
         * @return builder
         * 
         */
        public Builder apiTryOutEnabled(@Nullable Output apiTryOutEnabled) {
            $.apiTryOutEnabled = apiTryOutEnabled;
            return this;
        }

        /**
         * @param apiTryOutEnabled Specifies whether the API try-out feature is enabled. When enabled, users can try out the API by sending requests and viewing responses in API portal.
         * 
         * @return builder
         * 
         */
        public Builder apiTryOutEnabled(Boolean apiTryOutEnabled) {
            return apiTryOutEnabled(Output.of(apiTryOutEnabled));
        }

        /**
         * @param gatewayIds Specifies a list of Spring Cloud Gateway.
         * 
         * @return builder
         * 
         */
        public Builder gatewayIds(@Nullable Output> gatewayIds) {
            $.gatewayIds = gatewayIds;
            return this;
        }

        /**
         * @param gatewayIds Specifies a list of Spring Cloud Gateway.
         * 
         * @return builder
         * 
         */
        public Builder gatewayIds(List gatewayIds) {
            return gatewayIds(Output.of(gatewayIds));
        }

        /**
         * @param gatewayIds Specifies a list of Spring Cloud Gateway.
         * 
         * @return builder
         * 
         */
        public Builder gatewayIds(String... gatewayIds) {
            return gatewayIds(List.of(gatewayIds));
        }

        /**
         * @param httpsOnlyEnabled is only https is allowed?
         * 
         * @return builder
         * 
         */
        public Builder httpsOnlyEnabled(@Nullable Output httpsOnlyEnabled) {
            $.httpsOnlyEnabled = httpsOnlyEnabled;
            return this;
        }

        /**
         * @param httpsOnlyEnabled is only https is allowed?
         * 
         * @return builder
         * 
         */
        public Builder httpsOnlyEnabled(Boolean httpsOnlyEnabled) {
            return httpsOnlyEnabled(Output.of(httpsOnlyEnabled));
        }

        /**
         * @param instanceCount Specifies the required instance count of the Spring Cloud API Portal. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
         * 
         * @return builder
         * 
         */
        public Builder instanceCount(@Nullable Output instanceCount) {
            $.instanceCount = instanceCount;
            return this;
        }

        /**
         * @param instanceCount Specifies the required instance count of the Spring Cloud API Portal. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
         * 
         * @return builder
         * 
         */
        public Builder instanceCount(Integer instanceCount) {
            return instanceCount(Output.of(instanceCount));
        }

        /**
         * @param name The name which should be used for this Spring Cloud API Portal. Changing this forces a new Spring Cloud API Portal to be created. The only possible value is `default`.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Spring Cloud API Portal. Changing this forces a new Spring Cloud API Portal to be created. The only possible value is `default`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param publicNetworkAccessEnabled Is the public network access enabled?
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccessEnabled(@Nullable Output publicNetworkAccessEnabled) {
            $.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            return this;
        }

        /**
         * @param publicNetworkAccessEnabled Is the public network access enabled?
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccessEnabled(Boolean publicNetworkAccessEnabled) {
            return publicNetworkAccessEnabled(Output.of(publicNetworkAccessEnabled));
        }

        /**
         * @param springCloudServiceId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud API Portal to be created.
         * 
         * @return builder
         * 
         */
        public Builder springCloudServiceId(Output springCloudServiceId) {
            $.springCloudServiceId = springCloudServiceId;
            return this;
        }

        /**
         * @param springCloudServiceId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud API Portal to be created.
         * 
         * @return builder
         * 
         */
        public Builder springCloudServiceId(String springCloudServiceId) {
            return springCloudServiceId(Output.of(springCloudServiceId));
        }

        /**
         * @param sso A `sso` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sso(@Nullable Output sso) {
            $.sso = sso;
            return this;
        }

        /**
         * @param sso A `sso` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder sso(SpringCloudApiPortalSsoArgs sso) {
            return sso(Output.of(sso));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy