Class AccessPackageSubject

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

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

    • AccessPackageSubject

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

    • createFromDiscriminatorValue

      @Nonnull public static AccessPackageSubject 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 AccessPackageSubject
    • getConnectedOrganization

      @Nullable public ConnectedOrganization getConnectedOrganization()
      Gets the connectedOrganization property value. The connected organization of the subject. Read-only. Nullable.
      Returns:
      a ConnectedOrganization
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name of the subject.
      Returns:
      a String
    • getEmail

      @Nullable public String getEmail()
      Gets the email property value. The email address of the subject.
      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>>
    • getObjectId

      @Nullable public String getObjectId()
      Gets the objectId property value. The object identifier of the subject. null if the subject isn't yet a user in the tenant.
      Returns:
      a String
    • getOnPremisesSecurityIdentifier

      @Nullable public String getOnPremisesSecurityIdentifier()
      Gets the onPremisesSecurityIdentifier property value. A string representation of the principal's security identifier, if known, or null if the subject doesn't have a security identifier.
      Returns:
      a String
    • getPrincipalName

      @Nullable public String getPrincipalName()
      Gets the principalName property value. The principal name, if known, of the subject.
      Returns:
      a String
    • getSubjectType

      @Nullable public AccessPackageSubjectType getSubjectType()
      Gets the subjectType property value. The resource type of the subject. The possible values are: notSpecified, user, servicePrincipal, unknownFutureValue.
      Returns:
      a AccessPackageSubjectType
    • 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
    • setConnectedOrganization

      public void setConnectedOrganization(@Nullable ConnectedOrganization value)
      Sets the connectedOrganization property value. The connected organization of the subject. Read-only. Nullable.
      Parameters:
      value - Value to set for the connectedOrganization property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name of the subject.
      Parameters:
      value - Value to set for the displayName property.
    • setEmail

      public void setEmail(@Nullable String value)
      Sets the email property value. The email address of the subject.
      Parameters:
      value - Value to set for the email property.
    • setObjectId

      public void setObjectId(@Nullable String value)
      Sets the objectId property value. The object identifier of the subject. null if the subject isn't yet a user in the tenant.
      Parameters:
      value - Value to set for the objectId property.
    • setOnPremisesSecurityIdentifier

      public void setOnPremisesSecurityIdentifier(@Nullable String value)
      Sets the onPremisesSecurityIdentifier property value. A string representation of the principal's security identifier, if known, or null if the subject doesn't have a security identifier.
      Parameters:
      value - Value to set for the onPremisesSecurityIdentifier property.
    • setPrincipalName

      public void setPrincipalName(@Nullable String value)
      Sets the principalName property value. The principal name, if known, of the subject.
      Parameters:
      value - Value to set for the principalName property.
    • setSubjectType

      public void setSubjectType(@Nullable AccessPackageSubjectType value)
      Sets the subjectType property value. The resource type of the subject. The possible values are: notSpecified, user, servicePrincipal, unknownFutureValue.
      Parameters:
      value - Value to set for the subjectType property.