// 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;

/** Ports and any VIF attached to segment. */
@Fluent
public final class WorkloadNetworkSegmentPortVif {
    /*
     * Name of port or VIF attached to segment.
     */
    @JsonProperty(value = "portName")
    private String portName;

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

    /**
     * Get the portName property: Name of port or VIF attached to segment.
     *
     * @return the portName value.
     */
    public String portName() {
        return this.portName;
    }

    /**
     * Set the portName property: Name of port or VIF attached to segment.
     *
     * @param portName the portName value to set.
     * @return the WorkloadNetworkSegmentPortVif object itself.
     */
    public WorkloadNetworkSegmentPortVif withPortName(String portName) {
        this.portName = portName;
        return this;
    }

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