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

com.pulumi.azurenative.servicefabric.inputs.ServiceEndpointArgs 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.servicefabric.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The service endpoint properties.
 * 
 */
public final class ServiceEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceEndpointArgs Empty = new ServiceEndpointArgs();

    /**
     * A list of locations.
     * 
     */
    @Import(name="locations")
    private @Nullable Output> locations;

    /**
     * @return A list of locations.
     * 
     */
    public Optional>> locations() {
        return Optional.ofNullable(this.locations);
    }

    /**
     * The type of the endpoint service.
     * 
     */
    @Import(name="service", required=true)
    private Output service;

    /**
     * @return The type of the endpoint service.
     * 
     */
    public Output service() {
        return this.service;
    }

    private ServiceEndpointArgs() {}

    private ServiceEndpointArgs(ServiceEndpointArgs $) {
        this.locations = $.locations;
        this.service = $.service;
    }

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

    public static final class Builder {
        private ServiceEndpointArgs $;

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

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

        /**
         * @param locations A list of locations.
         * 
         * @return builder
         * 
         */
        public Builder locations(@Nullable Output> locations) {
            $.locations = locations;
            return this;
        }

        /**
         * @param locations A list of locations.
         * 
         * @return builder
         * 
         */
        public Builder locations(List locations) {
            return locations(Output.of(locations));
        }

        /**
         * @param locations A list of locations.
         * 
         * @return builder
         * 
         */
        public Builder locations(String... locations) {
            return locations(List.of(locations));
        }

        /**
         * @param service The type of the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder service(Output service) {
            $.service = service;
            return this;
        }

        /**
         * @param service The type of the endpoint service.
         * 
         * @return builder
         * 
         */
        public Builder service(String service) {
            return service(Output.of(service));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy