com.azure.communication.rooms.implementation.models.CreateRoomRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-rooms Show documentation
Show all versions of azure-communication-rooms Show documentation
This package contains clients and data structures used to create, update, get, delete the Azure Communication Room Service.
For this release, see notes
Microsoft Azure Communication Rooms quickstart
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.rooms.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
/** Request payload for creating new room. */
@Fluent
public final class CreateRoomRequest {
/*
* The timestamp from when the room is open for joining. The timestamp is in RFC3339 format:
* `yyyy-MM-ddTHH:mm:ssZ`. The default value is the current date time.
*/
@JsonProperty(value = "validFrom")
private OffsetDateTime validFrom;
/*
* The timestamp from when the room can no longer be joined. The timestamp is in RFC3339 format:
* `yyyy-MM-ddTHH:mm:ssZ`. The default value is the current date time plus 180 days.
*/
@JsonProperty(value = "validUntil")
private OffsetDateTime validUntil;
/*
* Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room. By
* default, this flag is set to false.
*/
@JsonProperty(value = "pstnDialOutEnabled")
private Boolean pstnDialOutEnabled;
/*
* (Optional) Participants to be invited to the room.
*/
@JsonProperty(value = "participants")
private Map participants;
/** Creates an instance of CreateRoomRequest class. */
public CreateRoomRequest() {}
/**
* Get the validFrom property: The timestamp from when the room is open for joining. The timestamp is in RFC3339
* format: `yyyy-MM-ddTHH:mm:ssZ`. The default value is the current date time.
*
* @return the validFrom value.
*/
public OffsetDateTime getValidFrom() {
return this.validFrom;
}
/**
* Set the validFrom property: The timestamp from when the room is open for joining. The timestamp is in RFC3339
* format: `yyyy-MM-ddTHH:mm:ssZ`. The default value is the current date time.
*
* @param validFrom the validFrom value to set.
* @return the CreateRoomRequest object itself.
*/
public CreateRoomRequest setValidFrom(OffsetDateTime validFrom) {
this.validFrom = validFrom;
return this;
}
/**
* Get the validUntil property: The timestamp from when the room can no longer be joined. The timestamp is in
* RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. The default value is the current date time plus 180 days.
*
* @return the validUntil value.
*/
public OffsetDateTime getValidUntil() {
return this.validUntil;
}
/**
* Set the validUntil property: The timestamp from when the room can no longer be joined. The timestamp is in
* RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. The default value is the current date time plus 180 days.
*
* @param validUntil the validUntil value to set.
* @return the CreateRoomRequest object itself.
*/
public CreateRoomRequest setValidUntil(OffsetDateTime validUntil) {
this.validUntil = validUntil;
return this;
}
/**
* Get the pstnDialOutEnabled property: Set this flag to true if, at the time of the call, dial out to a PSTN number
* is enabled in a particular room. By default, this flag is set to false.
*
* @return the pstnDialOutEnabled value.
*/
public Boolean isPstnDialOutEnabled() {
return this.pstnDialOutEnabled;
}
/**
* Set the pstnDialOutEnabled property: Set this flag to true if, at the time of the call, dial out to a PSTN number
* is enabled in a particular room. By default, this flag is set to false.
*
* @param pstnDialOutEnabled the pstnDialOutEnabled value to set.
* @return the CreateRoomRequest object itself.
*/
public CreateRoomRequest setPstnDialOutEnabled(Boolean pstnDialOutEnabled) {
this.pstnDialOutEnabled = pstnDialOutEnabled;
return this;
}
/**
* Get the participants property: (Optional) Participants to be invited to the room.
*
* @return the participants value.
*/
public Map getParticipants() {
return this.participants;
}
/**
* Set the participants property: (Optional) Participants to be invited to the room.
*
* @param participants the participants value to set.
* @return the CreateRoomRequest object itself.
*/
public CreateRoomRequest setParticipants(Map participants) {
this.participants = participants;
return this;
}
}