/// <summary> /// Initializes a new instance of the <see cref="DomainPreview" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="domain">domain (required).</param> /// <param name="catchAllInboxId">catchAllInboxId.</param> /// <param name="createdAt">createdAt (required).</param> /// <param name="domainType">Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. (required).</param> /// <param name="isVerified">isVerified (required).</param> public DomainPreview(Guid id = default(Guid), string domain = default(string), Guid catchAllInboxId = default(Guid), DateTime createdAt = default(DateTime), DomainTypeEnum domainType = default(DomainTypeEnum), bool isVerified = default(bool)) { this.Id = id; // to ensure "domain" is required (not null) this.Domain = domain ?? throw new ArgumentNullException("domain is a required property for DomainPreview and cannot be null"); this.CreatedAt = createdAt; this.DomainType = domainType; this.IsVerified = isVerified; this.CatchAllInboxId = catchAllInboxId; }
/// <summary> /// Initializes a new instance of the <see cref="DomainDto" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="userId">userId (required).</param> /// <param name="domain">Custom domain name (required).</param> /// <param name="verificationToken">Verification tokens (required).</param> /// <param name="dkimTokens">Unique token DKIM tokens (required).</param> /// <param name="isVerified">Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records. (required).</param> /// <param name="domainNameRecords">List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider. (required).</param> /// <param name="catchAllInboxId">The optional catch all inbox that will receive emails sent to the domain that cannot be matched..</param> /// <param name="createdAt">createdAt (required).</param> /// <param name="updatedAt">updatedAt (required).</param> /// <param name="domainType">Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails. (required).</param> public DomainDto(Guid id = default(Guid), Guid userId = default(Guid), string domain = default(string), string verificationToken = default(string), List <string> dkimTokens = default(List <string>), bool isVerified = default(bool), List <DomainNameRecord> domainNameRecords = default(List <DomainNameRecord>), Guid catchAllInboxId = default(Guid), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), DomainTypeEnum domainType = default(DomainTypeEnum)) { this.Id = id; this.UserId = userId; // to ensure "domain" is required (not null) this.Domain = domain ?? throw new ArgumentNullException("domain is a required property for DomainDto and cannot be null"); // to ensure "verificationToken" is required (not null) this.VerificationToken = verificationToken ?? throw new ArgumentNullException("verificationToken is a required property for DomainDto and cannot be null"); // to ensure "dkimTokens" is required (not null) this.DkimTokens = dkimTokens ?? throw new ArgumentNullException("dkimTokens is a required property for DomainDto and cannot be null"); this.IsVerified = isVerified; // to ensure "domainNameRecords" is required (not null) this.DomainNameRecords = domainNameRecords ?? throw new ArgumentNullException("domainNameRecords is a required property for DomainDto and cannot be null"); this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.DomainType = domainType; this.CatchAllInboxId = catchAllInboxId; }