/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public override void Validate() { base.Validate(); if (DataFlow == null) { throw new ValidationException(ValidationRules.CannotBeNull, "DataFlow"); } if (DataFlow != null) { DataFlow.Validate(); } if (Staging != null) { Staging.Validate(); } if (IntegrationRuntime != null) { IntegrationRuntime.Validate(); } if (Sinks != null) { foreach (var valueElement in Sinks.Values) { if (valueElement != null) { valueElement.Validate(); } } } if (Policy != null) { Policy.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public override void Validate() { base.Validate(); if (DataFlow == null) { throw new ValidationException(ValidationRules.CannotBeNull, "DataFlow"); } if (DataFlow != null) { DataFlow.Validate(); } if (Staging != null) { Staging.Validate(); } if (IntegrationRuntime != null) { IntegrationRuntime.Validate(); } }
/// <summary> /// Initializes a new instance of the IntegrationRuntimeResource class. /// </summary> /// <param name="properties">Integration runtime properties.</param> /// <param name="id">The resource identifier.</param> /// <param name="name">The resource name.</param> /// <param name="type">The resource type.</param> /// <param name="etag">Etag identifies change in the resource.</param> public IntegrationRuntimeResource(IntegrationRuntime properties, string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) : base(id, name, type, etag) { Properties = properties; CustomInit(); }
/// <summary> /// Initializes a new instance of the IntegrationRuntimeDebugResource /// class. /// </summary> /// <param name="properties">Integration runtime properties.</param> /// <param name="name">The resource name.</param> public IntegrationRuntimeDebugResource(IntegrationRuntime properties, string name = default(string)) : base(name) { Properties = properties; CustomInit(); }