// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.avs.models.WorkloadNetworkPublicIpProvisioningState;
import com.fasterxml.jackson.annotation.JsonProperty;

/** NSX Public IP Block Properties. */
@Fluent
public final class WorkloadNetworkPublicIpProperties {
    /*
     * Display name of the Public IP Block.
     */
    @JsonProperty(value = "displayName")
    private String displayName;

    /*
     * Number of Public IPs requested.
     */
    @JsonProperty(value = "numberOfPublicIPs")
    private Long numberOfPublicIPs;

    /*
     * CIDR Block of the Public IP Block.
     */
    @JsonProperty(value = "publicIPBlock", access = JsonProperty.Access.WRITE_ONLY)
    private String publicIpBlock;

    /*
     * The provisioning state
     */
    @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private WorkloadNetworkPublicIpProvisioningState provisioningState;

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

    /**
     * Get the displayName property: Display name of the Public IP Block.
     *
     * @return the displayName value.
     */
    public String displayName() {
        return this.displayName;
    }

    /**
     * Set the displayName property: Display name of the Public IP Block.
     *
     * @param displayName the displayName value to set.
     * @return the WorkloadNetworkPublicIpProperties object itself.
     */
    public WorkloadNetworkPublicIpProperties withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * Get the numberOfPublicIPs property: Number of Public IPs requested.
     *
     * @return the numberOfPublicIPs value.
     */
    public Long numberOfPublicIPs() {
        return this.numberOfPublicIPs;
    }

    /**
     * Set the numberOfPublicIPs property: Number of Public IPs requested.
     *
     * @param numberOfPublicIPs the numberOfPublicIPs value to set.
     * @return the WorkloadNetworkPublicIpProperties object itself.
     */
    public WorkloadNetworkPublicIpProperties withNumberOfPublicIPs(Long numberOfPublicIPs) {
        this.numberOfPublicIPs = numberOfPublicIPs;
        return this;
    }

    /**
     * Get the publicIpBlock property: CIDR Block of the Public IP Block.
     *
     * @return the publicIpBlock value.
     */
    public String publicIpBlock() {
        return this.publicIpBlock;
    }

    /**
     * Get the provisioningState property: The provisioning state.
     *
     * @return the provisioningState value.
     */
    public WorkloadNetworkPublicIpProvisioningState provisioningState() {
        return this.provisioningState;
    }

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