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

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

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties of Frontend port of an application gateway. */
@Fluent
public final class ApplicationGatewayFrontendPortPropertiesFormat {
    @JsonIgnore
    private final ClientLogger logger = new ClientLogger(ApplicationGatewayFrontendPortPropertiesFormat.class);

    /*
     * Frontend port
     */
    @JsonProperty(value = "port")
    private Integer port;

    /*
     * Provisioning state of the frontend port resource. Possible values are:
     * 'Updating', 'Deleting', and 'Failed'.
     */
    @JsonProperty(value = "provisioningState")
    private String provisioningState;

    /**
     * Get the port property: Frontend port.
     *
     * @return the port value.
     */
    public Integer port() {
        return this.port;
    }

    /**
     * Set the port property: Frontend port.
     *
     * @param port the port value to set.
     * @return the ApplicationGatewayFrontendPortPropertiesFormat object itself.
     */
    public ApplicationGatewayFrontendPortPropertiesFormat withPort(Integer port) {
        this.port = port;
        return this;
    }

    /**
     * Get the provisioningState property: Provisioning state of the frontend port resource. Possible values are:
     * 'Updating', 'Deleting', and 'Failed'.
     *
     * @return the provisioningState value.
     */
    public String provisioningState() {
        return this.provisioningState;
    }

    /**
     * Set the provisioningState property: Provisioning state of the frontend port resource. Possible values are:
     * 'Updating', 'Deleting', and 'Failed'.
     *
     * @param provisioningState the provisioningState value to set.
     * @return the ApplicationGatewayFrontendPortPropertiesFormat object itself.
     */
    public ApplicationGatewayFrontendPortPropertiesFormat withProvisioningState(String provisioningState) {
        this.provisioningState = provisioningState;
        return this;
    }

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