
com.pulumi.azurenative.azurestackhci.outputs.RouteResponse 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.azurestackhci.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 RouteResponse {
/**
* @return The destination CIDR to which the route applies.
*
*/
private @Nullable String addressPrefix;
/**
* @return Name - name of the subnet
*
*/
private @Nullable String name;
/**
* @return The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
*
*/
private @Nullable String nextHopIpAddress;
private RouteResponse() {}
/**
* @return The destination CIDR to which the route applies.
*
*/
public Optional addressPrefix() {
return Optional.ofNullable(this.addressPrefix);
}
/**
* @return Name - name of the subnet
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
*
*/
public Optional nextHopIpAddress() {
return Optional.ofNullable(this.nextHopIpAddress);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String addressPrefix;
private @Nullable String name;
private @Nullable String nextHopIpAddress;
public Builder() {}
public Builder(RouteResponse defaults) {
Objects.requireNonNull(defaults);
this.addressPrefix = defaults.addressPrefix;
this.name = defaults.name;
this.nextHopIpAddress = defaults.nextHopIpAddress;
}
@CustomType.Setter
public Builder addressPrefix(@Nullable String addressPrefix) {
this.addressPrefix = addressPrefix;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder nextHopIpAddress(@Nullable String nextHopIpAddress) {
this.nextHopIpAddress = nextHopIpAddress;
return this;
}
public RouteResponse build() {
final var _resultValue = new RouteResponse();
_resultValue.addressPrefix = addressPrefix;
_resultValue.name = name;
_resultValue.nextHopIpAddress = nextHopIpAddress;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy