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

com.pulumi.azurenative.network.outputs.GetZoneResult 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.network.outputs;

import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
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 GetZoneResult {
    /**
     * @return The etag of the zone.
     * 
     */
    private @Nullable String etag;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource location.
     * 
     */
    private String location;
    /**
     * @return The maximum number of record sets that can be created in this DNS zone.  This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    private Double maxNumberOfRecordSets;
    /**
     * @return The maximum number of records per record set that can be created in this DNS zone.  This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    private Double maxNumberOfRecordsPerRecordSet;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    private List nameServers;
    /**
     * @return The current number of record sets in this DNS zone.  This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    private Double numberOfRecordSets;
    /**
     * @return A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    private @Nullable List registrationVirtualNetworks;
    /**
     * @return A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    private @Nullable List resolutionVirtualNetworks;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return The type of this DNS zone (Public or Private).
     * 
     */
    private @Nullable String zoneType;

    private GetZoneResult() {}
    /**
     * @return The etag of the zone.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource location.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The maximum number of record sets that can be created in this DNS zone.  This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    public Double maxNumberOfRecordSets() {
        return this.maxNumberOfRecordSets;
    }
    /**
     * @return The maximum number of records per record set that can be created in this DNS zone.  This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    public Double maxNumberOfRecordsPerRecordSet() {
        return this.maxNumberOfRecordsPerRecordSet;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    public List nameServers() {
        return this.nameServers;
    }
    /**
     * @return The current number of record sets in this DNS zone.  This is a read-only property and any attempt to set this value will be ignored.
     * 
     */
    public Double numberOfRecordSets() {
        return this.numberOfRecordSets;
    }
    /**
     * @return A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    public List registrationVirtualNetworks() {
        return this.registrationVirtualNetworks == null ? List.of() : this.registrationVirtualNetworks;
    }
    /**
     * @return A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
     * 
     */
    public List resolutionVirtualNetworks() {
        return this.resolutionVirtualNetworks == null ? List.of() : this.resolutionVirtualNetworks;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The type of this DNS zone (Public or Private).
     * 
     */
    public Optional zoneType() {
        return Optional.ofNullable(this.zoneType);
    }

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

    public static Builder builder(GetZoneResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String etag;
        private String id;
        private String location;
        private Double maxNumberOfRecordSets;
        private Double maxNumberOfRecordsPerRecordSet;
        private String name;
        private List nameServers;
        private Double numberOfRecordSets;
        private @Nullable List registrationVirtualNetworks;
        private @Nullable List resolutionVirtualNetworks;
        private @Nullable Map tags;
        private String type;
        private @Nullable String zoneType;
        public Builder() {}
        public Builder(GetZoneResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.maxNumberOfRecordSets = defaults.maxNumberOfRecordSets;
    	      this.maxNumberOfRecordsPerRecordSet = defaults.maxNumberOfRecordsPerRecordSet;
    	      this.name = defaults.name;
    	      this.nameServers = defaults.nameServers;
    	      this.numberOfRecordSets = defaults.numberOfRecordSets;
    	      this.registrationVirtualNetworks = defaults.registrationVirtualNetworks;
    	      this.resolutionVirtualNetworks = defaults.resolutionVirtualNetworks;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.zoneType = defaults.zoneType;
        }

        @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("GetZoneResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetZoneResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder maxNumberOfRecordSets(Double maxNumberOfRecordSets) {
            if (maxNumberOfRecordSets == null) {
              throw new MissingRequiredPropertyException("GetZoneResult", "maxNumberOfRecordSets");
            }
            this.maxNumberOfRecordSets = maxNumberOfRecordSets;
            return this;
        }
        @CustomType.Setter
        public Builder maxNumberOfRecordsPerRecordSet(Double maxNumberOfRecordsPerRecordSet) {
            if (maxNumberOfRecordsPerRecordSet == null) {
              throw new MissingRequiredPropertyException("GetZoneResult", "maxNumberOfRecordsPerRecordSet");
            }
            this.maxNumberOfRecordsPerRecordSet = maxNumberOfRecordsPerRecordSet;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetZoneResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder nameServers(List nameServers) {
            if (nameServers == null) {
              throw new MissingRequiredPropertyException("GetZoneResult", "nameServers");
            }
            this.nameServers = nameServers;
            return this;
        }
        public Builder nameServers(String... nameServers) {
            return nameServers(List.of(nameServers));
        }
        @CustomType.Setter
        public Builder numberOfRecordSets(Double numberOfRecordSets) {
            if (numberOfRecordSets == null) {
              throw new MissingRequiredPropertyException("GetZoneResult", "numberOfRecordSets");
            }
            this.numberOfRecordSets = numberOfRecordSets;
            return this;
        }
        @CustomType.Setter
        public Builder registrationVirtualNetworks(@Nullable List registrationVirtualNetworks) {

            this.registrationVirtualNetworks = registrationVirtualNetworks;
            return this;
        }
        public Builder registrationVirtualNetworks(SubResourceResponse... registrationVirtualNetworks) {
            return registrationVirtualNetworks(List.of(registrationVirtualNetworks));
        }
        @CustomType.Setter
        public Builder resolutionVirtualNetworks(@Nullable List resolutionVirtualNetworks) {

            this.resolutionVirtualNetworks = resolutionVirtualNetworks;
            return this;
        }
        public Builder resolutionVirtualNetworks(SubResourceResponse... resolutionVirtualNetworks) {
            return resolutionVirtualNetworks(List.of(resolutionVirtualNetworks));
        }
        @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("GetZoneResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder zoneType(@Nullable String zoneType) {

            this.zoneType = zoneType;
            return this;
        }
        public GetZoneResult build() {
            final var _resultValue = new GetZoneResult();
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.maxNumberOfRecordSets = maxNumberOfRecordSets;
            _resultValue.maxNumberOfRecordsPerRecordSet = maxNumberOfRecordsPerRecordSet;
            _resultValue.name = name;
            _resultValue.nameServers = nameServers;
            _resultValue.numberOfRecordSets = numberOfRecordSets;
            _resultValue.registrationVirtualNetworks = registrationVirtualNetworks;
            _resultValue.resolutionVirtualNetworks = resolutionVirtualNetworks;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.zoneType = zoneType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy