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

com.pulumi.azurenative.network.outputs.GetVirtualNetworkLinkResult Maven / Gradle / Ivy

There is a newer version: 2.72.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.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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetVirtualNetworkLinkResult {
    /**
     * @return The ETag of the virtual network link.
     * 
     */
    private @Nullable String etag;
    /**
     * @return Fully qualified resource Id for the resource. Example - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateDnsZoneName}'.
     * 
     */
    private String id;
    /**
     * @return The Azure Region where the resource lives
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    private String provisioningState;
    /**
     * @return Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?
     * 
     */
    private @Nullable Boolean registrationEnabled;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
     * 
     */
    private String type;
    /**
     * @return The reference of the virtual network.
     * 
     */
    private @Nullable SubResourceResponse virtualNetwork;
    /**
     * @return The status of the virtual network link to the Private DNS zone. Possible values are 'InProgress' and 'Done'. This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    private String virtualNetworkLinkState;

    private GetVirtualNetworkLinkResult() {}
    /**
     * @return The ETag of the virtual network link.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Fully qualified resource Id for the resource. Example - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateDnsZoneName}'.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The Azure Region where the resource lives
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?
     * 
     */
    public Optional registrationEnabled() {
        return Optional.ofNullable(this.registrationEnabled);
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource. Example - 'Microsoft.Network/privateDnsZones'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The reference of the virtual network.
     * 
     */
    public Optional virtualNetwork() {
        return Optional.ofNullable(this.virtualNetwork);
    }
    /**
     * @return The status of the virtual network link to the Private DNS zone. Possible values are 'InProgress' and 'Done'. This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    public String virtualNetworkLinkState() {
        return this.virtualNetworkLinkState;
    }

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

    public static Builder builder(GetVirtualNetworkLinkResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String etag;
        private String id;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private @Nullable Boolean registrationEnabled;
        private @Nullable Map tags;
        private String type;
        private @Nullable SubResourceResponse virtualNetwork;
        private String virtualNetworkLinkState;
        public Builder() {}
        public Builder(GetVirtualNetworkLinkResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.registrationEnabled = defaults.registrationEnabled;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.virtualNetwork = defaults.virtualNetwork;
    	      this.virtualNetworkLinkState = defaults.virtualNetworkLinkState;
        }

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

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkLinkResult", "id");
            }
            this.id = id;
            return this;
        }
        @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("GetVirtualNetworkLinkResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkLinkResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder registrationEnabled(@Nullable Boolean registrationEnabled) {

            this.registrationEnabled = registrationEnabled;
            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("GetVirtualNetworkLinkResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNetwork(@Nullable SubResourceResponse virtualNetwork) {

            this.virtualNetwork = virtualNetwork;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNetworkLinkState(String virtualNetworkLinkState) {
            if (virtualNetworkLinkState == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkLinkResult", "virtualNetworkLinkState");
            }
            this.virtualNetworkLinkState = virtualNetworkLinkState;
            return this;
        }
        public GetVirtualNetworkLinkResult build() {
            final var _resultValue = new GetVirtualNetworkLinkResult();
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.registrationEnabled = registrationEnabled;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.virtualNetwork = virtualNetwork;
            _resultValue.virtualNetworkLinkState = virtualNetworkLinkState;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy