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

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

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

/** The firewall rule properties. */
@Immutable
public final class FirewallRuleProperties {
    /*
     * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
     * protocol.
     */
    @JsonProperty(value = "startIpAddress", access = JsonProperty.Access.WRITE_ONLY)
    private String startIpAddress;

    /*
     * The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same
     * protocol.
     */
    @JsonProperty(value = "endIpAddress", access = JsonProperty.Access.WRITE_ONLY)
    private String endIpAddress;

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

    /**
     * Get the startIpAddress property: The start IP address for the firewall rule. This can be either ipv4 or ipv6.
     * Start and End should be in the same protocol.
     *
     * @return the startIpAddress value.
     */
    public String startIpAddress() {
        return this.startIpAddress;
    }

    /**
     * Get the endIpAddress property: The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start
     * and End should be in the same protocol.
     *
     * @return the endIpAddress value.
     */
    public String endIpAddress() {
        return this.endIpAddress;
    }

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