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

com.pulumi.azurenative.apicenter.inputs.EnvironmentServerArgs 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.apicenter.inputs;

import com.pulumi.azurenative.apicenter.enums.EnvironmentServerType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Server information of the environment.
 * 
 */
public final class EnvironmentServerArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnvironmentServerArgs Empty = new EnvironmentServerArgs();

    /**
     * The location of the management portal
     * 
     */
    @Import(name="managementPortalUri")
    private @Nullable Output> managementPortalUri;

    /**
     * @return The location of the management portal
     * 
     */
    public Optional>> managementPortalUri() {
        return Optional.ofNullable(this.managementPortalUri);
    }

    /**
     * Type of the server that represents the environment.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return Type of the server that represents the environment.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private EnvironmentServerArgs() {}

    private EnvironmentServerArgs(EnvironmentServerArgs $) {
        this.managementPortalUri = $.managementPortalUri;
        this.type = $.type;
    }

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

    public static final class Builder {
        private EnvironmentServerArgs $;

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

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

        /**
         * @param managementPortalUri The location of the management portal
         * 
         * @return builder
         * 
         */
        public Builder managementPortalUri(@Nullable Output> managementPortalUri) {
            $.managementPortalUri = managementPortalUri;
            return this;
        }

        /**
         * @param managementPortalUri The location of the management portal
         * 
         * @return builder
         * 
         */
        public Builder managementPortalUri(List managementPortalUri) {
            return managementPortalUri(Output.of(managementPortalUri));
        }

        /**
         * @param managementPortalUri The location of the management portal
         * 
         * @return builder
         * 
         */
        public Builder managementPortalUri(String... managementPortalUri) {
            return managementPortalUri(List.of(managementPortalUri));
        }

        /**
         * @param type Type of the server that represents the environment.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the server that represents the environment.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Type of the server that represents the environment.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Type of the server that represents the environment.
         * 
         * @return builder
         * 
         */
        public Builder type(EnvironmentServerType type) {
            return type(Either.ofRight(type));
        }

        public EnvironmentServerArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy