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

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

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

@CustomType
public final class VirtualHubRouteV2Response {
    /**
     * @return The type of destinations.
     * 
     */
    private @Nullable String destinationType;
    /**
     * @return List of all destinations.
     * 
     */
    private @Nullable List destinations;
    /**
     * @return The type of next hops.
     * 
     */
    private @Nullable String nextHopType;
    /**
     * @return NextHops ip address.
     * 
     */
    private @Nullable List nextHops;

    private VirtualHubRouteV2Response() {}
    /**
     * @return The type of destinations.
     * 
     */
    public Optional destinationType() {
        return Optional.ofNullable(this.destinationType);
    }
    /**
     * @return List of all destinations.
     * 
     */
    public List destinations() {
        return this.destinations == null ? List.of() : this.destinations;
    }
    /**
     * @return The type of next hops.
     * 
     */
    public Optional nextHopType() {
        return Optional.ofNullable(this.nextHopType);
    }
    /**
     * @return NextHops ip address.
     * 
     */
    public List nextHops() {
        return this.nextHops == null ? List.of() : this.nextHops;
    }

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

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

        @CustomType.Setter
        public Builder destinationType(@Nullable String destinationType) {

            this.destinationType = destinationType;
            return this;
        }
        @CustomType.Setter
        public Builder destinations(@Nullable List destinations) {

            this.destinations = destinations;
            return this;
        }
        public Builder destinations(String... destinations) {
            return destinations(List.of(destinations));
        }
        @CustomType.Setter
        public Builder nextHopType(@Nullable String nextHopType) {

            this.nextHopType = nextHopType;
            return this;
        }
        @CustomType.Setter
        public Builder nextHops(@Nullable List nextHops) {

            this.nextHops = nextHops;
            return this;
        }
        public Builder nextHops(String... nextHops) {
            return nextHops(List.of(nextHops));
        }
        public VirtualHubRouteV2Response build() {
            final var _resultValue = new VirtualHubRouteV2Response();
            _resultValue.destinationType = destinationType;
            _resultValue.destinations = destinations;
            _resultValue.nextHopType = nextHopType;
            _resultValue.nextHops = nextHops;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy