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

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The ONVIF device DNS properties. */
@Fluent
public final class OnvifHostName {
    /*
     * Result value showing if the ONVIF device is configured to use DHCP.
     */
    @JsonProperty(value = "fromDhcp")
    private Boolean fromDhcp;

    /*
     * The hostname of the ONVIF device.
     */
    @JsonProperty(value = "hostname")
    private String hostname;

    /**
     * Get the fromDhcp property: Result value showing if the ONVIF device is configured to use DHCP.
     *
     * @return the fromDhcp value.
     */
    public Boolean isFromDhcp() {
        return this.fromDhcp;
    }

    /**
     * Set the fromDhcp property: Result value showing if the ONVIF device is configured to use DHCP.
     *
     * @param fromDhcp the fromDhcp value to set.
     * @return the OnvifHostName object itself.
     */
    public OnvifHostName setFromDhcp(Boolean fromDhcp) {
        this.fromDhcp = fromDhcp;
        return this;
    }

    /**
     * Get the hostname property: The hostname of the ONVIF device.
     *
     * @return the hostname value.
     */
    public String getHostname() {
        return this.hostname;
    }

    /**
     * Set the hostname property: The hostname of the ONVIF device.
     *
     * @param hostname the hostname value to set.
     * @return the OnvifHostName object itself.
     */
    public OnvifHostName setHostname(String hostname) {
        this.hostname = hostname;
        return this;
    }
}
