Class SchemaExtension

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.SchemaExtension
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class SchemaExtension extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • SchemaExtension

      public SchemaExtension()
      Instantiates a new SchemaExtension and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static SchemaExtension createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a SchemaExtension
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Description for the schema extension. Supports $filter (eq).
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getOwner

      @Nullable public String getOwner()
      Gets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Microsoft Entra ID as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq).
      Returns:
      a String
    • getProperties

      @Nullable public List<ExtensionSchemaProperty> getProperties()
      Gets the properties property value. The collection of property names and types that make up the schema extension definition.
      Returns:
      a List<ExtensionSchemaProperty>
    • getStatus

      @Nullable public String getStatus()
      Gets the status property value. The lifecycle state of the schema extension. Possible states are InDevelopment, Available, and Deprecated. Automatically set to InDevelopment on creation. For more information about the possible state transitions and behaviors, see Schema extensions lifecycle. Supports $filter (eq).
      Returns:
      a String
    • getTargetTypes

      @Nullable public List<String> getTargetTypes()
      Gets the targetTypes property value. Set of Microsoft Graph types (that can support extensions) that the schema extension can be applied to. Select from administrativeUnit, contact, device, event, group, message, organization, post, todoTask, todoTaskList, or user.
      Returns:
      a List<String>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Description for the schema extension. Supports $filter (eq).
      Parameters:
      value - Value to set for the description property.
    • setOwner

      public void setOwner(@Nullable String value)
      Sets the owner property value. The appId of the application that is the owner of the schema extension. The owner of the schema definition must be explicitly specified during the Create and Update operations, or it will be implied and auto-assigned by Microsoft Entra ID as follows: In delegated access: The signed-in user must be the owner of the app that calls Microsoft Graph to create the schema extension definition. If the signed-in user isn't the owner of the calling app, they must explicitly specify the owner property, and assign it the appId of an app that they own. In app-only access: The owner property isn't required in the request body. Instead, the calling app is assigned ownership of the schema extension. So, for example, if creating a new schema extension definition using Graph Explorer, you must supply the owner property. Once set, this property is read-only and cannot be changed. Supports $filter (eq).
      Parameters:
      value - Value to set for the owner property.
    • setProperties

      public void setProperties(@Nullable List<ExtensionSchemaProperty> value)
      Sets the properties property value. The collection of property names and types that make up the schema extension definition.
      Parameters:
      value - Value to set for the properties property.
    • setStatus

      public void setStatus(@Nullable String value)
      Sets the status property value. The lifecycle state of the schema extension. Possible states are InDevelopment, Available, and Deprecated. Automatically set to InDevelopment on creation. For more information about the possible state transitions and behaviors, see Schema extensions lifecycle. Supports $filter (eq).
      Parameters:
      value - Value to set for the status property.
    • setTargetTypes

      public void setTargetTypes(@Nullable List<String> value)
      Sets the targetTypes property value. Set of Microsoft Graph types (that can support extensions) that the schema extension can be applied to. Select from administrativeUnit, contact, device, event, group, message, organization, post, todoTask, todoTaskList, or user.
      Parameters:
      value - Value to set for the targetTypes property.