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

com.pulumi.azurenative.servicefabric.outputs.ServiceEndpointResponse Maven / Gradle / Ivy

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

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

@CustomType
public final class ServiceEndpointResponse {
    /**
     * @return A list of locations.
     * 
     */
    private @Nullable List locations;
    /**
     * @return The type of the endpoint service.
     * 
     */
    private String service;

    private ServiceEndpointResponse() {}
    /**
     * @return A list of locations.
     * 
     */
    public List locations() {
        return this.locations == null ? List.of() : this.locations;
    }
    /**
     * @return The type of the endpoint service.
     * 
     */
    public String service() {
        return this.service;
    }

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

    public static Builder builder(ServiceEndpointResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List locations;
        private String service;
        public Builder() {}
        public Builder(ServiceEndpointResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.locations = defaults.locations;
    	      this.service = defaults.service;
        }

        @CustomType.Setter
        public Builder locations(@Nullable List locations) {

            this.locations = locations;
            return this;
        }
        public Builder locations(String... locations) {
            return locations(List.of(locations));
        }
        @CustomType.Setter
        public Builder service(String service) {
            if (service == null) {
              throw new MissingRequiredPropertyException("ServiceEndpointResponse", "service");
            }
            this.service = service;
            return this;
        }
        public ServiceEndpointResponse build() {
            final var _resultValue = new ServiceEndpointResponse();
            _resultValue.locations = locations;
            _resultValue.service = service;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy