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

package com.azure.resourcemanager.mobilenetwork.models;

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

/** The static IP configuration for the SIM to use at the defined network scope. */
@Fluent
public final class SimStaticIpPropertiesStaticIp {
    /*
     * The IPv4 address assigned to the SIM at this network scope. This address must be in the
     * userEquipmentStaticAddressPoolPrefix defined in the attached data network.
     */
    @JsonProperty(value = "ipv4Address")
    private String ipv4Address;

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

    /**
     * Get the ipv4Address property: The IPv4 address assigned to the SIM at this network scope. This address must be in
     * the userEquipmentStaticAddressPoolPrefix defined in the attached data network.
     *
     * @return the ipv4Address value.
     */
    public String ipv4Address() {
        return this.ipv4Address;
    }

    /**
     * Set the ipv4Address property: The IPv4 address assigned to the SIM at this network scope. This address must be in
     * the userEquipmentStaticAddressPoolPrefix defined in the attached data network.
     *
     * @param ipv4Address the ipv4Address value to set.
     * @return the SimStaticIpPropertiesStaticIp object itself.
     */
    public SimStaticIpPropertiesStaticIp withIpv4Address(String ipv4Address) {
        this.ipv4Address = ipv4Address;
        return this;
    }

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