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

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

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

/** describes properties of custom entity store assignment request. */
@Fluent
public final class CustomEntityStoreAssignmentRequestProperties {
    /*
     * The principal assigned with entity store. If not provided, will use caller principal. Format of principal is:
     * [AAD type]=[PrincipalObjectId];[TenantId]
     */
    @JsonProperty(value = "principal")
    private String principal;

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

    /**
     * Get the principal property: The principal assigned with entity store. If not provided, will use caller principal.
     * Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId].
     *
     * @return the principal value.
     */
    public String principal() {
        return this.principal;
    }

    /**
     * Set the principal property: The principal assigned with entity store. If not provided, will use caller principal.
     * Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId].
     *
     * @param principal the principal value to set.
     * @return the CustomEntityStoreAssignmentRequestProperties object itself.
     */
    public CustomEntityStoreAssignmentRequestProperties withPrincipal(String principal) {
        this.principal = principal;
        return this;
    }

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