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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

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

/** Discover protectable item properties. */
@Fluent
public final class DiscoverProtectableItemRequestProperties {
    /*
     * The friendly name of the physical machine.
     */
    @JsonProperty(value = "friendlyName")
    private String friendlyName;

    /*
     * The IP address of the physical machine to be discovered.
     */
    @JsonProperty(value = "ipAddress")
    private String ipAddress;

    /*
     * The OS type on the physical machine.
     */
    @JsonProperty(value = "osType")
    private String osType;

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

    /**
     * Get the friendlyName property: The friendly name of the physical machine.
     *
     * @return the friendlyName value.
     */
    public String friendlyName() {
        return this.friendlyName;
    }

    /**
     * Set the friendlyName property: The friendly name of the physical machine.
     *
     * @param friendlyName the friendlyName value to set.
     * @return the DiscoverProtectableItemRequestProperties object itself.
     */
    public DiscoverProtectableItemRequestProperties withFriendlyName(String friendlyName) {
        this.friendlyName = friendlyName;
        return this;
    }

    /**
     * Get the ipAddress property: The IP address of the physical machine to be discovered.
     *
     * @return the ipAddress value.
     */
    public String ipAddress() {
        return this.ipAddress;
    }

    /**
     * Set the ipAddress property: The IP address of the physical machine to be discovered.
     *
     * @param ipAddress the ipAddress value to set.
     * @return the DiscoverProtectableItemRequestProperties object itself.
     */
    public DiscoverProtectableItemRequestProperties withIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
        return this;
    }

    /**
     * Get the osType property: The OS type on the physical machine.
     *
     * @return the osType value.
     */
    public String osType() {
        return this.osType;
    }

    /**
     * Set the osType property: The OS type on the physical machine.
     *
     * @param osType the osType value to set.
     * @return the DiscoverProtectableItemRequestProperties object itself.
     */
    public DiscoverProtectableItemRequestProperties withOsType(String osType) {
        this.osType = osType;
        return this;
    }

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