/// <summary> /// Initializes a new instance of the <see cref="CustomColumn" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="UserColumName">UserColumName (required).</param> /// <param name="Configuration">Configuration (required).</param> public CustomColumn(ColumnId Id = default(ColumnId), UserColumName UserColumName = default(UserColumName), ColumnConfiguration Configuration = default(ColumnConfiguration)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for CustomColumn and cannot be null"); } else { this.Id = Id; } // to ensure "UserColumName" is required (not null) if (UserColumName == null) { throw new InvalidDataException("UserColumName is a required property for CustomColumn and cannot be null"); } else { this.UserColumName = UserColumName; } // to ensure "Configuration" is required (not null) if (Configuration == null) { throw new InvalidDataException("Configuration is a required property for CustomColumn and cannot be null"); } else { this.Configuration = Configuration; } }
/// <summary> /// Initializes a new instance of the <see cref="ChangeUserColumnNameRequest" /> class. /// </summary> /// <param name="UserColumName">UserColumName (required).</param> public ChangeUserColumnNameRequest(UserColumName UserColumName = default(UserColumName)) { // to ensure "UserColumName" is required (not null) if (UserColumName == null) { throw new InvalidDataException("UserColumName is a required property for ChangeUserColumnNameRequest and cannot be null"); } else { this.UserColumName = UserColumName; } }
/// <summary> /// Initializes a new instance of the <see cref="ExistingCatalogColumnConfiguration" /> class. /// </summary> /// <param name="UserColumName">UserColumName (required).</param> /// <param name="Configuration">Configuration (required).</param> public ExistingCatalogColumnConfiguration(UserColumName UserColumName = default(UserColumName), ColumnConfiguration Configuration = default(ColumnConfiguration)) { // to ensure "UserColumName" is required (not null) if (UserColumName == null) { throw new InvalidDataException("UserColumName is a required property for ExistingCatalogColumnConfiguration and cannot be null"); } else { this.UserColumName = UserColumName; } // to ensure "Configuration" is required (not null) if (Configuration == null) { throw new InvalidDataException("Configuration is a required property for ExistingCatalogColumnConfiguration and cannot be null"); } else { this.Configuration = Configuration; } }
/// <summary> /// Initializes a new instance of the <see cref="CreateCustomColumnRequest" /> class. /// </summary> /// <param name="UserColumnName">UserColumnName (required).</param> /// <param name="EncryptedExpression">EncryptedExpression (required).</param> /// <param name="EncryptedBlocklyExpression">EncryptedBlocklyExpression (required).</param> /// <param name="DisplayGroupName">DisplayGroupName (required).</param> public CreateCustomColumnRequest(UserColumName UserColumnName = default(UserColumName), EncryptedExpression EncryptedExpression = default(EncryptedExpression), EncryptedBlocklyExpression EncryptedBlocklyExpression = default(EncryptedBlocklyExpression), DisplayGroupName DisplayGroupName = default(DisplayGroupName)) { // to ensure "UserColumnName" is required (not null) if (UserColumnName == null) { throw new InvalidDataException("UserColumnName is a required property for CreateCustomColumnRequest and cannot be null"); } else { this.UserColumnName = UserColumnName; } // to ensure "EncryptedExpression" is required (not null) if (EncryptedExpression == null) { throw new InvalidDataException("EncryptedExpression is a required property for CreateCustomColumnRequest and cannot be null"); } else { this.EncryptedExpression = EncryptedExpression; } // to ensure "EncryptedBlocklyExpression" is required (not null) if (EncryptedBlocklyExpression == null) { throw new InvalidDataException("EncryptedBlocklyExpression is a required property for CreateCustomColumnRequest and cannot be null"); } else { this.EncryptedBlocklyExpression = EncryptedBlocklyExpression; } // to ensure "DisplayGroupName" is required (not null) if (DisplayGroupName == null) { throw new InvalidDataException("DisplayGroupName is a required property for CreateCustomColumnRequest and cannot be null"); } else { this.DisplayGroupName = DisplayGroupName; } }
/// <summary> /// Initializes a new instance of the <see cref="DetectedCatalogColumn" /> class. /// </summary> /// <param name="Ignored">IF true, the product values of this column will be not taken in account during the importation process (default to false).</param> /// <param name="DuplicateProductValueConfiguration">DuplicateProductValueConfiguration.</param> /// <param name="Id">Id (required).</param> /// <param name="CatalogColumnName">CatalogColumnName (required).</param> /// <param name="UserColumName">UserColumName (required).</param> /// <param name="Configuration">Configuration (required).</param> /// <param name="ColumnId">ColumnId (required).</param> /// <param name="Detected">Indicates if the column is detected or is from the current catalog (required).</param> /// <param name="ExistingConfiguration">ExistingConfiguration.</param> public DetectedCatalogColumn(bool?Ignored = false, DuplicateProductValueConfiguration DuplicateProductValueConfiguration = default(DuplicateProductValueConfiguration), ColumnId Id = default(ColumnId), CatalogColumnName CatalogColumnName = default(CatalogColumnName), UserColumName UserColumName = default(UserColumName), ColumnConfiguration Configuration = default(ColumnConfiguration), ColumnId ColumnId = default(ColumnId), bool?Detected = default(bool?), ExistingCatalogColumnConfiguration ExistingConfiguration = default(ExistingCatalogColumnConfiguration)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for DetectedCatalogColumn and cannot be null"); } else { this.Id = Id; } // to ensure "CatalogColumnName" is required (not null) if (CatalogColumnName == null) { throw new InvalidDataException("CatalogColumnName is a required property for DetectedCatalogColumn and cannot be null"); } else { this.CatalogColumnName = CatalogColumnName; } // to ensure "UserColumName" is required (not null) if (UserColumName == null) { throw new InvalidDataException("UserColumName is a required property for DetectedCatalogColumn and cannot be null"); } else { this.UserColumName = UserColumName; } // to ensure "Configuration" is required (not null) if (Configuration == null) { throw new InvalidDataException("Configuration is a required property for DetectedCatalogColumn and cannot be null"); } else { this.Configuration = Configuration; } // to ensure "ColumnId" is required (not null) if (ColumnId == null) { throw new InvalidDataException("ColumnId is a required property for DetectedCatalogColumn and cannot be null"); } else { this.ColumnId = ColumnId; } // to ensure "Detected" is required (not null) if (Detected == null) { throw new InvalidDataException("Detected is a required property for DetectedCatalogColumn and cannot be null"); } else { this.Detected = Detected; } // use default value if no "Ignored" provided if (Ignored == null) { this.Ignored = false; } else { this.Ignored = Ignored; } this.DuplicateProductValueConfiguration = DuplicateProductValueConfiguration; this.ExistingConfiguration = ExistingConfiguration; }