// 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;

/** The properties of an update vCenter request. */
@Fluent
public final class UpdateVCenterRequestProperties {
    /*
     * The friendly name of the vCenter.
     */
    @JsonProperty(value = "friendlyName")
    private String friendlyName;

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

    /*
     * The process server Id from where the update can be orchestrated.
     */
    @JsonProperty(value = "processServerId")
    private String processServerId;

    /*
     * The port number for discovery.
     */
    @JsonProperty(value = "port")
    private String port;

    /*
     * The CS account Id which has privileges to update the vCenter.
     */
    @JsonProperty(value = "runAsAccountId")
    private String runAsAccountId;

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

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

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

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

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

    /**
     * Get the processServerId property: The process server Id from where the update can be orchestrated.
     *
     * @return the processServerId value.
     */
    public String processServerId() {
        return this.processServerId;
    }

    /**
     * Set the processServerId property: The process server Id from where the update can be orchestrated.
     *
     * @param processServerId the processServerId value to set.
     * @return the UpdateVCenterRequestProperties object itself.
     */
    public UpdateVCenterRequestProperties withProcessServerId(String processServerId) {
        this.processServerId = processServerId;
        return this;
    }

    /**
     * Get the port property: The port number for discovery.
     *
     * @return the port value.
     */
    public String port() {
        return this.port;
    }

    /**
     * Set the port property: The port number for discovery.
     *
     * @param port the port value to set.
     * @return the UpdateVCenterRequestProperties object itself.
     */
    public UpdateVCenterRequestProperties withPort(String port) {
        this.port = port;
        return this;
    }

    /**
     * Get the runAsAccountId property: The CS account Id which has privileges to update the vCenter.
     *
     * @return the runAsAccountId value.
     */
    public String runAsAccountId() {
        return this.runAsAccountId;
    }

    /**
     * Set the runAsAccountId property: The CS account Id which has privileges to update the vCenter.
     *
     * @param runAsAccountId the runAsAccountId value to set.
     * @return the UpdateVCenterRequestProperties object itself.
     */
    public UpdateVCenterRequestProperties withRunAsAccountId(String runAsAccountId) {
        this.runAsAccountId = runAsAccountId;
        return this;
    }

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