// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.avs.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.avs.models.DnsServiceLogLevelEnum;
import com.azure.resourcemanager.avs.models.DnsServiceStatusEnum;
import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsServiceProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** NSX DNS Service Properties. */
@Fluent
public final class WorkloadNetworkDnsServiceProperties {
    /*
     * Display name of the DNS Service.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * DNS service IP of the DNS Service.
     */
    @JsonProperty(value = "dnsServiceIp")
    private String dnsServiceIp;

    /*
     * Default DNS zone of the DNS Service.
     */
    @JsonProperty(value = "defaultDnsZone")
    private String defaultDnsZone;

    /*
     * FQDN zones of the DNS Service.
     */
    @JsonProperty(value = "fqdnZones")
    private List<String> fqdnZones;

    /*
     * DNS Service log level.
     */
    @JsonProperty(value = "logLevel")
    private DnsServiceLogLevelEnum logLevel;

    /*
     * DNS Service status.
     */
    @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
    private DnsServiceStatusEnum status;

    /*
     * The provisioning state
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private WorkloadNetworkDnsServiceProvisioningState provisioningState;

    /*
     * NSX revision number.
     */
    @JsonProperty(value = "revision")
    private Long revision;

    /** Creates an instance of WorkloadNetworkDnsServiceProperties class. */
    public WorkloadNetworkDnsServiceProperties() {
    }

    /**
     * Get the displayName property: Display name of the DNS Service.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: Display name of the DNS Service.
     *
     * @param displayName the displayName value to set.
     * @return the WorkloadNetworkDnsServiceProperties object itself.
     */
    public WorkloadNetworkDnsServiceProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the dnsServiceIp property: DNS service IP of the DNS Service.
     *
     * @return the dnsServiceIp value.
     */
    public String dnsServiceIp() {
        return this.dnsServiceIp;
    }

    /**
     * Set the dnsServiceIp property: DNS service IP of the DNS Service.
     *
     * @param dnsServiceIp the dnsServiceIp value to set.
     * @return the WorkloadNetworkDnsServiceProperties object itself.
     */
    public WorkloadNetworkDnsServiceProperties withDnsServiceIp(String dnsServiceIp) {
        this.dnsServiceIp = dnsServiceIp;
        return this;
    }

    /**
     * Get the defaultDnsZone property: Default DNS zone of the DNS Service.
     *
     * @return the defaultDnsZone value.
     */
    public String defaultDnsZone() {
        return this.defaultDnsZone;
    }

    /**
     * Set the defaultDnsZone property: Default DNS zone of the DNS Service.
     *
     * @param defaultDnsZone the defaultDnsZone value to set.
     * @return the WorkloadNetworkDnsServiceProperties object itself.
     */
    public WorkloadNetworkDnsServiceProperties withDefaultDnsZone(String defaultDnsZone) {
        this.defaultDnsZone = defaultDnsZone;
        return this;
    }

    /**
     * Get the fqdnZones property: FQDN zones of the DNS Service.
     *
     * @return the fqdnZones value.
     */
    public List<String> fqdnZones() {
        return this.fqdnZones;
    }

    /**
     * Set the fqdnZones property: FQDN zones of the DNS Service.
     *
     * @param fqdnZones the fqdnZones value to set.
     * @return the WorkloadNetworkDnsServiceProperties object itself.
     */
    public WorkloadNetworkDnsServiceProperties withFqdnZones(List<String> fqdnZones) {
        this.fqdnZones = fqdnZones;
        return this;
    }

    /**
     * Get the logLevel property: DNS Service log level.
     *
     * @return the logLevel value.
     */
    public DnsServiceLogLevelEnum logLevel() {
        return this.logLevel;
    }

    /**
     * Set the logLevel property: DNS Service log level.
     *
     * @param logLevel the logLevel value to set.
     * @return the WorkloadNetworkDnsServiceProperties object itself.
     */
    public WorkloadNetworkDnsServiceProperties withLogLevel(DnsServiceLogLevelEnum logLevel) {
        this.logLevel = logLevel;
        return this;
    }

    /**
     * Get the status property: DNS Service status.
     *
     * @return the status value.
     */
    public DnsServiceStatusEnum status() {
        return this.status;
    }

    /**
     * Get the provisioningState property: The provisioning state.
     *
     * @return the provisioningState value.
     */
    public WorkloadNetworkDnsServiceProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the revision property: NSX revision number.
     *
     * @return the revision value.
     */
    public Long revision() {
        return this.revision;
    }

    /**
     * Set the revision property: NSX revision number.
     *
     * @param revision the revision value to set.
     * @return the WorkloadNetworkDnsServiceProperties object itself.
     */
    public WorkloadNetworkDnsServiceProperties withRevision(Long revision) {
        this.revision = revision;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
