com.microsoft.graph.generated.models.CallRecording Maven / Gradle / Ivy
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 CallRecording extends Entity implements Parsable {
/**
* Instantiates a new {@link CallRecording} and sets the default values.
*/
public CallRecording() {
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 CallRecording}
*/
@jakarta.annotation.Nonnull
public static CallRecording createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new CallRecording();
}
/**
* Gets the content property value. The content of the recording. Read-only.
* @return a {@link byte[]}
*/
@jakarta.annotation.Nullable
public byte[] getContent() {
return this.backingStore.get("content");
}
/**
* Gets the createdDateTime property value. Date and time at which the recording was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* 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("content", (n) -> { this.setContent(n.getByteArrayValue()); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("meetingId", (n) -> { this.setMeetingId(n.getStringValue()); });
deserializerMap.put("meetingOrganizer", (n) -> { this.setMeetingOrganizer(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); });
deserializerMap.put("recordingContentUrl", (n) -> { this.setRecordingContentUrl(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the meetingId property value. The unique identifier of the onlineMeeting related to this recording. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMeetingId() {
return this.backingStore.get("meetingId");
}
/**
* Gets the meetingOrganizer property value. The identity information of the organizer of the onlineMeeting related to this recording. Read-only.
* @return a {@link IdentitySet}
*/
@jakarta.annotation.Nullable
public IdentitySet getMeetingOrganizer() {
return this.backingStore.get("meetingOrganizer");
}
/**
* Gets the recordingContentUrl property value. The URL that can be used to access the content of the recording. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRecordingContentUrl() {
return this.backingStore.get("recordingContentUrl");
}
/**
* 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.writeByteArrayValue("content", this.getContent());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeStringValue("meetingId", this.getMeetingId());
writer.writeObjectValue("meetingOrganizer", this.getMeetingOrganizer());
writer.writeStringValue("recordingContentUrl", this.getRecordingContentUrl());
}
/**
* Sets the content property value. The content of the recording. Read-only.
* @param value Value to set for the content property.
*/
public void setContent(@jakarta.annotation.Nullable final byte[] value) {
this.backingStore.set("content", value);
}
/**
* Sets the createdDateTime property value. Date and time at which the recording was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the meetingId property value. The unique identifier of the onlineMeeting related to this recording. Read-only.
* @param value Value to set for the meetingId property.
*/
public void setMeetingId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("meetingId", value);
}
/**
* Sets the meetingOrganizer property value. The identity information of the organizer of the onlineMeeting related to this recording. Read-only.
* @param value Value to set for the meetingOrganizer property.
*/
public void setMeetingOrganizer(@jakarta.annotation.Nullable final IdentitySet value) {
this.backingStore.set("meetingOrganizer", value);
}
/**
* Sets the recordingContentUrl property value. The URL that can be used to access the content of the recording. Read-only.
* @param value Value to set for the recordingContentUrl property.
*/
public void setRecordingContentUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("recordingContentUrl", value);
}
}