
com.azure.communication.messages.models.CommunicationMessageKind Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.messages.models;
import com.azure.core.annotation.Generated;
import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;
/**
* The type of message.
*/
public final class CommunicationMessageKind extends ExpandableStringEnum {
/**
* Text message type.
*/
@Generated
public static final CommunicationMessageKind TEXT = fromString("text");
/**
* Image message type.
*/
@Generated
public static final CommunicationMessageKind IMAGE = fromString("image");
/**
* Template message type.
*/
@Generated
public static final CommunicationMessageKind TEMPLATE = fromString("template");
/**
* Creates a new instance of CommunicationMessageKind value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Generated
@Deprecated
public CommunicationMessageKind() {
}
/**
* Creates or finds a CommunicationMessageKind from its string representation.
*
* @param name a name to look for.
* @return the corresponding CommunicationMessageKind.
*/
@Generated
public static CommunicationMessageKind fromString(String name) {
return fromString(name, CommunicationMessageKind.class);
}
/**
* Gets known CommunicationMessageKind values.
*
* @return known CommunicationMessageKind values.
*/
@Generated
public static Collection values() {
return values(CommunicationMessageKind.class);
}
/**
* Document message type.
*/
@Generated
public static final CommunicationMessageKind DOCUMENT = fromString("document");
/**
* Video message type.
*/
@Generated
public static final CommunicationMessageKind VIDEO = fromString("video");
/**
* Audio message type.
*/
@Generated
public static final CommunicationMessageKind AUDIO = fromString("audio");
/**
* @deprecated Legacy image type for `MediaNotificationContent` which is being deprecated.
*/
@Generated
@Deprecated()
public static final CommunicationMessageKind IMAGE_V0 = fromString("image_v0");
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy