RegisterManager Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.deps.twin.RegisterManager

public class RegisterManager

Twin management representation This class is part of the Twin. It contains the Device identity management.

Field Summary

Modifier and Type Field and Description
protected DeviceCapabilities capabilities
protected TwinConnectionState connectionState
protected java.lang.String connectionStateUpdatedTime
protected java.lang.String deviceId
protected java.lang.String eTag
protected java.lang.String generationId
protected java.lang.String lastActivityTime
protected java.lang.String modelId
protected java.lang.String moduleId
protected TwinStatus status
protected java.lang.String statusReason
protected java.lang.String statusUpdatedTime
protected java.lang.Integer version

Method Summary

Modifier and Type Method and Description
DeviceCapabilities getCapabilities()

Getter for the Capabilities

java.lang.String getDeviceId()

Getter for the DeviceId

java.lang.String getETag()

Getter for the ETag

java.lang.String getModelId()
java.lang.String getModuleId()

Getter for the ModuleId

java.lang.Integer getVersion()

Getter for the Version

void setCapabilities(DeviceCapabilities capabilities)

Setter for the Capabilities

void setDeviceId(String deviceId)

Setter for the DeviceId

void setETag(String eTag)

Setter for the ETag

void setModelId(String modelId)
void setModuleId(String moduleId)

Setter for the ModuleId

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

capabilities

protected DeviceCapabilities capabilities

connectionState

protected TwinConnectionState connectionState

connectionStateUpdatedTime

protected String connectionStateUpdatedTime

deviceId

protected String deviceId

eTag

protected String eTag

generationId

protected String generationId

lastActivityTime

protected String lastActivityTime

modelId

protected String modelId

moduleId

protected String moduleId

status

protected TwinStatus status

statusReason

protected String statusReason

statusUpdatedTime

protected String statusUpdatedTime

version

protected Integer version

Method Details

getCapabilities

public DeviceCapabilities getCapabilities()

Getter for the Capabilities

Returns:

The String with the stored ModuleId.

getDeviceId

public String getDeviceId()

Getter for the DeviceId

Returns:

The String with the stored DeviceID.

getETag

public String getETag()

Getter for the ETag

Returns:

The String with the stored ETag.

getModelId

public String getModelId()

getModuleId

public String getModuleId()

Getter for the ModuleId

Returns:

The String with the stored ModuleId.

getVersion

public Integer getVersion()

Getter for the Version

Returns:

The Integer with the stored version.

setCapabilities

public void setCapabilities(DeviceCapabilities capabilities)

Setter for the Capabilities

Parameters:

capabilities - the capabilities

Throws:

java.lang.IllegalArgumentException - If the new capabilities do not fits the ID criteria.

setDeviceId

public void setDeviceId(String deviceId)

Setter for the DeviceId

Parameters:

deviceId - the String that contains the new DeviceID.

Throws:

java.lang.IllegalArgumentException - If the new DeviceId do not fits the ID criteria.

setETag

public void setETag(String eTag)

Setter for the ETag

Parameters:

eTag - the String that contains the new ETag.

setModelId

public void setModelId(String modelId)

Parameters:

modelId

setModuleId

public void setModuleId(String moduleId)

Setter for the ModuleId

Parameters:

moduleId - the String that contains the new ModuleId.

Throws:

java.lang.IllegalArgumentException - If the new ModuleId do not fits the ID criteria.

Applies to