// 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;

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

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

    /**
     * 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 NumberGreaterThanOrEqualsFilter object itself.
     */
    public NumberGreaterThanOrEqualsFilter withValue(Double value) {
        this.value = value;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public NumberGreaterThanOrEqualsFilter 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();
    }
}
