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

package com.azure.resourcemanager.machinelearning.models;

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

/** The WorkspaceConnectionPersonalAccessToken model. */
@Fluent
public final class WorkspaceConnectionPersonalAccessToken {
    /*
     * The pat property.
     */
    @JsonProperty(value = "pat")
    private String pat;

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

    /**
     * Get the pat property: The pat property.
     *
     * @return the pat value.
     */
    public String pat() {
        return this.pat;
    }

    /**
     * Set the pat property: The pat property.
     *
     * @param pat the pat value to set.
     * @return the WorkspaceConnectionPersonalAccessToken object itself.
     */
    public WorkspaceConnectionPersonalAccessToken withPat(String pat) {
        this.pat = pat;
        return this;
    }

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