
com.pulumi.azurenative.managednetworkfabric.outputs.StaticRoutePropertiesResponse Maven / Gradle / Ivy
// *** 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.managednetworkfabric.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 StaticRoutePropertiesResponse {
/**
* @return List of next hop IPv4 | IPv6 addresses.
*
*/
private List nextHop;
/**
* @return IPv4 | IPv6 Prefix.
*
*/
private String prefix;
private StaticRoutePropertiesResponse() {}
/**
* @return List of next hop IPv4 | IPv6 addresses.
*
*/
public List nextHop() {
return this.nextHop;
}
/**
* @return IPv4 | IPv6 Prefix.
*
*/
public String prefix() {
return this.prefix;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StaticRoutePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List nextHop;
private String prefix;
public Builder() {}
public Builder(StaticRoutePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.nextHop = defaults.nextHop;
this.prefix = defaults.prefix;
}
@CustomType.Setter
public Builder nextHop(List nextHop) {
if (nextHop == null) {
throw new MissingRequiredPropertyException("StaticRoutePropertiesResponse", "nextHop");
}
this.nextHop = nextHop;
return this;
}
public Builder nextHop(String... nextHop) {
return nextHop(List.of(nextHop));
}
@CustomType.Setter
public Builder prefix(String prefix) {
if (prefix == null) {
throw new MissingRequiredPropertyException("StaticRoutePropertiesResponse", "prefix");
}
this.prefix = prefix;
return this;
}
public StaticRoutePropertiesResponse build() {
final var _resultValue = new StaticRoutePropertiesResponse();
_resultValue.nextHop = nextHop;
_resultValue.prefix = prefix;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy