Class OrgContact

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • OrgContact

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

    • createFromDiscriminatorValue

      @Nonnull public static OrgContact 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 OrgContact
    • getAddresses

      @Nullable public List<PhysicalOfficeAddress> getAddresses()
      Gets the addresses property value. Postal addresses for this organizational contact. For now a contact can only have one physical address.
      Returns:
      a List<PhysicalOfficeAddress>
    • getCompanyName

      @Nullable public String getCompanyName()
      Gets the companyName property value. Name of the company that this organizational contact belongs to. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getDepartment

      @Nullable public String getDepartment()
      Gets the department property value. The name for the department in which the contact works. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getDirectReports

      @Nullable public List<DirectoryObject> getDirectReports()
      Gets the directReports property value. The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand.
      Returns:
      a List<DirectoryObject>
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Display name for this organizational contact. Maximum length is 256 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values), $search, and $orderby.
      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 DirectoryObject
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGivenName

      @Nullable public String getGivenName()
      Gets the givenName property value. First name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getJobTitle

      @Nullable public String getJobTitle()
      Gets the jobTitle property value. Job title for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getMail

      @Nullable public String getMail()
      Gets the mail property value. The SMTP address for the contact, for example, 'jeff@contoso.com'. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getMailNickname

      @Nullable public String getMailNickname()
      Gets the mailNickname property value. Email alias (portion of email address pre-pending the @ symbol) for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getManager

      @Nullable public DirectoryObject getManager()
      Gets the manager property value. The user or contact that is this contact's manager. Read-only. Supports $expand and $filter (eq) by id.
      Returns:
      a DirectoryObject
    • getMemberOf

      @Nullable public List<DirectoryObject> getMemberOf()
      Gets the memberOf property value. Groups that this contact is a member of. Read-only. Nullable. Supports $expand.
      Returns:
      a List<DirectoryObject>
    • getOnPremisesLastSyncDateTime

      @Nullable public OffsetDateTime getOnPremisesLastSyncDateTime()
      Gets the onPremisesLastSyncDateTime property value. Date and time when this organizational contact was last synchronized from on-premises AD. This date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, not, ge, le, in).
      Returns:
      a OffsetDateTime
    • getOnPremisesProvisioningErrors

      @Nullable public List<OnPremisesProvisioningError> getOnPremisesProvisioningErrors()
      Gets the onPremisesProvisioningErrors property value. List of any synchronization provisioning errors for this organizational contact. Supports $filter (eq, not for category and propertyCausingError), /$count eq 0, /$count ne 0.
      Returns:
      a List<OnPremisesProvisioningError>
    • getOnPremisesSyncBehavior

      @Nullable public OnPremisesSyncBehavior getOnPremisesSyncBehavior()
      Gets the onPremisesSyncBehavior property value. The onPremisesSyncBehavior property
      Returns:
      a OnPremisesSyncBehavior
    • getOnPremisesSyncEnabled

      @Nullable public Boolean getOnPremisesSyncEnabled()
      Gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced and now mastered in Exchange; null if this object has never been synced from an on-premises directory (default). Supports $filter (eq, ne, not, in, and eq for null values).
      Returns:
      a Boolean
    • getPhones

      @Nullable public List<Phone> getPhones()
      Gets the phones property value. List of phones for this organizational contact. Phone types can be mobile, business, and businessFax. Only one of each type can ever be present in the collection.
      Returns:
      a List<Phone>
    • getProxyAddresses

      @Nullable public List<String> getProxyAddresses()
      Gets the proxyAddresses property value. For example: 'SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com'. The any operator is required for filter expressions on multi-valued properties. Supports $filter (eq, not, ge, le, startsWith, /$count eq 0, /$count ne 0).
      Returns:
      a List<String>
    • getServiceProvisioningErrors

      @Nullable public List<ServiceProvisioningError> getServiceProvisioningErrors()
      Gets the serviceProvisioningErrors property value. Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from an organizational contact object . Supports $filter (eq, not, for isResolved and serviceInstance).
      Returns:
      a List<ServiceProvisioningError>
    • getSurname

      @Nullable public String getSurname()
      Gets the surname property value. Last name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Returns:
      a String
    • getTransitiveMemberOf

      @Nullable public List<DirectoryObject> getTransitiveMemberOf()
      Gets the transitiveMemberOf property value. Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable.
      Returns:
      a List<DirectoryObject>
    • 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 DirectoryObject
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAddresses

      public void setAddresses(@Nullable List<PhysicalOfficeAddress> value)
      Sets the addresses property value. Postal addresses for this organizational contact. For now a contact can only have one physical address.
      Parameters:
      value - Value to set for the addresses property.
    • setCompanyName

      public void setCompanyName(@Nullable String value)
      Sets the companyName property value. Name of the company that this organizational contact belongs to. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the companyName property.
    • setDepartment

      public void setDepartment(@Nullable String value)
      Sets the department property value. The name for the department in which the contact works. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the department property.
    • setDirectReports

      public void setDirectReports(@Nullable List<DirectoryObject> value)
      Sets the directReports property value. The contact's direct reports. (The users and contacts that have their manager property set to this contact.) Read-only. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the directReports property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Display name for this organizational contact. Maximum length is 256 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values), $search, and $orderby.
      Parameters:
      value - Value to set for the displayName property.
    • setGivenName

      public void setGivenName(@Nullable String value)
      Sets the givenName property value. First name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the givenName property.
    • setJobTitle

      public void setJobTitle(@Nullable String value)
      Sets the jobTitle property value. Job title for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the jobTitle property.
    • setMail

      public void setMail(@Nullable String value)
      Sets the mail property value. The SMTP address for the contact, for example, 'jeff@contoso.com'. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the mail property.
    • setMailNickname

      public void setMailNickname(@Nullable String value)
      Sets the mailNickname property value. Email alias (portion of email address pre-pending the @ symbol) for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the mailNickname property.
    • setManager

      public void setManager(@Nullable DirectoryObject value)
      Sets the manager property value. The user or contact that is this contact's manager. Read-only. Supports $expand and $filter (eq) by id.
      Parameters:
      value - Value to set for the manager property.
    • setMemberOf

      public void setMemberOf(@Nullable List<DirectoryObject> value)
      Sets the memberOf property value. Groups that this contact is a member of. Read-only. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the memberOf property.
    • setOnPremisesLastSyncDateTime

      public void setOnPremisesLastSyncDateTime(@Nullable OffsetDateTime value)
      Sets the onPremisesLastSyncDateTime property value. Date and time when this organizational contact was last synchronized from on-premises AD. This date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, not, ge, le, in).
      Parameters:
      value - Value to set for the onPremisesLastSyncDateTime property.
    • setOnPremisesProvisioningErrors

      public void setOnPremisesProvisioningErrors(@Nullable List<OnPremisesProvisioningError> value)
      Sets the onPremisesProvisioningErrors property value. List of any synchronization provisioning errors for this organizational contact. Supports $filter (eq, not for category and propertyCausingError), /$count eq 0, /$count ne 0.
      Parameters:
      value - Value to set for the onPremisesProvisioningErrors property.
    • setOnPremisesSyncBehavior

      public void setOnPremisesSyncBehavior(@Nullable OnPremisesSyncBehavior value)
      Sets the onPremisesSyncBehavior property value. The onPremisesSyncBehavior property
      Parameters:
      value - Value to set for the onPremisesSyncBehavior property.
    • setOnPremisesSyncEnabled

      public void setOnPremisesSyncEnabled(@Nullable Boolean value)
      Sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced and now mastered in Exchange; null if this object has never been synced from an on-premises directory (default). Supports $filter (eq, ne, not, in, and eq for null values).
      Parameters:
      value - Value to set for the onPremisesSyncEnabled property.
    • setPhones

      public void setPhones(@Nullable List<Phone> value)
      Sets the phones property value. List of phones for this organizational contact. Phone types can be mobile, business, and businessFax. Only one of each type can ever be present in the collection.
      Parameters:
      value - Value to set for the phones property.
    • setProxyAddresses

      public void setProxyAddresses(@Nullable List<String> value)
      Sets the proxyAddresses property value. For example: 'SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com'. The any operator is required for filter expressions on multi-valued properties. Supports $filter (eq, not, ge, le, startsWith, /$count eq 0, /$count ne 0).
      Parameters:
      value - Value to set for the proxyAddresses property.
    • setServiceProvisioningErrors

      public void setServiceProvisioningErrors(@Nullable List<ServiceProvisioningError> value)
      Sets the serviceProvisioningErrors property value. Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from an organizational contact object . Supports $filter (eq, not, for isResolved and serviceInstance).
      Parameters:
      value - Value to set for the serviceProvisioningErrors property.
    • setSurname

      public void setSurname(@Nullable String value)
      Sets the surname property value. Last name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
      Parameters:
      value - Value to set for the surname property.
    • setTransitiveMemberOf

      public void setTransitiveMemberOf(@Nullable List<DirectoryObject> value)
      Sets the transitiveMemberOf property value. Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable.
      Parameters:
      value - Value to set for the transitiveMemberOf property.