/// <summary>
 /// Initializes a new instance of the <see cref="SaveReportFilterRequest" /> class.
 /// </summary>
 /// <param name="ReportFilterName">Report filter name (required).</param>
 /// <param name="Parameters">Parameters (required).</param>
 public SaveReportFilterRequest(string ReportFilterName = default(string), ReportFilterParameters Parameters = default(ReportFilterParameters))
 {
     // to ensure "ReportFilterName" is required (not null)
     if (ReportFilterName == null)
     {
         throw new InvalidDataException("ReportFilterName is a required property for SaveReportFilterRequest and cannot be null");
     }
     else
     {
         this.ReportFilterName = ReportFilterName;
     }
     // to ensure "Parameters" is required (not null)
     if (Parameters == null)
     {
         throw new InvalidDataException("Parameters is a required property for SaveReportFilterRequest and cannot be null");
     }
     else
     {
         this.Parameters = Parameters;
     }
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportFilter" /> class.
 /// </summary>
 /// <param name="ReportFilterId">Report filter identifier (required).</param>
 /// <param name="ReportFilterName">Report filter name (required).</param>
 /// <param name="Parameters">Parameters (required).</param>
 /// <param name="Links">Links.</param>
 public ReportFilter(string ReportFilterId = default(string), string ReportFilterName = default(string), ReportFilterParameters Parameters = default(ReportFilterParameters), ReportFilterLinks Links = default(ReportFilterLinks))
 {
     // to ensure "ReportFilterId" is required (not null)
     if (ReportFilterId == null)
     {
         throw new InvalidDataException("ReportFilterId is a required property for ReportFilter and cannot be null");
     }
     else
     {
         this.ReportFilterId = ReportFilterId;
     }
     // to ensure "ReportFilterName" is required (not null)
     if (ReportFilterName == null)
     {
         throw new InvalidDataException("ReportFilterName is a required property for ReportFilter and cannot be null");
     }
     else
     {
         this.ReportFilterName = ReportFilterName;
     }
     // to ensure "Parameters" is required (not null)
     if (Parameters == null)
     {
         throw new InvalidDataException("Parameters is a required property for ReportFilter and cannot be null");
     }
     else
     {
         this.Parameters = Parameters;
     }
     this.Links = Links;
 }