SearchIndexerDataUserAssignedIdentity.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.

  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;
  11. import com.fasterxml.jackson.annotation.JsonTypeId;
  12. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  13. import com.fasterxml.jackson.annotation.JsonTypeName;

  14. /** Specifies the identity for a datasource to use. */
  15. @JsonTypeInfo(
  16.         use = JsonTypeInfo.Id.NAME,
  17.         include = JsonTypeInfo.As.EXISTING_PROPERTY,
  18.         property = "@odata.type",
  19.         visible = true)
  20. @JsonTypeName("#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity")
  21. @Fluent
  22. public final class SearchIndexerDataUserAssignedIdentity extends SearchIndexerDataIdentity {
  23.     /*
  24.      * Identifies the concrete type of the identity.
  25.      */
  26.     @JsonTypeId
  27.     @JsonProperty(value = "@odata.type", required = true)
  28.     private String odataType = "#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity";

  29.     /*
  30.      * The fully qualified Azure resource Id of a user assigned managed
  31.      * identity typically in the form
  32.      * "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId"
  33.      * that should have been assigned to the search service.
  34.      */
  35.     @JsonProperty(value = "userAssignedIdentity", required = true)
  36.     private String userAssignedIdentity;

  37.     /**
  38.      * Creates an instance of SearchIndexerDataUserAssignedIdentity class.
  39.      *
  40.      * @param userAssignedIdentity the userAssignedIdentity value to set.
  41.      */
  42.     @JsonCreator
  43.     public SearchIndexerDataUserAssignedIdentity(
  44.             @JsonProperty(value = "userAssignedIdentity", required = true) String userAssignedIdentity) {
  45.         this.userAssignedIdentity = userAssignedIdentity;
  46.     }

  47.     /**
  48.      * Get the userAssignedIdentity property: The fully qualified Azure resource Id of a user assigned managed identity
  49.      * typically in the form
  50.      * "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId"
  51.      * that should have been assigned to the search service.
  52.      *
  53.      * @return the userAssignedIdentity value.
  54.      */
  55.     public String getUserAssignedIdentity() {
  56.         return this.userAssignedIdentity;
  57.     }
  58. }