com.pulumi.azurenative.network.outputs.GetVirtualWanResult 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.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetVirtualWanResult {
/**
* @return True if branch to branch traffic is allowed.
*
*/
private @Nullable Boolean allowBranchToBranchTraffic;
/**
* @return True if Vnet to Vnet traffic is allowed.
*
*/
private @Nullable Boolean allowVnetToVnetTraffic;
/**
* @return Vpn encryption to be disabled or not.
*
*/
private @Nullable Boolean disableVpnEncryption;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Resource location.
*
*/
private String location;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The office local breakout category.
*
*/
private String office365LocalBreakoutCategory;
/**
* @return The provisioning state of the virtual WAN resource.
*
*/
private String provisioningState;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return List of VirtualHubs in the VirtualWAN.
*
*/
private List virtualHubs;
/**
* @return List of VpnSites in the VirtualWAN.
*
*/
private List vpnSites;
private GetVirtualWanResult() {}
/**
* @return True if branch to branch traffic is allowed.
*
*/
public Optional allowBranchToBranchTraffic() {
return Optional.ofNullable(this.allowBranchToBranchTraffic);
}
/**
* @return True if Vnet to Vnet traffic is allowed.
*
*/
public Optional allowVnetToVnetTraffic() {
return Optional.ofNullable(this.allowVnetToVnetTraffic);
}
/**
* @return Vpn encryption to be disabled or not.
*
*/
public Optional disableVpnEncryption() {
return Optional.ofNullable(this.disableVpnEncryption);
}
/**
* @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 Resource location.
*
*/
public String location() {
return this.location;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The office local breakout category.
*
*/
public String office365LocalBreakoutCategory() {
return this.office365LocalBreakoutCategory;
}
/**
* @return The provisioning state of the virtual WAN resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return List of VirtualHubs in the VirtualWAN.
*
*/
public List virtualHubs() {
return this.virtualHubs;
}
/**
* @return List of VpnSites in the VirtualWAN.
*
*/
public List vpnSites() {
return this.vpnSites;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualWanResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean allowBranchToBranchTraffic;
private @Nullable Boolean allowVnetToVnetTraffic;
private @Nullable Boolean disableVpnEncryption;
private String etag;
private @Nullable String id;
private String location;
private String name;
private String office365LocalBreakoutCategory;
private String provisioningState;
private @Nullable Map tags;
private String type;
private List virtualHubs;
private List vpnSites;
public Builder() {}
public Builder(GetVirtualWanResult defaults) {
Objects.requireNonNull(defaults);
this.allowBranchToBranchTraffic = defaults.allowBranchToBranchTraffic;
this.allowVnetToVnetTraffic = defaults.allowVnetToVnetTraffic;
this.disableVpnEncryption = defaults.disableVpnEncryption;
this.etag = defaults.etag;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.office365LocalBreakoutCategory = defaults.office365LocalBreakoutCategory;
this.provisioningState = defaults.provisioningState;
this.tags = defaults.tags;
this.type = defaults.type;
this.virtualHubs = defaults.virtualHubs;
this.vpnSites = defaults.vpnSites;
}
@CustomType.Setter
public Builder allowBranchToBranchTraffic(@Nullable Boolean allowBranchToBranchTraffic) {
this.allowBranchToBranchTraffic = allowBranchToBranchTraffic;
return this;
}
@CustomType.Setter
public Builder allowVnetToVnetTraffic(@Nullable Boolean allowVnetToVnetTraffic) {
this.allowVnetToVnetTraffic = allowVnetToVnetTraffic;
return this;
}
@CustomType.Setter
public Builder disableVpnEncryption(@Nullable Boolean disableVpnEncryption) {
this.disableVpnEncryption = disableVpnEncryption;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder office365LocalBreakoutCategory(String office365LocalBreakoutCategory) {
if (office365LocalBreakoutCategory == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "office365LocalBreakoutCategory");
}
this.office365LocalBreakoutCategory = office365LocalBreakoutCategory;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder virtualHubs(List virtualHubs) {
if (virtualHubs == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "virtualHubs");
}
this.virtualHubs = virtualHubs;
return this;
}
public Builder virtualHubs(SubResourceResponse... virtualHubs) {
return virtualHubs(List.of(virtualHubs));
}
@CustomType.Setter
public Builder vpnSites(List vpnSites) {
if (vpnSites == null) {
throw new MissingRequiredPropertyException("GetVirtualWanResult", "vpnSites");
}
this.vpnSites = vpnSites;
return this;
}
public Builder vpnSites(SubResourceResponse... vpnSites) {
return vpnSites(List.of(vpnSites));
}
public GetVirtualWanResult build() {
final var _resultValue = new GetVirtualWanResult();
_resultValue.allowBranchToBranchTraffic = allowBranchToBranchTraffic;
_resultValue.allowVnetToVnetTraffic = allowVnetToVnetTraffic;
_resultValue.disableVpnEncryption = disableVpnEncryption;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.office365LocalBreakoutCategory = office365LocalBreakoutCategory;
_resultValue.provisioningState = provisioningState;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.virtualHubs = virtualHubs;
_resultValue.vpnSites = vpnSites;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy