
com.pulumi.azurenative.network.outputs.GetHubRouteTableResult 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.network.outputs;
import com.pulumi.azurenative.network.outputs.HubRouteResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetHubRouteTableResult {
/**
* @return List of all connections associated with this route table.
*
*/
private List associatedConnections;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return List of labels associated with this route table.
*
*/
private @Nullable List labels;
/**
* @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 List of all connections that advertise to this route table.
*
*/
private List propagatingConnections;
/**
* @return The provisioning state of the RouteTable resource.
*
*/
private String provisioningState;
/**
* @return List of all routes.
*
*/
private @Nullable List routes;
/**
* @return Resource type.
*
*/
private String type;
private GetHubRouteTableResult() {}
/**
* @return List of all connections associated with this route table.
*
*/
public List associatedConnections() {
return this.associatedConnections;
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return List of labels associated with this route table.
*
*/
public List labels() {
return this.labels == null ? List.of() : this.labels;
}
/**
* @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 List of all connections that advertise to this route table.
*
*/
public List propagatingConnections() {
return this.propagatingConnections;
}
/**
* @return The provisioning state of the RouteTable resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return List of all routes.
*
*/
public List routes() {
return this.routes == null ? List.of() : this.routes;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetHubRouteTableResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List associatedConnections;
private String etag;
private @Nullable String id;
private @Nullable List labels;
private @Nullable String name;
private List propagatingConnections;
private String provisioningState;
private @Nullable List routes;
private String type;
public Builder() {}
public Builder(GetHubRouteTableResult defaults) {
Objects.requireNonNull(defaults);
this.associatedConnections = defaults.associatedConnections;
this.etag = defaults.etag;
this.id = defaults.id;
this.labels = defaults.labels;
this.name = defaults.name;
this.propagatingConnections = defaults.propagatingConnections;
this.provisioningState = defaults.provisioningState;
this.routes = defaults.routes;
this.type = defaults.type;
}
@CustomType.Setter
public Builder associatedConnections(List associatedConnections) {
if (associatedConnections == null) {
throw new MissingRequiredPropertyException("GetHubRouteTableResult", "associatedConnections");
}
this.associatedConnections = associatedConnections;
return this;
}
public Builder associatedConnections(String... associatedConnections) {
return associatedConnections(List.of(associatedConnections));
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetHubRouteTableResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder labels(@Nullable List labels) {
this.labels = labels;
return this;
}
public Builder labels(String... labels) {
return labels(List.of(labels));
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder propagatingConnections(List propagatingConnections) {
if (propagatingConnections == null) {
throw new MissingRequiredPropertyException("GetHubRouteTableResult", "propagatingConnections");
}
this.propagatingConnections = propagatingConnections;
return this;
}
public Builder propagatingConnections(String... propagatingConnections) {
return propagatingConnections(List.of(propagatingConnections));
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetHubRouteTableResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder routes(@Nullable List routes) {
this.routes = routes;
return this;
}
public Builder routes(HubRouteResponse... routes) {
return routes(List.of(routes));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetHubRouteTableResult", "type");
}
this.type = type;
return this;
}
public GetHubRouteTableResult build() {
final var _resultValue = new GetHubRouteTableResult();
_resultValue.associatedConnections = associatedConnections;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.labels = labels;
_resultValue.name = name;
_resultValue.propagatingConnections = propagatingConnections;
_resultValue.provisioningState = provisioningState;
_resultValue.routes = routes;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy