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

package com.azure.resourcemanager.qumulo.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The updatable properties of the FileSystemResource. */
@Fluent
public final class FileSystemResourceUpdateProperties {
    /*
     * Marketplace details
     */
    @JsonProperty(value = "marketplaceDetails")
    private MarketplaceDetails marketplaceDetails;

    /*
     * User Details
     */
    @JsonProperty(value = "userDetails")
    private UserDetails userDetails;

    /*
     * Delegated subnet id for Vnet injection
     */
    @JsonProperty(value = "delegatedSubnetId")
    private String delegatedSubnetId;

    /*
     * File system Id of the resource
     */
    @JsonProperty(value = "clusterLoginUrl")
    private String clusterLoginUrl;

    /*
     * Private IPs of the resource
     */
    @JsonProperty(value = "privateIPs")
    private List<String> privateIPs;

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

    /**
     * Get the marketplaceDetails property: Marketplace details.
     *
     * @return the marketplaceDetails value.
     */
    public MarketplaceDetails marketplaceDetails() {
        return this.marketplaceDetails;
    }

    /**
     * Set the marketplaceDetails property: Marketplace details.
     *
     * @param marketplaceDetails the marketplaceDetails value to set.
     * @return the FileSystemResourceUpdateProperties object itself.
     */
    public FileSystemResourceUpdateProperties withMarketplaceDetails(MarketplaceDetails marketplaceDetails) {
        this.marketplaceDetails = marketplaceDetails;
        return this;
    }

    /**
     * Get the userDetails property: User Details.
     *
     * @return the userDetails value.
     */
    public UserDetails userDetails() {
        return this.userDetails;
    }

    /**
     * Set the userDetails property: User Details.
     *
     * @param userDetails the userDetails value to set.
     * @return the FileSystemResourceUpdateProperties object itself.
     */
    public FileSystemResourceUpdateProperties withUserDetails(UserDetails userDetails) {
        this.userDetails = userDetails;
        return this;
    }

    /**
     * Get the delegatedSubnetId property: Delegated subnet id for Vnet injection.
     *
     * @return the delegatedSubnetId value.
     */
    public String delegatedSubnetId() {
        return this.delegatedSubnetId;
    }

    /**
     * Set the delegatedSubnetId property: Delegated subnet id for Vnet injection.
     *
     * @param delegatedSubnetId the delegatedSubnetId value to set.
     * @return the FileSystemResourceUpdateProperties object itself.
     */
    public FileSystemResourceUpdateProperties withDelegatedSubnetId(String delegatedSubnetId) {
        this.delegatedSubnetId = delegatedSubnetId;
        return this;
    }

    /**
     * Get the clusterLoginUrl property: File system Id of the resource.
     *
     * @return the clusterLoginUrl value.
     */
    public String clusterLoginUrl() {
        return this.clusterLoginUrl;
    }

    /**
     * Set the clusterLoginUrl property: File system Id of the resource.
     *
     * @param clusterLoginUrl the clusterLoginUrl value to set.
     * @return the FileSystemResourceUpdateProperties object itself.
     */
    public FileSystemResourceUpdateProperties withClusterLoginUrl(String clusterLoginUrl) {
        this.clusterLoginUrl = clusterLoginUrl;
        return this;
    }

    /**
     * Get the privateIPs property: Private IPs of the resource.
     *
     * @return the privateIPs value.
     */
    public List<String> privateIPs() {
        return this.privateIPs;
    }

    /**
     * Set the privateIPs property: Private IPs of the resource.
     *
     * @param privateIPs the privateIPs value to set.
     * @return the FileSystemResourceUpdateProperties object itself.
     */
    public FileSystemResourceUpdateProperties withPrivateIPs(List<String> privateIPs) {
        this.privateIPs = privateIPs;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (marketplaceDetails() != null) {
            marketplaceDetails().validate();
        }
        if (userDetails() != null) {
            userDetails().validate();
        }
    }
}
