public interface Device
An immutable client-side representation of Device.
  • Method Details

    • id

      String id()
      Gets the id property: Fully qualified resource Id for the resource.
      Returns:
      the id value.
    • name

      String name()
      Gets the name property: The name of the resource.
      Returns:
      the name value.
    • type

      String type()
      Gets the type property: The type of the resource.
      Returns:
      the type value.
    • location

      String location()
      Gets the location property: The geo-location where the resource lives.
      Returns:
      the location value.
    • tags

      Map<String,String> tags()
      Gets the tags property: Resource tags.
      Returns:
      the tags value.
    • properties

      Gets the properties property: Device properties.
      Returns:
      the properties value.
    • systemData

      com.azure.core.management.SystemData systemData()
      Gets the systemData property: The system meta data relating to this resource.
      Returns:
      the systemData value.
    • region

      com.azure.core.management.Region region()
      Gets the region of the resource.
      Returns:
      the region of the resource.
    • regionName

      String regionName()
      Gets the name of the resource region.
      Returns:
      the name of the resource region.
    • resourceGroupName

      String resourceGroupName()
      Gets the name of the resource group.
      Returns:
      the name of the resource group.
    • innerModel

      DeviceInner innerModel()
      Gets the inner com.azure.resourcemanager.hybridnetwork.fluent.models.DeviceInner object.
      Returns:
      the inner object.
    • update

      Device.Update update()
      Begins update for the Device resource.
      Returns:
      the stage of resource update.
    • refresh

      Device refresh()
      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      Device refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • listRegistrationKeyWithResponse

      com.azure.core.http.rest.Response<DeviceRegistrationKey> listRegistrationKeyWithResponse(com.azure.core.util.Context context)
      List the registration key for the device.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the device registration key along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listRegistrationKey

      DeviceRegistrationKey listRegistrationKey()
      List the registration key for the device.
      Returns:
      the device registration key.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.