com.pulumi.azurenative.network.inputs.HubRouteArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
/**
* RouteTable route.
*
*/
public final class HubRouteArgs extends com.pulumi.resources.ResourceArgs {
public static final HubRouteArgs Empty = new HubRouteArgs();
/**
* The type of destinations (eg: CIDR, ResourceId, Service).
*
*/
@Import(name="destinationType", required=true)
private Output destinationType;
/**
* @return The type of destinations (eg: CIDR, ResourceId, Service).
*
*/
public Output destinationType() {
return this.destinationType;
}
/**
* List of all destinations.
*
*/
@Import(name="destinations", required=true)
private Output> destinations;
/**
* @return List of all destinations.
*
*/
public Output> destinations() {
return this.destinations;
}
/**
* The name of the Route that is unique within a RouteTable. This name can be used to access this route.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of the Route that is unique within a RouteTable. This name can be used to access this route.
*
*/
public Output name() {
return this.name;
}
/**
* NextHop resource ID.
*
*/
@Import(name="nextHop", required=true)
private Output nextHop;
/**
* @return NextHop resource ID.
*
*/
public Output nextHop() {
return this.nextHop;
}
/**
* The type of next hop (eg: ResourceId).
*
*/
@Import(name="nextHopType", required=true)
private Output nextHopType;
/**
* @return The type of next hop (eg: ResourceId).
*
*/
public Output nextHopType() {
return this.nextHopType;
}
private HubRouteArgs() {}
private HubRouteArgs(HubRouteArgs $) {
this.destinationType = $.destinationType;
this.destinations = $.destinations;
this.name = $.name;
this.nextHop = $.nextHop;
this.nextHopType = $.nextHopType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HubRouteArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private HubRouteArgs $;
public Builder() {
$ = new HubRouteArgs();
}
public Builder(HubRouteArgs defaults) {
$ = new HubRouteArgs(Objects.requireNonNull(defaults));
}
/**
* @param destinationType The type of destinations (eg: CIDR, ResourceId, Service).
*
* @return builder
*
*/
public Builder destinationType(Output destinationType) {
$.destinationType = destinationType;
return this;
}
/**
* @param destinationType The type of destinations (eg: CIDR, ResourceId, Service).
*
* @return builder
*
*/
public Builder destinationType(String destinationType) {
return destinationType(Output.of(destinationType));
}
/**
* @param destinations List of all destinations.
*
* @return builder
*
*/
public Builder destinations(Output> destinations) {
$.destinations = destinations;
return this;
}
/**
* @param destinations List of all destinations.
*
* @return builder
*
*/
public Builder destinations(List destinations) {
return destinations(Output.of(destinations));
}
/**
* @param destinations List of all destinations.
*
* @return builder
*
*/
public Builder destinations(String... destinations) {
return destinations(List.of(destinations));
}
/**
* @param name The name of the Route that is unique within a RouteTable. This name can be used to access this route.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the Route that is unique within a RouteTable. This name can be used to access this route.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param nextHop NextHop resource ID.
*
* @return builder
*
*/
public Builder nextHop(Output nextHop) {
$.nextHop = nextHop;
return this;
}
/**
* @param nextHop NextHop resource ID.
*
* @return builder
*
*/
public Builder nextHop(String nextHop) {
return nextHop(Output.of(nextHop));
}
/**
* @param nextHopType The type of next hop (eg: ResourceId).
*
* @return builder
*
*/
public Builder nextHopType(Output nextHopType) {
$.nextHopType = nextHopType;
return this;
}
/**
* @param nextHopType The type of next hop (eg: ResourceId).
*
* @return builder
*
*/
public Builder nextHopType(String nextHopType) {
return nextHopType(Output.of(nextHopType));
}
public HubRouteArgs build() {
if ($.destinationType == null) {
throw new MissingRequiredPropertyException("HubRouteArgs", "destinationType");
}
if ($.destinations == null) {
throw new MissingRequiredPropertyException("HubRouteArgs", "destinations");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("HubRouteArgs", "name");
}
if ($.nextHop == null) {
throw new MissingRequiredPropertyException("HubRouteArgs", "nextHop");
}
if ($.nextHopType == null) {
throw new MissingRequiredPropertyException("HubRouteArgs", "nextHopType");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy