Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class OrgContact extends DirectoryObject implements Parsable {
/**
* Instantiates a new {@link OrgContact} and sets the default values.
*/
public OrgContact() {
super();
this.setOdataType("#microsoft.graph.orgContact");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link OrgContact}
*/
@jakarta.annotation.Nonnull
public static OrgContact createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new OrgContact();
}
/**
* Gets the addresses property value. Postal addresses for this organizational contact. For now a contact can only have one physical address.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAddresses() {
return this.backingStore.get("addresses");
}
/**
* 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).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCompanyName() {
return this.backingStore.get("companyName");
}
/**
* 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).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDepartment() {
return this.backingStore.get("department");
}
/**
* 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.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDirectReports() {
return this.backingStore.get("directReports");
}
/**
* Gets the displayName property value. Display name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values), $search, and $orderby.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("addresses", (n) -> { this.setAddresses(n.getCollectionOfObjectValues(PhysicalOfficeAddress::createFromDiscriminatorValue)); });
deserializerMap.put("companyName", (n) -> { this.setCompanyName(n.getStringValue()); });
deserializerMap.put("department", (n) -> { this.setDepartment(n.getStringValue()); });
deserializerMap.put("directReports", (n) -> { this.setDirectReports(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("givenName", (n) -> { this.setGivenName(n.getStringValue()); });
deserializerMap.put("jobTitle", (n) -> { this.setJobTitle(n.getStringValue()); });
deserializerMap.put("mail", (n) -> { this.setMail(n.getStringValue()); });
deserializerMap.put("mailNickname", (n) -> { this.setMailNickname(n.getStringValue()); });
deserializerMap.put("manager", (n) -> { this.setManager(n.getObjectValue(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("memberOf", (n) -> { this.setMemberOf(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("onPremisesLastSyncDateTime", (n) -> { this.setOnPremisesLastSyncDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("onPremisesProvisioningErrors", (n) -> { this.setOnPremisesProvisioningErrors(n.getCollectionOfObjectValues(OnPremisesProvisioningError::createFromDiscriminatorValue)); });
deserializerMap.put("onPremisesSyncEnabled", (n) -> { this.setOnPremisesSyncEnabled(n.getBooleanValue()); });
deserializerMap.put("phones", (n) -> { this.setPhones(n.getCollectionOfObjectValues(Phone::createFromDiscriminatorValue)); });
deserializerMap.put("proxyAddresses", (n) -> { this.setProxyAddresses(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("serviceProvisioningErrors", (n) -> { this.setServiceProvisioningErrors(n.getCollectionOfObjectValues(ServiceProvisioningError::createFromDiscriminatorValue)); });
deserializerMap.put("surname", (n) -> { this.setSurname(n.getStringValue()); });
deserializerMap.put("transitiveMemberOf", (n) -> { this.setTransitiveMemberOf(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* 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).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getGivenName() {
return this.backingStore.get("givenName");
}
/**
* 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).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getJobTitle() {
return this.backingStore.get("jobTitle");
}
/**
* Gets the mail property value. The SMTP address for the contact, for example, '[email protected]'. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMail() {
return this.backingStore.get("mail");
}
/**
* 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).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMailNickname() {
return this.backingStore.get("mailNickname");
}
/**
* Gets the manager property value. The user or contact that is this contact's manager. Read-only. Supports $expand and $filter (eq) by id.
* @return a {@link DirectoryObject}
*/
@jakarta.annotation.Nullable
public DirectoryObject getManager() {
return this.backingStore.get("manager");
}
/**
* Gets the memberOf property value. Groups that this contact is a member of. Read-only. Nullable. Supports $expand.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getMemberOf() {
return this.backingStore.get("memberOf");
}
/**
* 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).
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getOnPremisesLastSyncDateTime() {
return this.backingStore.get("onPremisesLastSyncDateTime");
}
/**
* 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.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getOnPremisesProvisioningErrors() {
return this.backingStore.get("onPremisesProvisioningErrors");
}
/**
* 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).
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getOnPremisesSyncEnabled() {
return this.backingStore.get("onPremisesSyncEnabled");
}
/**
* 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.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getPhones() {
return this.backingStore.get("phones");
}
/**
* Gets the proxyAddresses property value. For example: 'SMTP: [email protected]', 'smtp: [email protected]'. 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).
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getProxyAddresses() {
return this.backingStore.get("proxyAddresses");
}
/**
* 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).
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getServiceProvisioningErrors() {
return this.backingStore.get("serviceProvisioningErrors");
}
/**
* 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).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSurname() {
return this.backingStore.get("surname");
}
/**
* Gets the transitiveMemberOf property value. Groups that this contact is a member of, including groups that the contact is nested under. Read-only. Nullable.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTransitiveMemberOf() {
return this.backingStore.get("transitiveMemberOf");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeCollectionOfObjectValues("addresses", this.getAddresses());
writer.writeStringValue("companyName", this.getCompanyName());
writer.writeStringValue("department", this.getDepartment());
writer.writeCollectionOfObjectValues("directReports", this.getDirectReports());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("givenName", this.getGivenName());
writer.writeStringValue("jobTitle", this.getJobTitle());
writer.writeStringValue("mail", this.getMail());
writer.writeStringValue("mailNickname", this.getMailNickname());
writer.writeObjectValue("manager", this.getManager());
writer.writeCollectionOfObjectValues("memberOf", this.getMemberOf());
writer.writeOffsetDateTimeValue("onPremisesLastSyncDateTime", this.getOnPremisesLastSyncDateTime());
writer.writeCollectionOfObjectValues("onPremisesProvisioningErrors", this.getOnPremisesProvisioningErrors());
writer.writeBooleanValue("onPremisesSyncEnabled", this.getOnPremisesSyncEnabled());
writer.writeCollectionOfObjectValues("phones", this.getPhones());
writer.writeCollectionOfPrimitiveValues("proxyAddresses", this.getProxyAddresses());
writer.writeCollectionOfObjectValues("serviceProvisioningErrors", this.getServiceProvisioningErrors());
writer.writeStringValue("surname", this.getSurname());
writer.writeCollectionOfObjectValues("transitiveMemberOf", this.getTransitiveMemberOf());
}
/**
* Sets the addresses property value. Postal addresses for this organizational contact. For now a contact can only have one physical address.
* @param value Value to set for the addresses property.
*/
public void setAddresses(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("addresses", 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).
* @param value Value to set for the companyName property.
*/
public void setCompanyName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("companyName", 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).
* @param value Value to set for the department property.
*/
public void setDepartment(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("department", 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.
* @param value Value to set for the directReports property.
*/
public void setDirectReports(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("directReports", value);
}
/**
* Sets the displayName property value. Display name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values), $search, and $orderby.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", 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).
* @param value Value to set for the givenName property.
*/
public void setGivenName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("givenName", 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).
* @param value Value to set for the jobTitle property.
*/
public void setJobTitle(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("jobTitle", value);
}
/**
* Sets the mail property value. The SMTP address for the contact, for example, '[email protected]'. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values).
* @param value Value to set for the mail property.
*/
public void setMail(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("mail", 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).
* @param value Value to set for the mailNickname property.
*/
public void setMailNickname(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("mailNickname", 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.
* @param value Value to set for the manager property.
*/
public void setManager(@jakarta.annotation.Nullable final DirectoryObject value) {
this.backingStore.set("manager", value);
}
/**
* Sets the memberOf property value. Groups that this contact is a member of. Read-only. Nullable. Supports $expand.
* @param value Value to set for the memberOf property.
*/
public void setMemberOf(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("memberOf", 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).
* @param value Value to set for the onPremisesLastSyncDateTime property.
*/
public void setOnPremisesLastSyncDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("onPremisesLastSyncDateTime", 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.
* @param value Value to set for the onPremisesProvisioningErrors property.
*/
public void setOnPremisesProvisioningErrors(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("onPremisesProvisioningErrors", 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).
* @param value Value to set for the onPremisesSyncEnabled property.
*/
public void setOnPremisesSyncEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("onPremisesSyncEnabled", 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.
* @param value Value to set for the phones property.
*/
public void setPhones(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("phones", value);
}
/**
* Sets the proxyAddresses property value. For example: 'SMTP: [email protected]', 'smtp: [email protected]'. 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).
* @param value Value to set for the proxyAddresses property.
*/
public void setProxyAddresses(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("proxyAddresses", 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).
* @param value Value to set for the serviceProvisioningErrors property.
*/
public void setServiceProvisioningErrors(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("serviceProvisioningErrors", 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).
* @param value Value to set for the surname property.
*/
public void setSurname(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("surname", 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.
* @param value Value to set for the transitiveMemberOf property.
*/
public void setTransitiveMemberOf(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("transitiveMemberOf", value);
}
}