Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SavedSegmentAllOf" /> class.
 /// </summary>
 /// <param name="segmentFilter">segmentFilter (required).</param>
 public SavedSegmentAllOf(SavedSegmentAllOfSegmentFilter segmentFilter = default(SavedSegmentAllOfSegmentFilter))
 {
     // to ensure "segmentFilter" is required (not null)
     if (segmentFilter == null)
     {
         throw new InvalidDataException("segmentFilter is a required property for SavedSegmentAllOf and cannot be null");
     }
     else
     {
         this.SegmentFilter = segmentFilter;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SavedSegment" /> class.
        /// </summary>
        /// <param name="segmentId">segmentId (required).</param>
        /// <param name="name">Name of the segment.</param>
        /// <param name="segmentFilter">segmentFilter (required).</param>
        public SavedSegment(string segmentId = default(string), string name = default(string), SavedSegmentAllOfSegmentFilter segmentFilter = default(SavedSegmentAllOfSegmentFilter))
        {
            // to ensure "segmentId" is required (not null)
            if (segmentId == null)
            {
                throw new InvalidDataException("segmentId is a required property for SavedSegment and cannot be null");
            }
            else
            {
                this.SegmentId = segmentId;
            }

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

            this.Name = name;
        }