com.microsoft.graph.beta.generated.models.MeetingRegistration 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 MeetingRegistration extends MeetingRegistrationBase implements Parsable {
/**
* Instantiates a new {@link MeetingRegistration} and sets the default values.
*/
public MeetingRegistration() {
super();
this.setOdataType("#microsoft.graph.meetingRegistration");
}
/**
* 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 MeetingRegistration}
*/
@jakarta.annotation.Nonnull
public static MeetingRegistration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MeetingRegistration();
}
/**
* Gets the customQuestions property value. Custom registration questions.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getCustomQuestions() {
return this.backingStore.get("customQuestions");
}
/**
* Gets the description property value. The description of the meeting.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the endDateTime property value. The meeting end time in UTC.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getEndDateTime() {
return this.backingStore.get("endDateTime");
}
/**
* 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("customQuestions", (n) -> { this.setCustomQuestions(n.getCollectionOfObjectValues(MeetingRegistrationQuestion::createFromDiscriminatorValue)); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("registrationPageViewCount", (n) -> { this.setRegistrationPageViewCount(n.getIntegerValue()); });
deserializerMap.put("registrationPageWebUrl", (n) -> { this.setRegistrationPageWebUrl(n.getStringValue()); });
deserializerMap.put("speakers", (n) -> { this.setSpeakers(n.getCollectionOfObjectValues(MeetingSpeaker::createFromDiscriminatorValue)); });
deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("subject", (n) -> { this.setSubject(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the registrationPageViewCount property value. The number of times the registration page has been visited. Read-only.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getRegistrationPageViewCount() {
return this.backingStore.get("registrationPageViewCount");
}
/**
* Gets the registrationPageWebUrl property value. The URL of the registration page. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRegistrationPageWebUrl() {
return this.backingStore.get("registrationPageWebUrl");
}
/**
* Gets the speakers property value. The meeting speaker's information.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSpeakers() {
return this.backingStore.get("speakers");
}
/**
* Gets the startDateTime property value. The meeting start time in UTC.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getStartDateTime() {
return this.backingStore.get("startDateTime");
}
/**
* Gets the subject property value. The subject of the meeting.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSubject() {
return this.backingStore.get("subject");
}
/**
* 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("customQuestions", this.getCustomQuestions());
writer.writeStringValue("description", this.getDescription());
writer.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime());
writer.writeIntegerValue("registrationPageViewCount", this.getRegistrationPageViewCount());
writer.writeStringValue("registrationPageWebUrl", this.getRegistrationPageWebUrl());
writer.writeCollectionOfObjectValues("speakers", this.getSpeakers());
writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime());
writer.writeStringValue("subject", this.getSubject());
}
/**
* Sets the customQuestions property value. Custom registration questions.
* @param value Value to set for the customQuestions property.
*/
public void setCustomQuestions(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("customQuestions", value);
}
/**
* Sets the description property value. The description of the meeting.
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the endDateTime property value. The meeting end time in UTC.
* @param value Value to set for the endDateTime property.
*/
public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("endDateTime", value);
}
/**
* Sets the registrationPageViewCount property value. The number of times the registration page has been visited. Read-only.
* @param value Value to set for the registrationPageViewCount property.
*/
public void setRegistrationPageViewCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("registrationPageViewCount", value);
}
/**
* Sets the registrationPageWebUrl property value. The URL of the registration page. Read-only.
* @param value Value to set for the registrationPageWebUrl property.
*/
public void setRegistrationPageWebUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("registrationPageWebUrl", value);
}
/**
* Sets the speakers property value. The meeting speaker's information.
* @param value Value to set for the speakers property.
*/
public void setSpeakers(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("speakers", value);
}
/**
* Sets the startDateTime property value. The meeting start time in UTC.
* @param value Value to set for the startDateTime property.
*/
public void setStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("startDateTime", value);
}
/**
* Sets the subject property value. The subject of the meeting.
* @param value Value to set for the subject property.
*/
public void setSubject(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("subject", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy