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.
/** * 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.
/** * Describes a DNS zone. */
@JsonFlatten public class ZoneInner extends Resource {
The etag of the zone.
/** * 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.
/** * 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.
/** * 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.
/** * 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<String> nameServers;
The type of this DNS zone (Public or Private). Possible values include: 'Public', 'Private'.
/** * 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.
/** * 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<SubResource> registrationVirtualNetworks;
A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.
/** * 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<SubResource> resolutionVirtualNetworks;
Get the etag value.
Returns:the etag value
/** * Get the etag value. * * @return the etag value */
public String etag() { return this.etag; }
Set the etag value.
Params:
  • etag – the etag value to set
Returns:the ZoneInner object itself.
/** * 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.
Returns:the maxNumberOfRecordSets value
/** * Get the maxNumberOfRecordSets value. * * @return the maxNumberOfRecordSets value */
public Long maxNumberOfRecordSets() { return this.maxNumberOfRecordSets; }
Get the numberOfRecordSets value.
Returns:the numberOfRecordSets value
/** * Get the numberOfRecordSets value. * * @return the numberOfRecordSets value */
public Long numberOfRecordSets() { return this.numberOfRecordSets; }
Get the nameServers value.
Returns:the nameServers value
/** * Get the nameServers value. * * @return the nameServers value */
public List<String> nameServers() { return this.nameServers; }
Get the zoneType value.
Returns:the zoneType value
/** * Get the zoneType value. * * @return the zoneType value */
public ZoneType zoneType() { return this.zoneType; }
Set the zoneType value.
Params:
  • zoneType – the zoneType value to set
Returns:the ZoneInner object itself.
/** * 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.
Returns:the registrationVirtualNetworks value
/** * Get the registrationVirtualNetworks value. * * @return the registrationVirtualNetworks value */
public List<SubResource> registrationVirtualNetworks() { return this.registrationVirtualNetworks; }
Set the registrationVirtualNetworks value.
Params:
  • registrationVirtualNetworks – the registrationVirtualNetworks value to set
Returns:the ZoneInner object itself.
/** * Set the registrationVirtualNetworks value. * * @param registrationVirtualNetworks the registrationVirtualNetworks value to set * @return the ZoneInner object itself. */
public ZoneInner withRegistrationVirtualNetworks(List<SubResource> registrationVirtualNetworks) { this.registrationVirtualNetworks = registrationVirtualNetworks; return this; }
Get the resolutionVirtualNetworks value.
Returns:the resolutionVirtualNetworks value
/** * Get the resolutionVirtualNetworks value. * * @return the resolutionVirtualNetworks value */
public List<SubResource> resolutionVirtualNetworks() { return this.resolutionVirtualNetworks; }
Set the resolutionVirtualNetworks value.
Params:
  • resolutionVirtualNetworks – the resolutionVirtualNetworks value to set
Returns:the ZoneInner object itself.
/** * Set the resolutionVirtualNetworks value. * * @param resolutionVirtualNetworks the resolutionVirtualNetworks value to set * @return the ZoneInner object itself. */
public ZoneInner withResolutionVirtualNetworks(List<SubResource> resolutionVirtualNetworks) { this.resolutionVirtualNetworks = resolutionVirtualNetworks; return this; } }