Class DomainPreview
Preview object for domain entity
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "DomainPreview")]
public class DomainPreview : IEquatable<DomainPreview>, IValidatableObject
Constructors
View SourceDomainPreview()
Initializes a new instance of the DomainPreview class.
Declaration
[JsonConstructor]
protected DomainPreview()
DomainPreview(Guid, string, Guid?, DateTime, DomainTypeEnum, bool, bool)
Initializes a new instance of the DomainPreview class.
Declaration
public DomainPreview(Guid id = default, string domain = null, Guid? catchAllInboxId = null, DateTime createdAt = default, DomainPreview.DomainTypeEnum domainType = (DomainPreview.DomainTypeEnum)0, bool isVerified = false, bool hasMissingRecords = false)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
string | domain | domain (required). |
System.Guid? | catchAllInboxId | catchAllInboxId. |
DateTime | createdAt | createdAt (required). |
DomainPreview.DomainTypeEnum | 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). |
bool | isVerified | isVerified (required). |
bool | hasMissingRecords | hasMissingRecords (required). |
Properties
View SourceCatchAllInboxId
Gets or Sets CatchAllInboxId
Declaration
[DataMember(Name = "catchAllInboxId", EmitDefaultValue = true)]
public Guid? CatchAllInboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Domain
Gets or Sets Domain
Declaration
[DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)]
public string Domain { get; set; }
Property Value
Type | Description |
---|---|
string |
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.
Declaration
[DataMember(Name = "domainType", IsRequired = true, EmitDefaultValue = true)]
public DomainPreview.DomainTypeEnum DomainType { get; set; }
Property Value
Type | Description |
---|---|
DomainPreview.DomainTypeEnum | 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. |
HasMissingRecords
Gets or Sets HasMissingRecords
Declaration
[DataMember(Name = "hasMissingRecords", IsRequired = true, EmitDefaultValue = true)]
public bool HasMissingRecords { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsVerified
Gets or Sets IsVerified
Declaration
[DataMember(Name = "isVerified", IsRequired = true, EmitDefaultValue = true)]
public bool IsVerified { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEquals(DomainPreview)
Returns true if DomainPreview instances are equal
Declaration
public bool Equals(DomainPreview input)
Parameters
Type | Name | Description |
---|---|---|
DomainPreview | input | Instance of DomainPreview to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |
Overrides
Validate(ValidationContext)
To validate all properties of the instance
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | Validation Result |