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

package com.azure.resourcemanager.sphere.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.sphere.models.AllowCrashDumpCollection;
import com.azure.resourcemanager.sphere.models.OSFeedType;
import com.azure.resourcemanager.sphere.models.RegionalDataBoundary;
import com.azure.resourcemanager.sphere.models.UpdatePolicy;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The updatable properties of the DeviceGroup. */
@Fluent
public final class DeviceGroupUpdateProperties {
    /*
     * Description of the device group.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Operating system feed type of the device group.
     */
    @JsonProperty(value = "osFeedType")
    private OSFeedType osFeedType;

    /*
     * Update policy of the device group.
     */
    @JsonProperty(value = "updatePolicy")
    private UpdatePolicy updatePolicy;

    /*
     * Flag to define if the user allows for crash dump collection.
     */
    @JsonProperty(value = "allowCrashDumpsCollection")
    private AllowCrashDumpCollection allowCrashDumpsCollection;

    /*
     * Regional data boundary for the device group.
     */
    @JsonProperty(value = "regionalDataBoundary")
    private RegionalDataBoundary regionalDataBoundary;

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

    /**
     * Get the description property: Description of the device group.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Description of the device group.
     *
     * @param description the description value to set.
     * @return the DeviceGroupUpdateProperties object itself.
     */
    public DeviceGroupUpdateProperties withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the osFeedType property: Operating system feed type of the device group.
     *
     * @return the osFeedType value.
     */
    public OSFeedType osFeedType() {
        return this.osFeedType;
    }

    /**
     * Set the osFeedType property: Operating system feed type of the device group.
     *
     * @param osFeedType the osFeedType value to set.
     * @return the DeviceGroupUpdateProperties object itself.
     */
    public DeviceGroupUpdateProperties withOsFeedType(OSFeedType osFeedType) {
        this.osFeedType = osFeedType;
        return this;
    }

    /**
     * Get the updatePolicy property: Update policy of the device group.
     *
     * @return the updatePolicy value.
     */
    public UpdatePolicy updatePolicy() {
        return this.updatePolicy;
    }

    /**
     * Set the updatePolicy property: Update policy of the device group.
     *
     * @param updatePolicy the updatePolicy value to set.
     * @return the DeviceGroupUpdateProperties object itself.
     */
    public DeviceGroupUpdateProperties withUpdatePolicy(UpdatePolicy updatePolicy) {
        this.updatePolicy = updatePolicy;
        return this;
    }

    /**
     * Get the allowCrashDumpsCollection property: Flag to define if the user allows for crash dump collection.
     *
     * @return the allowCrashDumpsCollection value.
     */
    public AllowCrashDumpCollection allowCrashDumpsCollection() {
        return this.allowCrashDumpsCollection;
    }

    /**
     * Set the allowCrashDumpsCollection property: Flag to define if the user allows for crash dump collection.
     *
     * @param allowCrashDumpsCollection the allowCrashDumpsCollection value to set.
     * @return the DeviceGroupUpdateProperties object itself.
     */
    public DeviceGroupUpdateProperties withAllowCrashDumpsCollection(
        AllowCrashDumpCollection allowCrashDumpsCollection) {
        this.allowCrashDumpsCollection = allowCrashDumpsCollection;
        return this;
    }

    /**
     * Get the regionalDataBoundary property: Regional data boundary for the device group.
     *
     * @return the regionalDataBoundary value.
     */
    public RegionalDataBoundary regionalDataBoundary() {
        return this.regionalDataBoundary;
    }

    /**
     * Set the regionalDataBoundary property: Regional data boundary for the device group.
     *
     * @param regionalDataBoundary the regionalDataBoundary value to set.
     * @return the DeviceGroupUpdateProperties object itself.
     */
    public DeviceGroupUpdateProperties withRegionalDataBoundary(RegionalDataBoundary regionalDataBoundary) {
        this.regionalDataBoundary = regionalDataBoundary;
        return this;
    }

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