Package com.microsoft.graph.models
Class OrgContact
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OrgContactcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the addresses property value.Gets the companyName property value.Gets the department property value.Gets the directReports property value.Gets the displayName property value.The deserialization information for the current modelGets the givenName property value.Gets the jobTitle property value.getMail()Gets the mail property value.Gets the mailNickname property value.Gets the manager property value.Gets the memberOf property value.Gets the onPremisesLastSyncDateTime property value.Gets the onPremisesProvisioningErrors property value.Gets the onPremisesSyncBehavior property value.Gets the onPremisesSyncEnabled property value.Gets the phones property value.Gets the proxyAddresses property value.Gets the serviceProvisioningErrors property value.Gets the surname property value.Gets the transitiveMemberOf property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAddresses(List<PhysicalOfficeAddress> value) Sets the addresses property value.voidsetCompanyName(String value) Sets the companyName property value.voidsetDepartment(String value) Sets the department property value.voidsetDirectReports(List<DirectoryObject> value) Sets the directReports property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetGivenName(String value) Sets the givenName property value.voidsetJobTitle(String value) Sets the jobTitle property value.voidSets the mail property value.voidsetMailNickname(String value) Sets the mailNickname property value.voidsetManager(DirectoryObject value) Sets the manager property value.voidsetMemberOf(List<DirectoryObject> value) Sets the memberOf property value.voidSets the onPremisesLastSyncDateTime property value.voidSets the onPremisesProvisioningErrors property value.voidSets the onPremisesSyncBehavior property value.voidsetOnPremisesSyncEnabled(Boolean value) Sets the onPremisesSyncEnabled property value.voidSets the phones property value.voidsetProxyAddresses(List<String> value) Sets the proxyAddresses property value.voidSets the serviceProvisioningErrors property value.voidsetSurname(String value) Sets the surname property value.voidsetTransitiveMemberOf(List<DirectoryObject> value) Sets the transitiveMemberOf property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
OrgContact
public OrgContact()Instantiates a newOrgContactand 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
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
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
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
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
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
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
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
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
Gets the memberOf property value. Groups that this contact is a member of. Read-only. Nullable. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
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
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
Gets the onPremisesSyncBehavior property value. The onPremisesSyncBehavior property- Returns:
- a
OnPremisesSyncBehavior
-
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
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. -
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). -
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
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
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setAddresses
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
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
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
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
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
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
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
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
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
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
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
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
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
Sets the onPremisesSyncBehavior property value. The onPremisesSyncBehavior property- Parameters:
value- Value to set for the onPremisesSyncBehavior property.
-
setOnPremisesSyncEnabled
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
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
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
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
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
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.
-