com.pulumi.azure.network.outputs.GetSubnetResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.network.outputs;
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.Objects;
@CustomType
public final class GetSubnetResult {
private String addressPrefix;
/**
* @return The address prefixes for the subnet.
*
*/
private List addressPrefixes;
/**
* @return Is the default outbound access enabled for the subnet.
*
*/
private Boolean defaultOutboundAccessEnabled;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String name;
/**
* @return The ID of the Network Security Group associated with the subnet.
*
*/
private String networkSecurityGroupId;
/**
* @return Enable or Disable network policies for the private endpoint on the subnet.
*
*/
private String privateEndpointNetworkPolicies;
/**
* @return Enable or Disable network policies for the private link service on the subnet.
*
*/
private Boolean privateLinkServiceNetworkPoliciesEnabled;
private String resourceGroupName;
/**
* @return The ID of the Route Table associated with this subnet.
*
*/
private String routeTableId;
/**
* @return A list of Service Endpoints within this subnet.
*
*/
private List serviceEndpoints;
private String virtualNetworkName;
private GetSubnetResult() {}
public String addressPrefix() {
return this.addressPrefix;
}
/**
* @return The address prefixes for the subnet.
*
*/
public List addressPrefixes() {
return this.addressPrefixes;
}
/**
* @return Is the default outbound access enabled for the subnet.
*
*/
public Boolean defaultOutboundAccessEnabled() {
return this.defaultOutboundAccessEnabled;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String name() {
return this.name;
}
/**
* @return The ID of the Network Security Group associated with the subnet.
*
*/
public String networkSecurityGroupId() {
return this.networkSecurityGroupId;
}
/**
* @return Enable or Disable network policies for the private endpoint on the subnet.
*
*/
public String privateEndpointNetworkPolicies() {
return this.privateEndpointNetworkPolicies;
}
/**
* @return Enable or Disable network policies for the private link service on the subnet.
*
*/
public Boolean privateLinkServiceNetworkPoliciesEnabled() {
return this.privateLinkServiceNetworkPoliciesEnabled;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* @return The ID of the Route Table associated with this subnet.
*
*/
public String routeTableId() {
return this.routeTableId;
}
/**
* @return A list of Service Endpoints within this subnet.
*
*/
public List serviceEndpoints() {
return this.serviceEndpoints;
}
public String virtualNetworkName() {
return this.virtualNetworkName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetSubnetResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String addressPrefix;
private List addressPrefixes;
private Boolean defaultOutboundAccessEnabled;
private String id;
private String name;
private String networkSecurityGroupId;
private String privateEndpointNetworkPolicies;
private Boolean privateLinkServiceNetworkPoliciesEnabled;
private String resourceGroupName;
private String routeTableId;
private List serviceEndpoints;
private String virtualNetworkName;
public Builder() {}
public Builder(GetSubnetResult defaults) {
Objects.requireNonNull(defaults);
this.addressPrefix = defaults.addressPrefix;
this.addressPrefixes = defaults.addressPrefixes;
this.defaultOutboundAccessEnabled = defaults.defaultOutboundAccessEnabled;
this.id = defaults.id;
this.name = defaults.name;
this.networkSecurityGroupId = defaults.networkSecurityGroupId;
this.privateEndpointNetworkPolicies = defaults.privateEndpointNetworkPolicies;
this.privateLinkServiceNetworkPoliciesEnabled = defaults.privateLinkServiceNetworkPoliciesEnabled;
this.resourceGroupName = defaults.resourceGroupName;
this.routeTableId = defaults.routeTableId;
this.serviceEndpoints = defaults.serviceEndpoints;
this.virtualNetworkName = defaults.virtualNetworkName;
}
@CustomType.Setter
public Builder addressPrefix(String addressPrefix) {
if (addressPrefix == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "addressPrefix");
}
this.addressPrefix = addressPrefix;
return this;
}
@CustomType.Setter
public Builder addressPrefixes(List addressPrefixes) {
if (addressPrefixes == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "addressPrefixes");
}
this.addressPrefixes = addressPrefixes;
return this;
}
public Builder addressPrefixes(String... addressPrefixes) {
return addressPrefixes(List.of(addressPrefixes));
}
@CustomType.Setter
public Builder defaultOutboundAccessEnabled(Boolean defaultOutboundAccessEnabled) {
if (defaultOutboundAccessEnabled == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "defaultOutboundAccessEnabled");
}
this.defaultOutboundAccessEnabled = defaultOutboundAccessEnabled;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder networkSecurityGroupId(String networkSecurityGroupId) {
if (networkSecurityGroupId == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "networkSecurityGroupId");
}
this.networkSecurityGroupId = networkSecurityGroupId;
return this;
}
@CustomType.Setter
public Builder privateEndpointNetworkPolicies(String privateEndpointNetworkPolicies) {
if (privateEndpointNetworkPolicies == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "privateEndpointNetworkPolicies");
}
this.privateEndpointNetworkPolicies = privateEndpointNetworkPolicies;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceNetworkPoliciesEnabled(Boolean privateLinkServiceNetworkPoliciesEnabled) {
if (privateLinkServiceNetworkPoliciesEnabled == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "privateLinkServiceNetworkPoliciesEnabled");
}
this.privateLinkServiceNetworkPoliciesEnabled = privateLinkServiceNetworkPoliciesEnabled;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder routeTableId(String routeTableId) {
if (routeTableId == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "routeTableId");
}
this.routeTableId = routeTableId;
return this;
}
@CustomType.Setter
public Builder serviceEndpoints(List serviceEndpoints) {
if (serviceEndpoints == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "serviceEndpoints");
}
this.serviceEndpoints = serviceEndpoints;
return this;
}
public Builder serviceEndpoints(String... serviceEndpoints) {
return serviceEndpoints(List.of(serviceEndpoints));
}
@CustomType.Setter
public Builder virtualNetworkName(String virtualNetworkName) {
if (virtualNetworkName == null) {
throw new MissingRequiredPropertyException("GetSubnetResult", "virtualNetworkName");
}
this.virtualNetworkName = virtualNetworkName;
return this;
}
public GetSubnetResult build() {
final var _resultValue = new GetSubnetResult();
_resultValue.addressPrefix = addressPrefix;
_resultValue.addressPrefixes = addressPrefixes;
_resultValue.defaultOutboundAccessEnabled = defaultOutboundAccessEnabled;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.networkSecurityGroupId = networkSecurityGroupId;
_resultValue.privateEndpointNetworkPolicies = privateEndpointNetworkPolicies;
_resultValue.privateLinkServiceNetworkPoliciesEnabled = privateLinkServiceNetworkPoliciesEnabled;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.routeTableId = routeTableId;
_resultValue.serviceEndpoints = serviceEndpoints;
_resultValue.virtualNetworkName = virtualNetworkName;
return _resultValue;
}
}
}