
com.pulumi.azurenative.azurestackhci.outputs.VirtualNetworkPropertiesResponseRouteTable 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.azurestackhci.outputs;
import com.pulumi.azurenative.azurestackhci.outputs.VirtualNetworkPropertiesResponseRoutes;
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 VirtualNetworkPropertiesResponseRouteTable {
/**
* @return Etag - Gets a unique read-only string that changes whenever the resource is updated.
*
*/
private @Nullable String id;
/**
* @return Name - READ-ONLY; Resource name.
*
*/
private @Nullable String name;
/**
* @return Routes - Collection of routes contained within a route table.
*
*/
private @Nullable List routes;
/**
* @return Type - READ-ONLY; Resource type.
*
*/
private @Nullable String type;
private VirtualNetworkPropertiesResponseRouteTable() {}
/**
* @return Etag - Gets a unique read-only string that changes whenever the resource is updated.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Name - READ-ONLY; Resource name.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Routes - Collection of routes contained within a route table.
*
*/
public List routes() {
return this.routes == null ? List.of() : this.routes;
}
/**
* @return Type - READ-ONLY; Resource type.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualNetworkPropertiesResponseRouteTable defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private @Nullable String name;
private @Nullable List routes;
private @Nullable String type;
public Builder() {}
public Builder(VirtualNetworkPropertiesResponseRouteTable defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.name = defaults.name;
this.routes = defaults.routes;
this.type = defaults.type;
}
@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 routes(@Nullable List routes) {
this.routes = routes;
return this;
}
public Builder routes(VirtualNetworkPropertiesResponseRoutes... routes) {
return routes(List.of(routes));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public VirtualNetworkPropertiesResponseRouteTable build() {
final var _resultValue = new VirtualNetworkPropertiesResponseRouteTable();
_resultValue.id = id;
_resultValue.name = name;
_resultValue.routes = routes;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy