com.azure.communication.rooms.implementation.models.CommunicationIdentifierModel Maven / Gradle / Ivy
// 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;
/**
* Identifies a participant in Azure Communication services. A participant is, for example, an Azure communication user.
* This model must be interpreted as a union: Apart from rawId, at most one further property may be set.
*/
@Fluent
public final class CommunicationIdentifierModel {
/*
* Raw id of the identifier. Optional in requests, required in responses.
*/
@JsonProperty(value = "rawId")
private String rawId;
/*
* A user that got created with an Azure Communication Services resource.
*/
@JsonProperty(value = "communicationUser")
private CommunicationUserIdentifierModel communicationUser;
/**
* Get the rawId property: Raw id of the identifier. Optional in requests, required in responses.
*
* @return the rawId value.
*/
public String getRawId() {
return this.rawId;
}
/**
* Set the rawId property: Raw id of the identifier. Optional in requests, required in responses.
*
* @param rawId the rawId value to set.
* @return the CommunicationIdentifierModel object itself.
*/
public CommunicationIdentifierModel setRawId(String rawId) {
this.rawId = rawId;
return this;
}
/**
* Get the communicationUser property: A user that got created with an Azure Communication Services resource.
*
* @return the communicationUser value.
*/
public CommunicationUserIdentifierModel getCommunicationUser() {
return this.communicationUser;
}
/**
* Set the communicationUser property: A user that got created with an Azure Communication Services resource.
*
* @param communicationUser the communicationUser value to set.
* @return the CommunicationIdentifierModel object itself.
*/
public CommunicationIdentifierModel setCommunicationUser(CommunicationUserIdentifierModel communicationUser) {
this.communicationUser = communicationUser;
return this;
}
}