/// <summary> /// Initializes a new instance of the <see cref="InlineObject88" /> class. /// </summary> /// <param name="nClusters">nClusters (required).</param> /// <param name="force">force.</param> /// <param name="clusterBy">clusterBy (required).</param> /// <param name="method">method (required).</param> public InlineObject88(int nClusters = default(int), bool force = default(bool), ClusterByEnum clusterBy = default(ClusterByEnum), MethodEnum method = default(MethodEnum)) { // to ensure "nClusters" is required (not null) if (nClusters == null) { throw new InvalidDataException("nClusters is a required property for InlineObject88 and cannot be null"); } else { this.NClusters = nClusters; } // to ensure "clusterBy" is required (not null) if (clusterBy == null) { throw new InvalidDataException("clusterBy is a required property for InlineObject88 and cannot be null"); } else { this.ClusterBy = clusterBy; } // to ensure "method" is required (not null) if (method == null) { throw new InvalidDataException("method is a required property for InlineObject88 and cannot be null"); } else { this.Method = method; } this.Force = force; }
/// <summary> /// Initializes a new instance of the <see cref="ClusterProjectRequest" /> class. /// </summary> /// <param name="nClusters">nClusters (required).</param> /// <param name="force">force.</param> /// <param name="clusterBy">clusterBy (required).</param> /// <param name="method">method (required).</param> /// <param name="requireConfirmation">requireConfirmation.</param> public ClusterProjectRequest(int nClusters = default(int), bool force = default(bool), ClusterByEnum clusterBy = default(ClusterByEnum), MethodEnum method = default(MethodEnum), bool requireConfirmation = default(bool)) { // to ensure "nClusters" is required (not null) if (nClusters == null) { throw new InvalidDataException("nClusters is a required property for ClusterProjectRequest and cannot be null"); } else { this.NClusters = nClusters; } // to ensure "clusterBy" is required (not null) if (clusterBy == null) { throw new InvalidDataException("clusterBy is a required property for ClusterProjectRequest and cannot be null"); } else { this.ClusterBy = clusterBy; } // to ensure "method" is required (not null) if (method == null) { throw new InvalidDataException("method is a required property for ClusterProjectRequest and cannot be null"); } else { this.Method = method; } this.Force = force; this.RequireConfirmation = requireConfirmation; }