SharePointConnectorAppRegistration Class

  • java.lang.Object
    • com.azure.search.documents.models.SharePointConnectorAppRegistration

Implements

public final class SharePointConnectorAppRegistration
implements JsonSerializable<SharePointConnectorAppRegistration>

Configures a SharePoint connector app registration for the index, enabling document-level permissions from SharePoint.

Constructor Summary

Constructor Description
SharePointConnectorAppRegistration(String applicationId, String federatedCredentialId)

Creates an instance of SharePointConnectorAppRegistration class.

Method Summary

Modifier and Type Method and Description
static SharePointConnectorAppRegistration fromJson(JsonReader jsonReader)

Reads an instance of SharePointConnectorAppRegistration from the JsonReader.

String getApplicationId()

Get the applicationId property: The application (client) ID of the app registration used to connect to SharePoint.

String getFederatedCredentialId()

Get the federatedCredentialId property: The federated credential ID configured on the app registration.

String getTenantId()

Get the tenantId property: The tenant ID of the app registration.

SharePointConnectorAppRegistration setTenantId(String tenantId)

Set the tenantId property: The tenant ID of the app registration.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SharePointConnectorAppRegistration

public SharePointConnectorAppRegistration(String applicationId, String federatedCredentialId)

Creates an instance of SharePointConnectorAppRegistration class.

Parameters:

applicationId - the applicationId value to set.
federatedCredentialId - the federatedCredentialId value to set.

Method Details

fromJson

public static SharePointConnectorAppRegistration fromJson(JsonReader jsonReader)

Reads an instance of SharePointConnectorAppRegistration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SharePointConnectorAppRegistration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getApplicationId

public String getApplicationId()

Get the applicationId property: The application (client) ID of the app registration used to connect to SharePoint.

Returns:

the applicationId value.

getFederatedCredentialId

public String getFederatedCredentialId()

Get the federatedCredentialId property: The federated credential ID configured on the app registration.

Returns:

the federatedCredentialId value.

getTenantId

public String getTenantId()

Get the tenantId property: The tenant ID of the app registration. If not specified, the tenant of the search service is used.

Returns:

the tenantId value.

setTenantId

public SharePointConnectorAppRegistration setTenantId(String tenantId)

Set the tenantId property: The tenant ID of the app registration. If not specified, the tenant of the search service is used.

Parameters:

tenantId - the tenantId value to set.

Returns:

the SharePointConnectorAppRegistration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to