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

package com.azure.resourcemanager.databox.models;

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

/** package carrier info. */
@Fluent
public final class PackageCarrierInfo {
    /*
     * Name of the carrier.
     */
    @JsonProperty(value = "carrierName")
    private String carrierName;

    /*
     * Tracking Id of shipment.
     */
    @JsonProperty(value = "trackingId")
    private String trackingId;

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

    /**
     * Get the carrierName property: Name of the carrier.
     *
     * @return the carrierName value.
     */
    public String carrierName() {
        return this.carrierName;
    }

    /**
     * Set the carrierName property: Name of the carrier.
     *
     * @param carrierName the carrierName value to set.
     * @return the PackageCarrierInfo object itself.
     */
    public PackageCarrierInfo withCarrierName(String carrierName) {
        this.carrierName = carrierName;
        return this;
    }

    /**
     * Get the trackingId property: Tracking Id of shipment.
     *
     * @return the trackingId value.
     */
    public String trackingId() {
        return this.trackingId;
    }

    /**
     * Set the trackingId property: Tracking Id of shipment.
     *
     * @param trackingId the trackingId value to set.
     * @return the PackageCarrierInfo object itself.
     */
    public PackageCarrierInfo withTrackingId(String trackingId) {
        this.trackingId = trackingId;
        return this;
    }

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