All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.dbforpostgresql.outputs.NetworkResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.dbforpostgresql.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkResponse {
    /**
     * @return Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
     * 
     */
    private @Nullable String delegatedSubnetResourceId;
    /**
     * @return Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
     * 
     */
    private @Nullable String privateDnsZoneArmResourceId;
    /**
     * @return public network access is enabled or not
     * 
     */
    private String publicNetworkAccess;

    private NetworkResponse() {}
    /**
     * @return Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
     * 
     */
    public Optional delegatedSubnetResourceId() {
        return Optional.ofNullable(this.delegatedSubnetResourceId);
    }
    /**
     * @return Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone.
     * 
     */
    public Optional privateDnsZoneArmResourceId() {
        return Optional.ofNullable(this.privateDnsZoneArmResourceId);
    }
    /**
     * @return public network access is enabled or not
     * 
     */
    public String publicNetworkAccess() {
        return this.publicNetworkAccess;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(NetworkResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String delegatedSubnetResourceId;
        private @Nullable String privateDnsZoneArmResourceId;
        private String publicNetworkAccess;
        public Builder() {}
        public Builder(NetworkResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.delegatedSubnetResourceId = defaults.delegatedSubnetResourceId;
    	      this.privateDnsZoneArmResourceId = defaults.privateDnsZoneArmResourceId;
    	      this.publicNetworkAccess = defaults.publicNetworkAccess;
        }

        @CustomType.Setter
        public Builder delegatedSubnetResourceId(@Nullable String delegatedSubnetResourceId) {

            this.delegatedSubnetResourceId = delegatedSubnetResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder privateDnsZoneArmResourceId(@Nullable String privateDnsZoneArmResourceId) {

            this.privateDnsZoneArmResourceId = privateDnsZoneArmResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            if (publicNetworkAccess == null) {
              throw new MissingRequiredPropertyException("NetworkResponse", "publicNetworkAccess");
            }
            this.publicNetworkAccess = publicNetworkAccess;
            return this;
        }
        public NetworkResponse build() {
            final var _resultValue = new NetworkResponse();
            _resultValue.delegatedSubnetResourceId = delegatedSubnetResourceId;
            _resultValue.privateDnsZoneArmResourceId = privateDnsZoneArmResourceId;
            _resultValue.publicNetworkAccess = publicNetworkAccess;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy