枚举 DeviceSdkType
- java.lang.Object
-
- java.lang.Enum<DeviceSdkType>
-
- com.baidubce.services.iothisk.device.model.DeviceSdkType
-
- 所有已实现的接口:
Serializable,Comparable<DeviceSdkType>
public enum DeviceSdkType extends Enum<DeviceSdkType>
Represents device sdk type.
-
-
枚举常量概要
枚举常量 枚举常量 说明 NONE_COUNTERNONE_COUNTER device sdk type It specifies that the device will not check message counter to against replay attack.NONE_RTCNONE_RTC device sdk type Message replay attack will be check by none_rtc counter method, in which the counter may be an increased int value.RTCRTC device sdk type Message replay attack will be check by rtc counter method, in which the counter may be an timestamp in seconds generated from rtc.
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetStatusCode()Get status code of related device sdk typestatic DeviceSdkTypeparse(String value)Parse string type status code to corresponding device sdk typestatic DeviceSdkTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)static DeviceSdkType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (DeviceSdkType c : DeviceSdkType.values()) System.out.println(c);
-
-
-
枚举常量详细资料
-
NONE_RTC
public static final DeviceSdkType NONE_RTC
NONE_RTC device sdk type Message replay attack will be check by none_rtc counter method, in which the counter may be an increased int value.
-
RTC
public static final DeviceSdkType RTC
RTC device sdk type Message replay attack will be check by rtc counter method, in which the counter may be an timestamp in seconds generated from rtc.
-
NONE_COUNTER
public static final DeviceSdkType NONE_COUNTER
NONE_COUNTER device sdk type It specifies that the device will not check message counter to against replay attack.
-
-
方法详细资料
-
values
public static DeviceSdkType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (DeviceSdkType c : DeviceSdkType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static DeviceSdkType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getStatusCode
public int getStatusCode()
Get status code of related device sdk type- 返回:
- status code
-
parse
public static DeviceSdkType parse(String value)
Parse string type status code to corresponding device sdk type- 参数:
value- string type status code- 返回:
- successful return an device sdk type, otherwise an exception will be thrown
-
-