/// <summary>
 /// Initializes a new instance of the <see cref="OKPendingExecutionReport" /> class.
 /// </summary>
 /// <param name="data">data.</param>
 /// <param name="code">code.</param>
 /// <param name="message">message.</param>
 /// <param name="webRequestId">webRequestId.</param>
 public OKPendingExecutionReport(ResponseModelPendingExecutionReportData data = default(ResponseModelPendingExecutionReportData), int code = default(int), string message = default(string), string webRequestId = default(string))
 {
     this.Data         = data;
     this.Code         = code;
     this.Message      = message;
     this.WebRequestId = webRequestId;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseModelPendingExecutionReport" /> class.
        /// </summary>
        /// <param name="data">data (required).</param>
        /// <param name="code">code (required).</param>
        /// <param name="message">message (required).</param>
        /// <param name="webRequestId">webRequestId.</param>
        public ResponseModelPendingExecutionReport(ResponseModelPendingExecutionReportData data = default(ResponseModelPendingExecutionReportData), int code = default(int), string message = default(string), string webRequestId = default(string))
        {
            // to ensure "data" is required (not null)
            if (data == null)
            {
                throw new InvalidDataException("data is a required property for ResponseModelPendingExecutionReport and cannot be null");
            }
            else
            {
                this.Data = data;
            }

            // to ensure "code" is required (not null)
            if (code == null)
            {
                throw new InvalidDataException("code is a required property for ResponseModelPendingExecutionReport and cannot be null");
            }
            else
            {
                this.Code = code;
            }

            // to ensure "message" is required (not null)
            if (message == null)
            {
                throw new InvalidDataException("message is a required property for ResponseModelPendingExecutionReport and cannot be null");
            }
            else
            {
                this.Message = message;
            }

            this.WebRequestId = webRequestId;
        }