com.baidubce.services.iothisk.device.model
Enum DeviceSdkType

java.lang.Object
  extended by java.lang.Enum<DeviceSdkType>
      extended by com.baidubce.services.iothisk.device.model.DeviceSdkType
All Implemented Interfaces:
Serializable, Comparable<DeviceSdkType>

public enum DeviceSdkType
extends Enum<DeviceSdkType>

Represents device sdk type.


Enum Constant Summary
NONE_COUNTER
          NONE_COUNTER device sdk type It specifies that the device will not check message counter to against replay attack.
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
          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.
 
Method Summary
 int getStatusCode()
          Get status code of related device sdk type
static DeviceSdkType parse(String value)
          Parse string type status code to corresponding device sdk type
static DeviceSdkType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DeviceSdkType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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.

Method Detail

values

public static DeviceSdkType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DeviceSdkType c : DeviceSdkType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DeviceSdkType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getStatusCode

public int getStatusCode()
Get status code of related device sdk type

Returns:
status code

parse

public static DeviceSdkType parse(String value)
Parse string type status code to corresponding device sdk type

Parameters:
value - string type status code
Returns:
successful return an device sdk type, otherwise an exception will be thrown


Copyright © 2020. All rights reserved.