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

com.pulumi.azurenative.appplatform.inputs.GatewayRouteConfigPropertiesArgs 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.appplatform.inputs;

import com.pulumi.azurenative.appplatform.enums.GatewayRouteConfigProtocol;
import com.pulumi.azurenative.appplatform.inputs.GatewayApiRouteArgs;
import com.pulumi.azurenative.appplatform.inputs.GatewayRouteConfigOpenApiPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * API route config of the Spring Cloud Gateway
 * 
 */
public final class GatewayRouteConfigPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final GatewayRouteConfigPropertiesArgs Empty = new GatewayRouteConfigPropertiesArgs();

    /**
     * The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
     * 
     */
    @Import(name="appResourceId")
    private @Nullable Output appResourceId;

    /**
     * @return The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
     * 
     */
    public Optional> appResourceId() {
        return Optional.ofNullable(this.appResourceId);
    }

    /**
     * To modify the request before sending it to the target endpoint, or the received response in app level.
     * 
     */
    @Import(name="filters")
    private @Nullable Output> filters;

    /**
     * @return To modify the request before sending it to the target endpoint, or the received response in app level.
     * 
     */
    public Optional>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * OpenAPI properties of Spring Cloud Gateway route config.
     * 
     */
    @Import(name="openApi")
    private @Nullable Output openApi;

    /**
     * @return OpenAPI properties of Spring Cloud Gateway route config.
     * 
     */
    public Optional> openApi() {
        return Optional.ofNullable(this.openApi);
    }

    /**
     * A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
     * 
     */
    @Import(name="predicates")
    private @Nullable Output> predicates;

    /**
     * @return A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
     * 
     */
    public Optional>> predicates() {
        return Optional.ofNullable(this.predicates);
    }

    /**
     * Protocol of routed Azure Spring Apps applications.
     * 
     */
    @Import(name="protocol")
    private @Nullable Output> protocol;

    /**
     * @return Protocol of routed Azure Spring Apps applications.
     * 
     */
    public Optional>> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    /**
     * Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
     * 
     */
    @Import(name="routes")
    private @Nullable Output> routes;

    /**
     * @return Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
     * 
     */
    public Optional>> routes() {
        return Optional.ofNullable(this.routes);
    }

    /**
     * Enable Single Sign-On in app level.
     * 
     */
    @Import(name="ssoEnabled")
    private @Nullable Output ssoEnabled;

    /**
     * @return Enable Single Sign-On in app level.
     * 
     */
    public Optional> ssoEnabled() {
        return Optional.ofNullable(this.ssoEnabled);
    }

    private GatewayRouteConfigPropertiesArgs() {}

    private GatewayRouteConfigPropertiesArgs(GatewayRouteConfigPropertiesArgs $) {
        this.appResourceId = $.appResourceId;
        this.filters = $.filters;
        this.openApi = $.openApi;
        this.predicates = $.predicates;
        this.protocol = $.protocol;
        this.routes = $.routes;
        this.ssoEnabled = $.ssoEnabled;
    }

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

    public static final class Builder {
        private GatewayRouteConfigPropertiesArgs $;

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

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

        /**
         * @param appResourceId The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
         * 
         * @return builder
         * 
         */
        public Builder appResourceId(@Nullable Output appResourceId) {
            $.appResourceId = appResourceId;
            return this;
        }

        /**
         * @param appResourceId The resource Id of the Azure Spring Apps app, required unless route defines `uri`.
         * 
         * @return builder
         * 
         */
        public Builder appResourceId(String appResourceId) {
            return appResourceId(Output.of(appResourceId));
        }

        /**
         * @param filters To modify the request before sending it to the target endpoint, or the received response in app level.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters To modify the request before sending it to the target endpoint, or the received response in app level.
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters To modify the request before sending it to the target endpoint, or the received response in app level.
         * 
         * @return builder
         * 
         */
        public Builder filters(String... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param openApi OpenAPI properties of Spring Cloud Gateway route config.
         * 
         * @return builder
         * 
         */
        public Builder openApi(@Nullable Output openApi) {
            $.openApi = openApi;
            return this;
        }

        /**
         * @param openApi OpenAPI properties of Spring Cloud Gateway route config.
         * 
         * @return builder
         * 
         */
        public Builder openApi(GatewayRouteConfigOpenApiPropertiesArgs openApi) {
            return openApi(Output.of(openApi));
        }

        /**
         * @param predicates A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
         * 
         * @return builder
         * 
         */
        public Builder predicates(@Nullable Output> predicates) {
            $.predicates = predicates;
            return this;
        }

        /**
         * @param predicates A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
         * 
         * @return builder
         * 
         */
        public Builder predicates(List predicates) {
            return predicates(Output.of(predicates));
        }

        /**
         * @param predicates A number of conditions to evaluate a route for each request in app level. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
         * 
         * @return builder
         * 
         */
        public Builder predicates(String... predicates) {
            return predicates(List.of(predicates));
        }

        /**
         * @param protocol Protocol of routed Azure Spring Apps applications.
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output> protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol Protocol of routed Azure Spring Apps applications.
         * 
         * @return builder
         * 
         */
        public Builder protocol(Either protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param protocol Protocol of routed Azure Spring Apps applications.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Either.ofLeft(protocol));
        }

        /**
         * @param protocol Protocol of routed Azure Spring Apps applications.
         * 
         * @return builder
         * 
         */
        public Builder protocol(GatewayRouteConfigProtocol protocol) {
            return protocol(Either.ofRight(protocol));
        }

        /**
         * @param routes Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
         * 
         * @return builder
         * 
         */
        public Builder routes(@Nullable Output> routes) {
            $.routes = routes;
            return this;
        }

        /**
         * @param routes Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
         * 
         * @return builder
         * 
         */
        public Builder routes(List routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param routes Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`.
         * 
         * @return builder
         * 
         */
        public Builder routes(GatewayApiRouteArgs... routes) {
            return routes(List.of(routes));
        }

        /**
         * @param ssoEnabled Enable Single Sign-On in app level.
         * 
         * @return builder
         * 
         */
        public Builder ssoEnabled(@Nullable Output ssoEnabled) {
            $.ssoEnabled = ssoEnabled;
            return this;
        }

        /**
         * @param ssoEnabled Enable Single Sign-On in app level.
         * 
         * @return builder
         * 
         */
        public Builder ssoEnabled(Boolean ssoEnabled) {
            return ssoEnabled(Output.of(ssoEnabled));
        }

        public GatewayRouteConfigPropertiesArgs build() {
            $.protocol = Codegen.stringProp("protocol").left(GatewayRouteConfigProtocol.class).output().arg($.protocol).def("HTTP").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy