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

com.pulumi.azurenative.appplatform.outputs.GatewayApiRouteResponse 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.appplatform.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GatewayApiRouteResponse {
    /**
     * @return A description, will be applied to methods in the generated OpenAPI documentation.
     * 
     */
    private @Nullable String description;
    /**
     * @return To modify the request before sending it to the target endpoint, or the received response.
     * 
     */
    private @Nullable List filters;
    /**
     * @return Route processing order.
     * 
     */
    private @Nullable Integer order;
    /**
     * @return A number of conditions to evaluate a route for each request. 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.
     * 
     */
    private @Nullable List predicates;
    /**
     * @return Enable sso validation.
     * 
     */
    private @Nullable Boolean ssoEnabled;
    /**
     * @return Classification tags, will be applied to methods in the generated OpenAPI documentation.
     * 
     */
    private @Nullable List tags;
    /**
     * @return A title, will be applied to methods in the generated OpenAPI documentation.
     * 
     */
    private @Nullable String title;
    /**
     * @return Pass currently-authenticated user's identity token to application service, default is 'false'
     * 
     */
    private @Nullable Boolean tokenRelay;
    /**
     * @return Full uri, will override `appName`.
     * 
     */
    private @Nullable String uri;

    private GatewayApiRouteResponse() {}
    /**
     * @return A description, will be applied to methods in the generated OpenAPI documentation.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return To modify the request before sending it to the target endpoint, or the received response.
     * 
     */
    public List filters() {
        return this.filters == null ? List.of() : this.filters;
    }
    /**
     * @return Route processing order.
     * 
     */
    public Optional order() {
        return Optional.ofNullable(this.order);
    }
    /**
     * @return A number of conditions to evaluate a route for each request. 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 List predicates() {
        return this.predicates == null ? List.of() : this.predicates;
    }
    /**
     * @return Enable sso validation.
     * 
     */
    public Optional ssoEnabled() {
        return Optional.ofNullable(this.ssoEnabled);
    }
    /**
     * @return Classification tags, will be applied to methods in the generated OpenAPI documentation.
     * 
     */
    public List tags() {
        return this.tags == null ? List.of() : this.tags;
    }
    /**
     * @return A title, will be applied to methods in the generated OpenAPI documentation.
     * 
     */
    public Optional title() {
        return Optional.ofNullable(this.title);
    }
    /**
     * @return Pass currently-authenticated user's identity token to application service, default is 'false'
     * 
     */
    public Optional tokenRelay() {
        return Optional.ofNullable(this.tokenRelay);
    }
    /**
     * @return Full uri, will override `appName`.
     * 
     */
    public Optional uri() {
        return Optional.ofNullable(this.uri);
    }

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

    public static Builder builder(GatewayApiRouteResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable List filters;
        private @Nullable Integer order;
        private @Nullable List predicates;
        private @Nullable Boolean ssoEnabled;
        private @Nullable List tags;
        private @Nullable String title;
        private @Nullable Boolean tokenRelay;
        private @Nullable String uri;
        public Builder() {}
        public Builder(GatewayApiRouteResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.filters = defaults.filters;
    	      this.order = defaults.order;
    	      this.predicates = defaults.predicates;
    	      this.ssoEnabled = defaults.ssoEnabled;
    	      this.tags = defaults.tags;
    	      this.title = defaults.title;
    	      this.tokenRelay = defaults.tokenRelay;
    	      this.uri = defaults.uri;
        }

        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder filters(@Nullable List filters) {

            this.filters = filters;
            return this;
        }
        public Builder filters(String... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder order(@Nullable Integer order) {

            this.order = order;
            return this;
        }
        @CustomType.Setter
        public Builder predicates(@Nullable List predicates) {

            this.predicates = predicates;
            return this;
        }
        public Builder predicates(String... predicates) {
            return predicates(List.of(predicates));
        }
        @CustomType.Setter
        public Builder ssoEnabled(@Nullable Boolean ssoEnabled) {

            this.ssoEnabled = ssoEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable List tags) {

            this.tags = tags;
            return this;
        }
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder title(@Nullable String title) {

            this.title = title;
            return this;
        }
        @CustomType.Setter
        public Builder tokenRelay(@Nullable Boolean tokenRelay) {

            this.tokenRelay = tokenRelay;
            return this;
        }
        @CustomType.Setter
        public Builder uri(@Nullable String uri) {

            this.uri = uri;
            return this;
        }
        public GatewayApiRouteResponse build() {
            final var _resultValue = new GatewayApiRouteResponse();
            _resultValue.description = description;
            _resultValue.filters = filters;
            _resultValue.order = order;
            _resultValue.predicates = predicates;
            _resultValue.ssoEnabled = ssoEnabled;
            _resultValue.tags = tags;
            _resultValue.title = title;
            _resultValue.tokenRelay = tokenRelay;
            _resultValue.uri = uri;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy