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

package com.azure.resourcemanager.securityinsights.models;

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

/** A single field mapping of the mapped entity. */
@Fluent
public final class FieldMapping {
    /*
     * the V3 identifier of the entity
     */
    @JsonProperty(value = "identifier")
    private String identifier;

    /*
     * the column name to be mapped to the identifier
     */
    @JsonProperty(value = "columnName")
    private String columnName;

    /**
     * Get the identifier property: the V3 identifier of the entity.
     *
     * @return the identifier value.
     */
    public String identifier() {
        return this.identifier;
    }

    /**
     * Set the identifier property: the V3 identifier of the entity.
     *
     * @param identifier the identifier value to set.
     * @return the FieldMapping object itself.
     */
    public FieldMapping withIdentifier(String identifier) {
        this.identifier = identifier;
        return this;
    }

    /**
     * Get the columnName property: the column name to be mapped to the identifier.
     *
     * @return the columnName value.
     */
    public String columnName() {
        return this.columnName;
    }

    /**
     * Set the columnName property: the column name to be mapped to the identifier.
     *
     * @param columnName the columnName value to set.
     * @return the FieldMapping object itself.
     */
    public FieldMapping withColumnName(String columnName) {
        this.columnName = columnName;
        return this;
    }

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