Class SensorIntegration

java.lang.Object
com.azure.resourcemanager.agrifood.models.SensorIntegration
All Implemented Interfaces:
com.azure.json.JsonSerializable<SensorIntegration>

public final class SensorIntegration extends Object implements com.azure.json.JsonSerializable<SensorIntegration>
Sensor integration request model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of SensorIntegration class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the enabled property: Sensor integration enable state.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SensorIntegration from the JsonReader.
    com.azure.core.management.exception.ManagementError
    Get the provisioningInfo property: Common error response for all Azure Resource Manager APIs to return error details for failed operations.
    Get the provisioningState property: Sensor integration instance provisioning state.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the enabled property: Sensor integration enable state.
    withProvisioningInfo(com.azure.core.management.exception.ManagementError provisioningInfo)
    Set the provisioningInfo property: Common error response for all Azure Resource Manager APIs to return error details for failed operations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • SensorIntegration

      public SensorIntegration()
      Creates an instance of SensorIntegration class.
  • Method Details

    • enabled

      public String enabled()
      Get the enabled property: Sensor integration enable state. Allowed values are True, None.
      Returns:
      the enabled value.
    • withEnabled

      public SensorIntegration withEnabled(String enabled)
      Set the enabled property: Sensor integration enable state. Allowed values are True, None.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the SensorIntegration object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Sensor integration instance provisioning state.
      Returns:
      the provisioningState value.
    • provisioningInfo

      public com.azure.core.management.exception.ManagementError provisioningInfo()
      Get the provisioningInfo property: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      Returns:
      the provisioningInfo value.
    • withProvisioningInfo

      public SensorIntegration withProvisioningInfo(com.azure.core.management.exception.ManagementError provisioningInfo)
      Set the provisioningInfo property: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      Parameters:
      provisioningInfo - the provisioningInfo value to set.
      Returns:
      the SensorIntegration object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SensorIntegration>
      Throws:
      IOException
    • fromJson

      public static SensorIntegration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SensorIntegration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SensorIntegration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SensorIntegration.