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

package com.azure.resourcemanager.redisenterprise.models;

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

/**
 * Capability
 *
 * <p>Information about the features the location supports.
 */
@Fluent
public final class Capability {
    /*
     * Feature name
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Indicates whether feature is supported or not
     */
    @JsonProperty(value = "value")
    private Boolean value;

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

    /**
     * Get the name property: Feature name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Feature name.
     *
     * @param name the name value to set.
     * @return the Capability object itself.
     */
    public Capability withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the value property: Indicates whether feature is supported or not.
     *
     * @return the value value.
     */
    public Boolean value() {
        return this.value;
    }

    /**
     * Set the value property: Indicates whether feature is supported or not.
     *
     * @param value the value value to set.
     * @return the Capability object itself.
     */
    public Capability withValue(Boolean value) {
        this.value = value;
        return this;
    }

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