All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.mns.model.MessageSystemPropertyName Maven / Gradle / Ivy

Go to download

Aliyun Message and Notification Service SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 1.3.1
Show newest version
package com.aliyun.mns.model;

/**
 * @author haolong
 */
public enum MessageSystemPropertyName {
    /**
     * openTelemetry trace parent
     */
    TRACE_PARENT("traceparent"),
    /**
     * openTelemetry trace state
     */
    TRACE_STATE("tracestate"),
    /**
     * baggage
     */
    BAGGAGE("baggage");

    private String value;

    MessageSystemPropertyName(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static MessageSystemPropertyName getByValue(String value) {
        for (MessageSystemPropertyName propertyName : MessageSystemPropertyName.values()) {
            if (propertyName.getValue().equals(value)) {
                return propertyName;
            }
        }
        throw new IllegalArgumentException("No matching constant for [" + value + "]");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy