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

com.microsoft.azure.management.dns.implementation.ZoneInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft DNS Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-dns is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.dns.implementation;

import java.util.List;
import com.microsoft.azure.management.dns.ZoneType;
import com.microsoft.azure.management.dns.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;

/**
 * Describes a DNS zone.
 */
@JsonFlatten
public class ZoneInner extends Resource {
    /**
     * The etag of the zone.
     */
    @JsonProperty(value = "etag")
    private String etag;

    /**
     * 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.
     */
    @JsonProperty(value = "properties.maxNumberOfRecordSets", access = JsonProperty.Access.WRITE_ONLY)
    private Long maxNumberOfRecordSets;

    /**
     * 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.
     */
    @JsonProperty(value = "properties.numberOfRecordSets", access = JsonProperty.Access.WRITE_ONLY)
    private Long numberOfRecordSets;

    /**
     * The name servers for this DNS zone. This is a read-only property and any
     * attempt to set this value will be ignored.
     */
    @JsonProperty(value = "properties.nameServers", access = JsonProperty.Access.WRITE_ONLY)
    private List nameServers;

    /**
     * The type of this DNS zone (Public or Private). Possible values include:
     * 'Public', 'Private'.
     */
    @JsonProperty(value = "properties.zoneType")
    private ZoneType zoneType;

    /**
     * A list of references to virtual networks that register hostnames in this
     * DNS zone. This is a only when ZoneType is Private.
     */
    @JsonProperty(value = "properties.registrationVirtualNetworks")
    private List registrationVirtualNetworks;

    /**
     * A list of references to virtual networks that resolve records in this
     * DNS zone. This is a only when ZoneType is Private.
     */
    @JsonProperty(value = "properties.resolutionVirtualNetworks")
    private List resolutionVirtualNetworks;

    /**
     * Get the etag value.
     *
     * @return the etag value
     */
    public String etag() {
        return this.etag;
    }

    /**
     * Set the etag value.
     *
     * @param etag the etag value to set
     * @return the ZoneInner object itself.
     */
    public ZoneInner withEtag(String etag) {
        this.etag = etag;
        return this;
    }

    /**
     * Get the maxNumberOfRecordSets value.
     *
     * @return the maxNumberOfRecordSets value
     */
    public Long maxNumberOfRecordSets() {
        return this.maxNumberOfRecordSets;
    }

    /**
     * Get the numberOfRecordSets value.
     *
     * @return the numberOfRecordSets value
     */
    public Long numberOfRecordSets() {
        return this.numberOfRecordSets;
    }

    /**
     * Get the nameServers value.
     *
     * @return the nameServers value
     */
    public List nameServers() {
        return this.nameServers;
    }

    /**
     * Get the zoneType value.
     *
     * @return the zoneType value
     */
    public ZoneType zoneType() {
        return this.zoneType;
    }

    /**
     * Set the zoneType value.
     *
     * @param zoneType the zoneType value to set
     * @return the ZoneInner object itself.
     */
    public ZoneInner withZoneType(ZoneType zoneType) {
        this.zoneType = zoneType;
        return this;
    }

    /**
     * Get the registrationVirtualNetworks value.
     *
     * @return the registrationVirtualNetworks value
     */
    public List registrationVirtualNetworks() {
        return this.registrationVirtualNetworks;
    }

    /**
     * Set the registrationVirtualNetworks value.
     *
     * @param registrationVirtualNetworks the registrationVirtualNetworks value to set
     * @return the ZoneInner object itself.
     */
    public ZoneInner withRegistrationVirtualNetworks(List registrationVirtualNetworks) {
        this.registrationVirtualNetworks = registrationVirtualNetworks;
        return this;
    }

    /**
     * Get the resolutionVirtualNetworks value.
     *
     * @return the resolutionVirtualNetworks value
     */
    public List resolutionVirtualNetworks() {
        return this.resolutionVirtualNetworks;
    }

    /**
     * Set the resolutionVirtualNetworks value.
     *
     * @param resolutionVirtualNetworks the resolutionVirtualNetworks value to set
     * @return the ZoneInner object itself.
     */
    public ZoneInner withResolutionVirtualNetworks(List resolutionVirtualNetworks) {
        this.resolutionVirtualNetworks = resolutionVirtualNetworks;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy