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

com.pulumi.azurenative.network.outputs.HubRouteResponse 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.network.outputs;

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

@CustomType
public final class HubRouteResponse {
    /**
     * @return The type of destinations (eg: CIDR, ResourceId, Service).
     * 
     */
    private String destinationType;
    /**
     * @return List of all destinations.
     * 
     */
    private List destinations;
    /**
     * @return The name of the Route that is unique within a RouteTable. This name can be used to access this route.
     * 
     */
    private String name;
    /**
     * @return NextHop resource ID.
     * 
     */
    private String nextHop;
    /**
     * @return The type of next hop (eg: ResourceId).
     * 
     */
    private String nextHopType;

    private HubRouteResponse() {}
    /**
     * @return The type of destinations (eg: CIDR, ResourceId, Service).
     * 
     */
    public String destinationType() {
        return this.destinationType;
    }
    /**
     * @return List of all destinations.
     * 
     */
    public List destinations() {
        return this.destinations;
    }
    /**
     * @return The name of the Route that is unique within a RouteTable. This name can be used to access this route.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return NextHop resource ID.
     * 
     */
    public String nextHop() {
        return this.nextHop;
    }
    /**
     * @return The type of next hop (eg: ResourceId).
     * 
     */
    public String nextHopType() {
        return this.nextHopType;
    }

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

    public static Builder builder(HubRouteResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String destinationType;
        private List destinations;
        private String name;
        private String nextHop;
        private String nextHopType;
        public Builder() {}
        public Builder(HubRouteResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.destinationType = defaults.destinationType;
    	      this.destinations = defaults.destinations;
    	      this.name = defaults.name;
    	      this.nextHop = defaults.nextHop;
    	      this.nextHopType = defaults.nextHopType;
        }

        @CustomType.Setter
        public Builder destinationType(String destinationType) {
            if (destinationType == null) {
              throw new MissingRequiredPropertyException("HubRouteResponse", "destinationType");
            }
            this.destinationType = destinationType;
            return this;
        }
        @CustomType.Setter
        public Builder destinations(List destinations) {
            if (destinations == null) {
              throw new MissingRequiredPropertyException("HubRouteResponse", "destinations");
            }
            this.destinations = destinations;
            return this;
        }
        public Builder destinations(String... destinations) {
            return destinations(List.of(destinations));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("HubRouteResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder nextHop(String nextHop) {
            if (nextHop == null) {
              throw new MissingRequiredPropertyException("HubRouteResponse", "nextHop");
            }
            this.nextHop = nextHop;
            return this;
        }
        @CustomType.Setter
        public Builder nextHopType(String nextHopType) {
            if (nextHopType == null) {
              throw new MissingRequiredPropertyException("HubRouteResponse", "nextHopType");
            }
            this.nextHopType = nextHopType;
            return this;
        }
        public HubRouteResponse build() {
            final var _resultValue = new HubRouteResponse();
            _resultValue.destinationType = destinationType;
            _resultValue.destinations = destinations;
            _resultValue.name = name;
            _resultValue.nextHop = nextHop;
            _resultValue.nextHopType = nextHopType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy