com.microsoft.graph.beta.generated.models.RemoteAssistancePartner Maven / Gradle / Ivy
package com.microsoft.graph.beta.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;
/**
* RemoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class RemoteAssistancePartner extends Entity implements Parsable {
/**
* Instantiates a new {@link RemoteAssistancePartner} and sets the default values.
*/
public RemoteAssistancePartner() {
super();
}
/**
* 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 RemoteAssistancePartner}
*/
@jakarta.annotation.Nonnull
public static RemoteAssistancePartner createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new RemoteAssistancePartner();
}
/**
* Gets the displayName property value. Display name of the partner.
* @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("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("lastConnectionDateTime", (n) -> { this.setLastConnectionDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("onboardingRequestExpiryDateTime", (n) -> { this.setOnboardingRequestExpiryDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("onboardingStatus", (n) -> { this.setOnboardingStatus(n.getEnumValue(RemoteAssistanceOnboardingStatus::forValue)); });
deserializerMap.put("onboardingUrl", (n) -> { this.setOnboardingUrl(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the lastConnectionDateTime property value. Timestamp of the last request sent to Intune by the TEM partner.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastConnectionDateTime() {
return this.backingStore.get("lastConnectionDateTime");
}
/**
* Gets the onboardingRequestExpiryDateTime property value. When the OnboardingStatus is Onboarding, This is the date time when the onboarding request expires.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getOnboardingRequestExpiryDateTime() {
return this.backingStore.get("onboardingRequestExpiryDateTime");
}
/**
* Gets the onboardingStatus property value. The current TeamViewer connector status
* @return a {@link RemoteAssistanceOnboardingStatus}
*/
@jakarta.annotation.Nullable
public RemoteAssistanceOnboardingStatus getOnboardingStatus() {
return this.backingStore.get("onboardingStatus");
}
/**
* Gets the onboardingUrl property value. URL of the partner's onboarding portal, where an administrator can configure their Remote Assistance service.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOnboardingUrl() {
return this.backingStore.get("onboardingUrl");
}
/**
* 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.writeStringValue("displayName", this.getDisplayName());
writer.writeOffsetDateTimeValue("lastConnectionDateTime", this.getLastConnectionDateTime());
writer.writeOffsetDateTimeValue("onboardingRequestExpiryDateTime", this.getOnboardingRequestExpiryDateTime());
writer.writeEnumValue("onboardingStatus", this.getOnboardingStatus());
writer.writeStringValue("onboardingUrl", this.getOnboardingUrl());
}
/**
* Sets the displayName property value. Display name of the partner.
* @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 lastConnectionDateTime property value. Timestamp of the last request sent to Intune by the TEM partner.
* @param value Value to set for the lastConnectionDateTime property.
*/
public void setLastConnectionDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastConnectionDateTime", value);
}
/**
* Sets the onboardingRequestExpiryDateTime property value. When the OnboardingStatus is Onboarding, This is the date time when the onboarding request expires.
* @param value Value to set for the onboardingRequestExpiryDateTime property.
*/
public void setOnboardingRequestExpiryDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("onboardingRequestExpiryDateTime", value);
}
/**
* Sets the onboardingStatus property value. The current TeamViewer connector status
* @param value Value to set for the onboardingStatus property.
*/
public void setOnboardingStatus(@jakarta.annotation.Nullable final RemoteAssistanceOnboardingStatus value) {
this.backingStore.set("onboardingStatus", value);
}
/**
* Sets the onboardingUrl property value. URL of the partner's onboarding portal, where an administrator can configure their Remote Assistance service.
* @param value Value to set for the onboardingUrl property.
*/
public void setOnboardingUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("onboardingUrl", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy