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

package com.azure.resourcemanager.avs.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Subnet configuration for segment. */
@Fluent
public final class WorkloadNetworkSegmentSubnet {
    /*
     * DHCP Range assigned for subnet.
     */
    @JsonProperty(value = "dhcpRanges")
    private List<String> dhcpRanges;

    /*
     * Gateway address.
     */
    @JsonProperty(value = "gatewayAddress")
    private String gatewayAddress;

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

    /**
     * Get the dhcpRanges property: DHCP Range assigned for subnet.
     *
     * @return the dhcpRanges value.
     */
    public List<String> dhcpRanges() {
        return this.dhcpRanges;
    }

    /**
     * Set the dhcpRanges property: DHCP Range assigned for subnet.
     *
     * @param dhcpRanges the dhcpRanges value to set.
     * @return the WorkloadNetworkSegmentSubnet object itself.
     */
    public WorkloadNetworkSegmentSubnet withDhcpRanges(List<String> dhcpRanges) {
        this.dhcpRanges = dhcpRanges;
        return this;
    }

    /**
     * Get the gatewayAddress property: Gateway address.
     *
     * @return the gatewayAddress value.
     */
    public String gatewayAddress() {
        return this.gatewayAddress;
    }

    /**
     * Set the gatewayAddress property: Gateway address.
     *
     * @param gatewayAddress the gatewayAddress value to set.
     * @return the WorkloadNetworkSegmentSubnet object itself.
     */
    public WorkloadNetworkSegmentSubnet withGatewayAddress(String gatewayAddress) {
        this.gatewayAddress = gatewayAddress;
        return this;
    }

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