Class VerifyEmailAddressOptions
Options for verifying that an email address exists at a remote mail server.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "VerifyEmailAddressOptions")]
public class VerifyEmailAddressOptions : IEquatable<VerifyEmailAddressOptions>, IValidatableObject
Constructors
View SourceVerifyEmailAddressOptions()
Initializes a new instance of the VerifyEmailAddressOptions class.
Declaration
[JsonConstructor]
protected VerifyEmailAddressOptions()
VerifyEmailAddressOptions(string, string, string, int?)
Initializes a new instance of the VerifyEmailAddressOptions class.
Declaration
public VerifyEmailAddressOptions(string mailServerDomain = null, string emailAddress = null, string senderEmailAddress = null, int? port = null)
Parameters
Type | Name | Description |
---|---|---|
string | mailServerDomain | mailServerDomain. |
string | emailAddress | emailAddress (required). |
string | senderEmailAddress | senderEmailAddress. |
int? | port | port. |
Properties
View SourceEmailAddress
Gets or Sets EmailAddress
Declaration
[DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)]
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
MailServerDomain
Gets or Sets MailServerDomain
Declaration
[DataMember(Name = "mailServerDomain", EmitDefaultValue = true)]
public string MailServerDomain { get; set; }
Property Value
Type | Description |
---|---|
string |
Port
Gets or Sets Port
Declaration
[DataMember(Name = "port", EmitDefaultValue = true)]
public int? Port { get; set; }
Property Value
Type | Description |
---|---|
int? |
SenderEmailAddress
Gets or Sets SenderEmailAddress
Declaration
[DataMember(Name = "senderEmailAddress", EmitDefaultValue = true)]
public string SenderEmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(VerifyEmailAddressOptions)
Returns true if VerifyEmailAddressOptions instances are equal
Declaration
public bool Equals(VerifyEmailAddressOptions input)
Parameters
Type | Name | Description |
---|---|---|
VerifyEmailAddressOptions | input | Instance of VerifyEmailAddressOptions 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 |