// 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.VMGroupStatusEnum;
import com.azure.resourcemanager.avs.models.WorkloadNetworkVMGroupProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** NSX VM Group Properties. */
@Fluent
public final class WorkloadNetworkVMGroupProperties {
    /*
     * Display name of the VM group.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * Virtual machine members of this group.
     */
    @JsonProperty(value = "members")
    private List<String> members;

    /*
     * VM Group status.
     */
    @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
    private VMGroupStatusEnum status;

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

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

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

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

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

    /**
     * Get the members property: Virtual machine members of this group.
     *
     * @return the members value.
     */
    public List<String> members() {
        return this.members;
    }

    /**
     * Set the members property: Virtual machine members of this group.
     *
     * @param members the members value to set.
     * @return the WorkloadNetworkVMGroupProperties object itself.
     */
    public WorkloadNetworkVMGroupProperties withMembers(List<String> members) {
        this.members = members;
        return this;
    }

    /**
     * Get the status property: VM Group status.
     *
     * @return the status value.
     */
    public VMGroupStatusEnum status() {
        return this.status;
    }

    /**
     * Get the provisioningState property: The provisioning state.
     *
     * @return the provisioningState value.
     */
    public WorkloadNetworkVMGroupProvisioningState 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 WorkloadNetworkVMGroupProperties object itself.
     */
    public WorkloadNetworkVMGroupProperties withRevision(Long revision) {
        this.revision = revision;
        return this;
    }

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