
com.pulumi.azurenative.network.outputs.GetHubVirtualNetworkConnectionResult 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.azurenative.network.outputs.RoutingConfigurationResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
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 GetHubVirtualNetworkConnectionResult {
/**
* @return Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
*
*/
private @Nullable Boolean allowHubToRemoteVnetTransit;
/**
* @return Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
*
*/
private @Nullable Boolean allowRemoteVnetToUseHubVnetGateways;
/**
* @return Enable internet security.
*
*/
private @Nullable Boolean enableInternetSecurity;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @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 provisioning state of the hub virtual network connection resource.
*
*/
private String provisioningState;
/**
* @return Reference to the remote virtual network.
*
*/
private @Nullable SubResourceResponse remoteVirtualNetwork;
/**
* @return The Routing Configuration indicating the associated and propagated route tables on this connection.
*
*/
private @Nullable RoutingConfigurationResponse routingConfiguration;
private GetHubVirtualNetworkConnectionResult() {}
/**
* @return Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
*
*/
public Optional allowHubToRemoteVnetTransit() {
return Optional.ofNullable(this.allowHubToRemoteVnetTransit);
}
/**
* @return Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
*
*/
public Optional allowRemoteVnetToUseHubVnetGateways() {
return Optional.ofNullable(this.allowRemoteVnetToUseHubVnetGateways);
}
/**
* @return Enable internet security.
*
*/
public Optional enableInternetSecurity() {
return Optional.ofNullable(this.enableInternetSecurity);
}
/**
* @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 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 provisioning state of the hub virtual network connection resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Reference to the remote virtual network.
*
*/
public Optional remoteVirtualNetwork() {
return Optional.ofNullable(this.remoteVirtualNetwork);
}
/**
* @return The Routing Configuration indicating the associated and propagated route tables on this connection.
*
*/
public Optional routingConfiguration() {
return Optional.ofNullable(this.routingConfiguration);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetHubVirtualNetworkConnectionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean allowHubToRemoteVnetTransit;
private @Nullable Boolean allowRemoteVnetToUseHubVnetGateways;
private @Nullable Boolean enableInternetSecurity;
private String etag;
private @Nullable String id;
private @Nullable String name;
private String provisioningState;
private @Nullable SubResourceResponse remoteVirtualNetwork;
private @Nullable RoutingConfigurationResponse routingConfiguration;
public Builder() {}
public Builder(GetHubVirtualNetworkConnectionResult defaults) {
Objects.requireNonNull(defaults);
this.allowHubToRemoteVnetTransit = defaults.allowHubToRemoteVnetTransit;
this.allowRemoteVnetToUseHubVnetGateways = defaults.allowRemoteVnetToUseHubVnetGateways;
this.enableInternetSecurity = defaults.enableInternetSecurity;
this.etag = defaults.etag;
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.remoteVirtualNetwork = defaults.remoteVirtualNetwork;
this.routingConfiguration = defaults.routingConfiguration;
}
@CustomType.Setter
public Builder allowHubToRemoteVnetTransit(@Nullable Boolean allowHubToRemoteVnetTransit) {
this.allowHubToRemoteVnetTransit = allowHubToRemoteVnetTransit;
return this;
}
@CustomType.Setter
public Builder allowRemoteVnetToUseHubVnetGateways(@Nullable Boolean allowRemoteVnetToUseHubVnetGateways) {
this.allowRemoteVnetToUseHubVnetGateways = allowRemoteVnetToUseHubVnetGateways;
return this;
}
@CustomType.Setter
public Builder enableInternetSecurity(@Nullable Boolean enableInternetSecurity) {
this.enableInternetSecurity = enableInternetSecurity;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetHubVirtualNetworkConnectionResult", "etag");
}
this.etag = etag;
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 provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetHubVirtualNetworkConnectionResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder remoteVirtualNetwork(@Nullable SubResourceResponse remoteVirtualNetwork) {
this.remoteVirtualNetwork = remoteVirtualNetwork;
return this;
}
@CustomType.Setter
public Builder routingConfiguration(@Nullable RoutingConfigurationResponse routingConfiguration) {
this.routingConfiguration = routingConfiguration;
return this;
}
public GetHubVirtualNetworkConnectionResult build() {
final var _resultValue = new GetHubVirtualNetworkConnectionResult();
_resultValue.allowHubToRemoteVnetTransit = allowHubToRemoteVnetTransit;
_resultValue.allowRemoteVnetToUseHubVnetGateways = allowRemoteVnetToUseHubVnetGateways;
_resultValue.enableInternetSecurity = enableInternetSecurity;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.remoteVirtualNetwork = remoteVirtualNetwork;
_resultValue.routingConfiguration = routingConfiguration;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy