/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (Device != null) { Device.Validate(); } if (SensorType != null) { SensorType.Validate(); } }