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

com.pulumi.azurenative.appplatform.inputs.ApiPortalPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.inputs;

import com.pulumi.azurenative.appplatform.inputs.SsoPropertiesArgs;
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 portal properties payload
 * 
 */
public final class ApiPortalPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiPortalPropertiesArgs Empty = new ApiPortalPropertiesArgs();

    /**
     * The array of resource Ids of gateway to integrate with API portal.
     * 
     */
    @Import(name="gatewayIds")
    private @Nullable Output> gatewayIds;

    /**
     * @return The array of resource Ids of gateway to integrate with API portal.
     * 
     */
    public Optional>> gatewayIds() {
        return Optional.ofNullable(this.gatewayIds);
    }

    /**
     * Indicate if only https is allowed.
     * 
     */
    @Import(name="httpsOnly")
    private @Nullable Output httpsOnly;

    /**
     * @return Indicate if only https is allowed.
     * 
     */
    public Optional> httpsOnly() {
        return Optional.ofNullable(this.httpsOnly);
    }

    /**
     * Indicates whether the API portal exposes endpoint.
     * 
     */
    @Import(name="public")
    private @Nullable Output public_;

    /**
     * @return Indicates whether the API portal exposes endpoint.
     * 
     */
    public Optional> public_() {
        return Optional.ofNullable(this.public_);
    }

    /**
     * Collection of OpenAPI source URL locations.
     * 
     */
    @Import(name="sourceUrls")
    private @Nullable Output> sourceUrls;

    /**
     * @return Collection of OpenAPI source URL locations.
     * 
     */
    public Optional>> sourceUrls() {
        return Optional.ofNullable(this.sourceUrls);
    }

    /**
     * Single sign-on related configuration
     * 
     */
    @Import(name="ssoProperties")
    private @Nullable Output ssoProperties;

    /**
     * @return Single sign-on related configuration
     * 
     */
    public Optional> ssoProperties() {
        return Optional.ofNullable(this.ssoProperties);
    }

    private ApiPortalPropertiesArgs() {}

    private ApiPortalPropertiesArgs(ApiPortalPropertiesArgs $) {
        this.gatewayIds = $.gatewayIds;
        this.httpsOnly = $.httpsOnly;
        this.public_ = $.public_;
        this.sourceUrls = $.sourceUrls;
        this.ssoProperties = $.ssoProperties;
    }

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

    public static final class Builder {
        private ApiPortalPropertiesArgs $;

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

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

        /**
         * @param gatewayIds The array of resource Ids of gateway to integrate with API portal.
         * 
         * @return builder
         * 
         */
        public Builder gatewayIds(@Nullable Output> gatewayIds) {
            $.gatewayIds = gatewayIds;
            return this;
        }

        /**
         * @param gatewayIds The array of resource Ids of gateway to integrate with API portal.
         * 
         * @return builder
         * 
         */
        public Builder gatewayIds(List gatewayIds) {
            return gatewayIds(Output.of(gatewayIds));
        }

        /**
         * @param gatewayIds The array of resource Ids of gateway to integrate with API portal.
         * 
         * @return builder
         * 
         */
        public Builder gatewayIds(String... gatewayIds) {
            return gatewayIds(List.of(gatewayIds));
        }

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

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

        /**
         * @param public_ Indicates whether the API portal exposes endpoint.
         * 
         * @return builder
         * 
         */
        public Builder public_(@Nullable Output public_) {
            $.public_ = public_;
            return this;
        }

        /**
         * @param public_ Indicates whether the API portal exposes endpoint.
         * 
         * @return builder
         * 
         */
        public Builder public_(Boolean public_) {
            return public_(Output.of(public_));
        }

        /**
         * @param sourceUrls Collection of OpenAPI source URL locations.
         * 
         * @return builder
         * 
         */
        public Builder sourceUrls(@Nullable Output> sourceUrls) {
            $.sourceUrls = sourceUrls;
            return this;
        }

        /**
         * @param sourceUrls Collection of OpenAPI source URL locations.
         * 
         * @return builder
         * 
         */
        public Builder sourceUrls(List sourceUrls) {
            return sourceUrls(Output.of(sourceUrls));
        }

        /**
         * @param sourceUrls Collection of OpenAPI source URL locations.
         * 
         * @return builder
         * 
         */
        public Builder sourceUrls(String... sourceUrls) {
            return sourceUrls(List.of(sourceUrls));
        }

        /**
         * @param ssoProperties Single sign-on related configuration
         * 
         * @return builder
         * 
         */
        public Builder ssoProperties(@Nullable Output ssoProperties) {
            $.ssoProperties = ssoProperties;
            return this;
        }

        /**
         * @param ssoProperties Single sign-on related configuration
         * 
         * @return builder
         * 
         */
        public Builder ssoProperties(SsoPropertiesArgs ssoProperties) {
            return ssoProperties(Output.of(ssoProperties));
        }

        public ApiPortalPropertiesArgs build() {
            $.httpsOnly = Codegen.booleanProp("httpsOnly").output().arg($.httpsOnly).def(false).getNullable();
            $.public_ = Codegen.booleanProp("public").output().arg($.public_).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy