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 -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Sensor integration enable state.static SensorIntegrationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SensorIntegration from the JsonReader.com.azure.core.management.exception.ManagementErrorGet 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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(String enabled) 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, waitMethods 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
Get the enabled property: Sensor integration enable state. Allowed values are True, None.- Returns:
- the enabled value.
-
withEnabled
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SensorIntegration>- Throws:
IOException
-
fromJson
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.
-