// *** 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.azure.core.outputs;

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

@CustomType
public final class CustomProviderResourceType {
    /**
     * @return Specifies the endpoint of the route definition.
     * 
     */
    private String endpoint;
    /**
     * @return Specifies the name of the route definition.
     * 
     */
    private String name;
    /**
     * @return The routing type that is supported for the resource request. Valid values are `Proxy` and `Proxy,Cache`. This value defaults to `ResourceTypeRoutingProxy`.
     * 
     */
    private @Nullable String routingType;

    private CustomProviderResourceType() {}
    /**
     * @return Specifies the endpoint of the route definition.
     * 
     */
    public String endpoint() {
        return this.endpoint;
    }
    /**
     * @return Specifies the name of the route definition.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The routing type that is supported for the resource request. Valid values are `Proxy` and `Proxy,Cache`. This value defaults to `ResourceTypeRoutingProxy`.
     * 
     */
    public Optional<String> routingType() {
        return Optional.ofNullable(this.routingType);
    }

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

    public static Builder builder(CustomProviderResourceType defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String endpoint;
        private String name;
        private @Nullable String routingType;
        public Builder() {}
        public Builder(CustomProviderResourceType defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endpoint = defaults.endpoint;
    	      this.name = defaults.name;
    	      this.routingType = defaults.routingType;
        }

        @CustomType.Setter
        public Builder endpoint(String endpoint) {
            this.endpoint = Objects.requireNonNull(endpoint);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder routingType(@Nullable String routingType) {
            this.routingType = routingType;
            return this;
        }
        public CustomProviderResourceType build() {
            final var o = new CustomProviderResourceType();
            o.endpoint = endpoint;
            o.name = name;
            o.routingType = routingType;
            return o;
        }
    }
}
