com.pulumi.azurenative.network.outputs.VirtualHubRouteResponse 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.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 VirtualHubRouteResponse {
/**
* @return List of all addressPrefixes.
*
*/
private @Nullable List addressPrefixes;
/**
* @return NextHop ip address.
*
*/
private @Nullable String nextHopIpAddress;
private VirtualHubRouteResponse() {}
/**
* @return List of all addressPrefixes.
*
*/
public List addressPrefixes() {
return this.addressPrefixes == null ? List.of() : this.addressPrefixes;
}
/**
* @return NextHop ip address.
*
*/
public Optional nextHopIpAddress() {
return Optional.ofNullable(this.nextHopIpAddress);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualHubRouteResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List addressPrefixes;
private @Nullable String nextHopIpAddress;
public Builder() {}
public Builder(VirtualHubRouteResponse defaults) {
Objects.requireNonNull(defaults);
this.addressPrefixes = defaults.addressPrefixes;
this.nextHopIpAddress = defaults.nextHopIpAddress;
}
@CustomType.Setter
public Builder addressPrefixes(@Nullable List addressPrefixes) {
this.addressPrefixes = addressPrefixes;
return this;
}
public Builder addressPrefixes(String... addressPrefixes) {
return addressPrefixes(List.of(addressPrefixes));
}
@CustomType.Setter
public Builder nextHopIpAddress(@Nullable String nextHopIpAddress) {
this.nextHopIpAddress = nextHopIpAddress;
return this;
}
public VirtualHubRouteResponse build() {
final var _resultValue = new VirtualHubRouteResponse();
_resultValue.addressPrefixes = addressPrefixes;
_resultValue.nextHopIpAddress = nextHopIpAddress;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy