com.pulumi.azurenative.network.outputs.GetVirtualNetworkResult 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.AddressSpaceResponse;
import com.pulumi.azurenative.network.outputs.DhcpOptionsResponse;
import com.pulumi.azurenative.network.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.network.outputs.FlowLogResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.azurenative.network.outputs.SubnetResponse;
import com.pulumi.azurenative.network.outputs.VirtualNetworkBgpCommunitiesResponse;
import com.pulumi.azurenative.network.outputs.VirtualNetworkEncryptionResponse;
import com.pulumi.azurenative.network.outputs.VirtualNetworkPeeringResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
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 GetVirtualNetworkResult {
/**
* @return The AddressSpace that contains an array of IP address ranges that can be used by subnets.
*
*/
private @Nullable AddressSpaceResponse addressSpace;
/**
* @return Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
*
*/
private @Nullable VirtualNetworkBgpCommunitiesResponse bgpCommunities;
/**
* @return The DDoS protection plan associated with the virtual network.
*
*/
private @Nullable SubResourceResponse ddosProtectionPlan;
/**
* @return The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.
*
*/
private @Nullable DhcpOptionsResponse dhcpOptions;
/**
* @return Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.
*
*/
private @Nullable Boolean enableDdosProtection;
/**
* @return Indicates if VM protection is enabled for all the subnets in the virtual network.
*
*/
private @Nullable Boolean enableVmProtection;
/**
* @return Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.
*
*/
private @Nullable VirtualNetworkEncryptionResponse encryption;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return The extended location of the virtual network.
*
*/
private @Nullable ExtendedLocationResponse extendedLocation;
/**
* @return A collection of references to flow log resources.
*
*/
private List flowLogs;
/**
* @return The FlowTimeout value (in minutes) for the Virtual Network
*
*/
private @Nullable Integer flowTimeoutInMinutes;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Array of IpAllocation which reference this VNET.
*
*/
private @Nullable List ipAllocations;
/**
* @return Resource location.
*
*/
private @Nullable String location;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The provisioning state of the virtual network resource.
*
*/
private String provisioningState;
/**
* @return The resourceGuid property of the Virtual Network resource.
*
*/
private String resourceGuid;
/**
* @return A list of subnets in a Virtual Network.
*
*/
private @Nullable List subnets;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return A list of peerings in a Virtual Network.
*
*/
private @Nullable List virtualNetworkPeerings;
private GetVirtualNetworkResult() {}
/**
* @return The AddressSpace that contains an array of IP address ranges that can be used by subnets.
*
*/
public Optional addressSpace() {
return Optional.ofNullable(this.addressSpace);
}
/**
* @return Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
*
*/
public Optional bgpCommunities() {
return Optional.ofNullable(this.bgpCommunities);
}
/**
* @return The DDoS protection plan associated with the virtual network.
*
*/
public Optional ddosProtectionPlan() {
return Optional.ofNullable(this.ddosProtectionPlan);
}
/**
* @return The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.
*
*/
public Optional dhcpOptions() {
return Optional.ofNullable(this.dhcpOptions);
}
/**
* @return Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.
*
*/
public Optional enableDdosProtection() {
return Optional.ofNullable(this.enableDdosProtection);
}
/**
* @return Indicates if VM protection is enabled for all the subnets in the virtual network.
*
*/
public Optional enableVmProtection() {
return Optional.ofNullable(this.enableVmProtection);
}
/**
* @return Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.
*
*/
public Optional encryption() {
return Optional.ofNullable(this.encryption);
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return The extended location of the virtual network.
*
*/
public Optional extendedLocation() {
return Optional.ofNullable(this.extendedLocation);
}
/**
* @return A collection of references to flow log resources.
*
*/
public List flowLogs() {
return this.flowLogs;
}
/**
* @return The FlowTimeout value (in minutes) for the Virtual Network
*
*/
public Optional flowTimeoutInMinutes() {
return Optional.ofNullable(this.flowTimeoutInMinutes);
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Array of IpAllocation which reference this VNET.
*
*/
public List ipAllocations() {
return this.ipAllocations == null ? List.of() : this.ipAllocations;
}
/**
* @return Resource location.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state of the virtual network resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The resourceGuid property of the Virtual Network resource.
*
*/
public String resourceGuid() {
return this.resourceGuid;
}
/**
* @return A list of subnets in a Virtual Network.
*
*/
public List subnets() {
return this.subnets == null ? List.of() : this.subnets;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return A list of peerings in a Virtual Network.
*
*/
public List virtualNetworkPeerings() {
return this.virtualNetworkPeerings == null ? List.of() : this.virtualNetworkPeerings;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualNetworkResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AddressSpaceResponse addressSpace;
private @Nullable VirtualNetworkBgpCommunitiesResponse bgpCommunities;
private @Nullable SubResourceResponse ddosProtectionPlan;
private @Nullable DhcpOptionsResponse dhcpOptions;
private @Nullable Boolean enableDdosProtection;
private @Nullable Boolean enableVmProtection;
private @Nullable VirtualNetworkEncryptionResponse encryption;
private String etag;
private @Nullable ExtendedLocationResponse extendedLocation;
private List flowLogs;
private @Nullable Integer flowTimeoutInMinutes;
private @Nullable String id;
private @Nullable List ipAllocations;
private @Nullable String location;
private String name;
private String provisioningState;
private String resourceGuid;
private @Nullable List subnets;
private @Nullable Map tags;
private String type;
private @Nullable List virtualNetworkPeerings;
public Builder() {}
public Builder(GetVirtualNetworkResult defaults) {
Objects.requireNonNull(defaults);
this.addressSpace = defaults.addressSpace;
this.bgpCommunities = defaults.bgpCommunities;
this.ddosProtectionPlan = defaults.ddosProtectionPlan;
this.dhcpOptions = defaults.dhcpOptions;
this.enableDdosProtection = defaults.enableDdosProtection;
this.enableVmProtection = defaults.enableVmProtection;
this.encryption = defaults.encryption;
this.etag = defaults.etag;
this.extendedLocation = defaults.extendedLocation;
this.flowLogs = defaults.flowLogs;
this.flowTimeoutInMinutes = defaults.flowTimeoutInMinutes;
this.id = defaults.id;
this.ipAllocations = defaults.ipAllocations;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.resourceGuid = defaults.resourceGuid;
this.subnets = defaults.subnets;
this.tags = defaults.tags;
this.type = defaults.type;
this.virtualNetworkPeerings = defaults.virtualNetworkPeerings;
}
@CustomType.Setter
public Builder addressSpace(@Nullable AddressSpaceResponse addressSpace) {
this.addressSpace = addressSpace;
return this;
}
@CustomType.Setter
public Builder bgpCommunities(@Nullable VirtualNetworkBgpCommunitiesResponse bgpCommunities) {
this.bgpCommunities = bgpCommunities;
return this;
}
@CustomType.Setter
public Builder ddosProtectionPlan(@Nullable SubResourceResponse ddosProtectionPlan) {
this.ddosProtectionPlan = ddosProtectionPlan;
return this;
}
@CustomType.Setter
public Builder dhcpOptions(@Nullable DhcpOptionsResponse dhcpOptions) {
this.dhcpOptions = dhcpOptions;
return this;
}
@CustomType.Setter
public Builder enableDdosProtection(@Nullable Boolean enableDdosProtection) {
this.enableDdosProtection = enableDdosProtection;
return this;
}
@CustomType.Setter
public Builder enableVmProtection(@Nullable Boolean enableVmProtection) {
this.enableVmProtection = enableVmProtection;
return this;
}
@CustomType.Setter
public Builder encryption(@Nullable VirtualNetworkEncryptionResponse encryption) {
this.encryption = encryption;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder extendedLocation(@Nullable ExtendedLocationResponse extendedLocation) {
this.extendedLocation = extendedLocation;
return this;
}
@CustomType.Setter
public Builder flowLogs(List flowLogs) {
if (flowLogs == null) {
throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "flowLogs");
}
this.flowLogs = flowLogs;
return this;
}
public Builder flowLogs(FlowLogResponse... flowLogs) {
return flowLogs(List.of(flowLogs));
}
@CustomType.Setter
public Builder flowTimeoutInMinutes(@Nullable Integer flowTimeoutInMinutes) {
this.flowTimeoutInMinutes = flowTimeoutInMinutes;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder ipAllocations(@Nullable List ipAllocations) {
this.ipAllocations = ipAllocations;
return this;
}
public Builder ipAllocations(SubResourceResponse... ipAllocations) {
return ipAllocations(List.of(ipAllocations));
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder resourceGuid(String resourceGuid) {
if (resourceGuid == null) {
throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "resourceGuid");
}
this.resourceGuid = resourceGuid;
return this;
}
@CustomType.Setter
public Builder subnets(@Nullable List subnets) {
this.subnets = subnets;
return this;
}
public Builder subnets(SubnetResponse... subnets) {
return subnets(List.of(subnets));
}
@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("GetVirtualNetworkResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder virtualNetworkPeerings(@Nullable List virtualNetworkPeerings) {
this.virtualNetworkPeerings = virtualNetworkPeerings;
return this;
}
public Builder virtualNetworkPeerings(VirtualNetworkPeeringResponse... virtualNetworkPeerings) {
return virtualNetworkPeerings(List.of(virtualNetworkPeerings));
}
public GetVirtualNetworkResult build() {
final var _resultValue = new GetVirtualNetworkResult();
_resultValue.addressSpace = addressSpace;
_resultValue.bgpCommunities = bgpCommunities;
_resultValue.ddosProtectionPlan = ddosProtectionPlan;
_resultValue.dhcpOptions = dhcpOptions;
_resultValue.enableDdosProtection = enableDdosProtection;
_resultValue.enableVmProtection = enableVmProtection;
_resultValue.encryption = encryption;
_resultValue.etag = etag;
_resultValue.extendedLocation = extendedLocation;
_resultValue.flowLogs = flowLogs;
_resultValue.flowTimeoutInMinutes = flowTimeoutInMinutes;
_resultValue.id = id;
_resultValue.ipAllocations = ipAllocations;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.resourceGuid = resourceGuid;
_resultValue.subnets = subnets;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.virtualNetworkPeerings = virtualNetworkPeerings;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy