SearchIndexerDataUserAssignedIdentity.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.indexes.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** Specifies the identity for a datasource to use. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "@odata.type",
visible = true)
@JsonTypeName("#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity")
@Fluent
public final class SearchIndexerDataUserAssignedIdentity extends SearchIndexerDataIdentity {
/*
* Identifies the concrete type of the identity.
*/
@JsonTypeId
@JsonProperty(value = "@odata.type", required = true)
private String odataType = "#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity";
/*
* The fully qualified Azure resource Id of a user assigned managed
* identity typically in the form
* "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId"
* that should have been assigned to the search service.
*/
@JsonProperty(value = "userAssignedIdentity", required = true)
private String userAssignedIdentity;
/**
* Creates an instance of SearchIndexerDataUserAssignedIdentity class.
*
* @param userAssignedIdentity the userAssignedIdentity value to set.
*/
@JsonCreator
public SearchIndexerDataUserAssignedIdentity(
@JsonProperty(value = "userAssignedIdentity", required = true) String userAssignedIdentity) {
this.userAssignedIdentity = userAssignedIdentity;
}
/**
* Get the userAssignedIdentity property: The fully qualified Azure resource Id of a user assigned managed identity
* typically in the form
* "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId"
* that should have been assigned to the search service.
*
* @return the userAssignedIdentity value.
*/
public String getUserAssignedIdentity() {
return this.userAssignedIdentity;
}
}