com.microsoft.graph.beta.generated.models.CloudPcExternalPartnerSetting 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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class CloudPcExternalPartnerSetting extends Entity implements Parsable {
/**
* Instantiates a new {@link CloudPcExternalPartnerSetting} and sets the default values.
*/
public CloudPcExternalPartnerSetting() {
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 CloudPcExternalPartnerSetting}
*/
@jakarta.annotation.Nonnull
public static CloudPcExternalPartnerSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new CloudPcExternalPartnerSetting();
}
/**
* Gets the enableConnection property value. Enable or disable the connection to an external partner. If true, an external partner API will accept incoming calls from external partners. Required. Supports $filter (eq).
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getEnableConnection() {
return this.backingStore.get("enableConnection");
}
/**
* 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("enableConnection", (n) -> { this.setEnableConnection(n.getBooleanValue()); });
deserializerMap.put("lastSyncDateTime", (n) -> { this.setLastSyncDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("partnerId", (n) -> { this.setPartnerId(n.getStringValue()); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcExternalPartnerStatus::forValue)); });
deserializerMap.put("statusDetails", (n) -> { this.setStatusDetails(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the lastSyncDateTime property value. Last data sync time for this external partner. The Timestamp type represents the date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 looks like this: '2014-01-01T00:00:00Z'.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastSyncDateTime() {
return this.backingStore.get("lastSyncDateTime");
}
/**
* Gets the partnerId property value. The external partner ID.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPartnerId() {
return this.backingStore.get("partnerId");
}
/**
* Gets the status property value. The status property
* @return a {@link CloudPcExternalPartnerStatus}
*/
@jakarta.annotation.Nullable
public CloudPcExternalPartnerStatus getStatus() {
return this.backingStore.get("status");
}
/**
* Gets the statusDetails property value. Status details message.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getStatusDetails() {
return this.backingStore.get("statusDetails");
}
/**
* 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.writeBooleanValue("enableConnection", this.getEnableConnection());
writer.writeOffsetDateTimeValue("lastSyncDateTime", this.getLastSyncDateTime());
writer.writeStringValue("partnerId", this.getPartnerId());
writer.writeEnumValue("status", this.getStatus());
writer.writeStringValue("statusDetails", this.getStatusDetails());
}
/**
* Sets the enableConnection property value. Enable or disable the connection to an external partner. If true, an external partner API will accept incoming calls from external partners. Required. Supports $filter (eq).
* @param value Value to set for the enableConnection property.
*/
public void setEnableConnection(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("enableConnection", value);
}
/**
* Sets the lastSyncDateTime property value. Last data sync time for this external partner. The Timestamp type represents the date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 looks like this: '2014-01-01T00:00:00Z'.
* @param value Value to set for the lastSyncDateTime property.
*/
public void setLastSyncDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastSyncDateTime", value);
}
/**
* Sets the partnerId property value. The external partner ID.
* @param value Value to set for the partnerId property.
*/
public void setPartnerId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("partnerId", value);
}
/**
* Sets the status property value. The status property
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final CloudPcExternalPartnerStatus value) {
this.backingStore.set("status", value);
}
/**
* Sets the statusDetails property value. Status details message.
* @param value Value to set for the statusDetails property.
*/
public void setStatusDetails(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("statusDetails", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy