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

com.pulumi.azurenative.servicefabricmesh.inputs.GatewayDestinationArgs 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.servicefabricmesh.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Describes destination endpoint for routing traffic.
 * 
 */
public final class GatewayDestinationArgs extends com.pulumi.resources.ResourceArgs {

    public static final GatewayDestinationArgs Empty = new GatewayDestinationArgs();

    /**
     * Name of the service fabric Mesh application.
     * 
     */
    @Import(name="applicationName", required=true)
    private Output applicationName;

    /**
     * @return Name of the service fabric Mesh application.
     * 
     */
    public Output applicationName() {
        return this.applicationName;
    }

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

    /**
     * @return name of the endpoint in the service.
     * 
     */
    public Output endpointName() {
        return this.endpointName;
    }

    /**
     * service that contains the endpoint.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return service that contains the endpoint.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    private GatewayDestinationArgs() {}

    private GatewayDestinationArgs(GatewayDestinationArgs $) {
        this.applicationName = $.applicationName;
        this.endpointName = $.endpointName;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private GatewayDestinationArgs $;

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

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

        /**
         * @param applicationName Name of the service fabric Mesh application.
         * 
         * @return builder
         * 
         */
        public Builder applicationName(Output applicationName) {
            $.applicationName = applicationName;
            return this;
        }

        /**
         * @param applicationName Name of the service fabric Mesh application.
         * 
         * @return builder
         * 
         */
        public Builder applicationName(String applicationName) {
            return applicationName(Output.of(applicationName));
        }

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

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

        /**
         * @param serviceName service that contains the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

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

        public GatewayDestinationArgs build() {
            if ($.applicationName == null) {
                throw new MissingRequiredPropertyException("GatewayDestinationArgs", "applicationName");
            }
            if ($.endpointName == null) {
                throw new MissingRequiredPropertyException("GatewayDestinationArgs", "endpointName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("GatewayDestinationArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy