com.pulumi.azurenative.network.outputs.GetRouteResult 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetRouteResult {
/**
* @return The destination CIDR to which the route applies.
*
*/
private @Nullable String addressPrefix;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return A value indicating whether this route overrides overlapping BGP routes regardless of LPM.
*
*/
private Boolean hasBgpOverride;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
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;
/**
* @return The type of Azure hop the packet should be sent to.
*
*/
private String nextHopType;
/**
* @return The provisioning state of the route resource.
*
*/
private String provisioningState;
/**
* @return The type of the resource.
*
*/
private @Nullable String type;
private GetRouteResult() {}
/**
* @return The destination CIDR to which the route applies.
*
*/
public Optional addressPrefix() {
return Optional.ofNullable(this.addressPrefix);
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return A value indicating whether this route overrides overlapping BGP routes regardless of LPM.
*
*/
public Boolean hasBgpOverride() {
return this.hasBgpOverride;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
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);
}
/**
* @return The type of Azure hop the packet should be sent to.
*
*/
public String nextHopType() {
return this.nextHopType;
}
/**
* @return The provisioning state of the route resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The type of the resource.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRouteResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String addressPrefix;
private String etag;
private Boolean hasBgpOverride;
private @Nullable String id;
private @Nullable String name;
private @Nullable String nextHopIpAddress;
private String nextHopType;
private String provisioningState;
private @Nullable String type;
public Builder() {}
public Builder(GetRouteResult defaults) {
Objects.requireNonNull(defaults);
this.addressPrefix = defaults.addressPrefix;
this.etag = defaults.etag;
this.hasBgpOverride = defaults.hasBgpOverride;
this.id = defaults.id;
this.name = defaults.name;
this.nextHopIpAddress = defaults.nextHopIpAddress;
this.nextHopType = defaults.nextHopType;
this.provisioningState = defaults.provisioningState;
this.type = defaults.type;
}
@CustomType.Setter
public Builder addressPrefix(@Nullable String addressPrefix) {
this.addressPrefix = addressPrefix;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetRouteResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder hasBgpOverride(Boolean hasBgpOverride) {
if (hasBgpOverride == null) {
throw new MissingRequiredPropertyException("GetRouteResult", "hasBgpOverride");
}
this.hasBgpOverride = hasBgpOverride;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
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;
}
@CustomType.Setter
public Builder nextHopType(String nextHopType) {
if (nextHopType == null) {
throw new MissingRequiredPropertyException("GetRouteResult", "nextHopType");
}
this.nextHopType = nextHopType;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetRouteResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public GetRouteResult build() {
final var _resultValue = new GetRouteResult();
_resultValue.addressPrefix = addressPrefix;
_resultValue.etag = etag;
_resultValue.hasBgpOverride = hasBgpOverride;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.nextHopIpAddress = nextHopIpAddress;
_resultValue.nextHopType = nextHopType;
_resultValue.provisioningState = provisioningState;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy