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

package com.azure.resourcemanager.eventgrid.models;

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

/** NumberLessThanOrEquals Filter. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "operatorType")
@JsonTypeName("NumberLessThanOrEquals")
@Fluent
public final class NumberLessThanOrEqualsFilter extends Filter {
    /*
     * The filter value.
     */
    @JsonProperty(value = "value")
    private Double value;

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

    /**
     * Get the value property: The filter value.
     *
     * @return the value value.
     */
    public Double value() {
        return this.value;
    }

    /**
     * Set the value property: The filter value.
     *
     * @param value the value value to set.
     * @return the NumberLessThanOrEqualsFilter object itself.
     */
    public NumberLessThanOrEqualsFilter withValue(Double value) {
        this.value = value;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public NumberLessThanOrEqualsFilter withKey(String key) {
        super.withKey(key);
        return this;
    }

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