
com.aliyun.mns.model.MessageSystemPropertyValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-sdk-mns Show documentation
Show all versions of aliyun-sdk-mns Show documentation
Aliyun Message and Notification Service SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
package com.aliyun.mns.model;
/**
* @author haolong
*/
public class MessageSystemPropertyValue implements AbstractMessagePropertyValue {
private SystemPropertyType dataType;
private String stringValue;
public MessageSystemPropertyValue(SystemPropertyType type, String value) {
if (type == null || value == null) {
throw new IllegalArgumentException("type and value can not be null");
}
this.dataType = type;
this.stringValue = value;
}
@Override
public String toString() {
return "MessageSystemPropertyValue{" +
"dataType=" + dataType +
", stringValue='" + stringValue + '\'' +
'}';
}
@Override
public String getStringValueByType() {
return stringValue;
}
@Override
public String getDataTypeString() {
return dataType.name();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy