Class DomainInformation
DomainInformation
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "DomainInformation")]
public class DomainInformation : IEquatable<DomainInformation>, IValidatableObject
Constructors
View SourceDomainInformation()
Initializes a new instance of the DomainInformation class.
Declaration
[JsonConstructor]
protected DomainInformation()
DomainInformation(string, bool, DomainTypeEnum)
Initializes a new instance of the DomainInformation class.
Declaration
public DomainInformation(string domainName = null, bool verified = false, DomainInformation.DomainTypeEnum domainType = (DomainInformation.DomainTypeEnum)0)
Parameters
Type | Name | Description |
---|---|---|
string | domainName | domainName (required). |
bool | verified | verified (required). |
DomainInformation.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). |
Properties
View SourceDomainName
Gets or Sets DomainName
Declaration
[DataMember(Name = "domainName", IsRequired = true, EmitDefaultValue = true)]
public string DomainName { 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 DomainInformation.DomainTypeEnum DomainType { get; set; }
Property Value
Type | Description |
---|---|
DomainInformation.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. |
Verified
Gets or Sets Verified
Declaration
[DataMember(Name = "verified", IsRequired = true, EmitDefaultValue = true)]
public bool Verified { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEquals(DomainInformation)
Returns true if DomainInformation instances are equal
Declaration
public bool Equals(DomainInformation input)
Parameters
Type | Name | Description |
---|---|---|
DomainInformation | input | Instance of DomainInformation 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 |