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

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

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

/** Tenant access information contract of the API Management service. */
@Fluent
public final class AccessInformationContractProperties {
    /*
     * Access Information type ('access' or 'gitAccess')
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * Principal (User) Identifier.
     */
    @JsonProperty(value = "principalId")
    private String principalId;

    /*
     * Determines whether direct access is enabled.
     */
    @JsonProperty(value = "enabled")
    private Boolean enabled;

    /**
     * Get the id property: Access Information type ('access' or 'gitAccess').
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: Access Information type ('access' or 'gitAccess').
     *
     * @param id the id value to set.
     * @return the AccessInformationContractProperties object itself.
     */
    public AccessInformationContractProperties withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the principalId property: Principal (User) Identifier.
     *
     * @return the principalId value.
     */
    public String principalId() {
        return this.principalId;
    }

    /**
     * Set the principalId property: Principal (User) Identifier.
     *
     * @param principalId the principalId value to set.
     * @return the AccessInformationContractProperties object itself.
     */
    public AccessInformationContractProperties withPrincipalId(String principalId) {
        this.principalId = principalId;
        return this;
    }

    /**
     * Get the enabled property: Determines whether direct access is enabled.
     *
     * @return the enabled value.
     */
    public Boolean enabled() {
        return this.enabled;
    }

    /**
     * Set the enabled property: Determines whether direct access is enabled.
     *
     * @param enabled the enabled value to set.
     * @return the AccessInformationContractProperties object itself.
     */
    public AccessInformationContractProperties withEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

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