com.microsoft.graph.beta.generated.models.VirtualEventTownhall 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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class VirtualEventTownhall extends VirtualEvent implements Parsable {
/**
* Instantiates a new {@link VirtualEventTownhall} and sets the default values.
*/
public VirtualEventTownhall() {
super();
this.setOdataType("#microsoft.graph.virtualEventTownhall");
}
/**
* 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 VirtualEventTownhall}
*/
@jakarta.annotation.Nonnull
public static VirtualEventTownhall createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new VirtualEventTownhall();
}
/**
* Gets the audience property value. The audience to whom the town hall is visible. Possible values are: everyone, organization, unknownFutureValue.
* @return a {@link MeetingAudience}
*/
@jakarta.annotation.Nullable
public MeetingAudience getAudience() {
return this.backingStore.get("audience");
}
/**
* Gets the coOrganizers property value. Identity information of the coorganizers of the town hall.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getCoOrganizers() {
return this.backingStore.get("coOrganizers");
}
/**
* 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("audience", (n) -> { this.setAudience(n.getEnumValue(MeetingAudience::forValue)); });
deserializerMap.put("coOrganizers", (n) -> { this.setCoOrganizers(n.getCollectionOfObjectValues(CommunicationsUserIdentity::createFromDiscriminatorValue)); });
deserializerMap.put("invitedAttendees", (n) -> { this.setInvitedAttendees(n.getCollectionOfObjectValues(Identity::createFromDiscriminatorValue)); });
deserializerMap.put("isInviteOnly", (n) -> { this.setIsInviteOnly(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the invitedAttendees property value. The attendees invited to the town hall. The supported identities are: communicationsUserIdentity and communicationsGuestIdentity.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getInvitedAttendees() {
return this.backingStore.get("invitedAttendees");
}
/**
* Gets the isInviteOnly property value. Indicates whether the town hall is only open to invited people and groups within your organization. The isInviteOnly property can only be true if the value of the audience property is set to organization.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsInviteOnly() {
return this.backingStore.get("isInviteOnly");
}
/**
* 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.writeEnumValue("audience", this.getAudience());
writer.writeCollectionOfObjectValues("coOrganizers", this.getCoOrganizers());
writer.writeCollectionOfObjectValues("invitedAttendees", this.getInvitedAttendees());
writer.writeBooleanValue("isInviteOnly", this.getIsInviteOnly());
}
/**
* Sets the audience property value. The audience to whom the town hall is visible. Possible values are: everyone, organization, unknownFutureValue.
* @param value Value to set for the audience property.
*/
public void setAudience(@jakarta.annotation.Nullable final MeetingAudience value) {
this.backingStore.set("audience", value);
}
/**
* Sets the coOrganizers property value. Identity information of the coorganizers of the town hall.
* @param value Value to set for the coOrganizers property.
*/
public void setCoOrganizers(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("coOrganizers", value);
}
/**
* Sets the invitedAttendees property value. The attendees invited to the town hall. The supported identities are: communicationsUserIdentity and communicationsGuestIdentity.
* @param value Value to set for the invitedAttendees property.
*/
public void setInvitedAttendees(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("invitedAttendees", value);
}
/**
* Sets the isInviteOnly property value. Indicates whether the town hall is only open to invited people and groups within your organization. The isInviteOnly property can only be true if the value of the audience property is set to organization.
* @param value Value to set for the isInviteOnly property.
*/
public void setIsInviteOnly(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isInviteOnly", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy