Class DNSLookupResult
DNS lookup result. Includes record type, time to live, raw response, and name value for the name server response.
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "DNSLookupResult")]
public class DNSLookupResult : IEquatable<DNSLookupResult>, IValidatableObject
Constructors
View SourceDNSLookupResult()
Initializes a new instance of the DNSLookupResult class.
Declaration
[JsonConstructor]
protected DNSLookupResult()
DNSLookupResult(RecordTypeEnum, long, List<string>, string)
Initializes a new instance of the DNSLookupResult class.
Declaration
public DNSLookupResult(DNSLookupResult.RecordTypeEnum recordType = (DNSLookupResult.RecordTypeEnum)0, long ttl = 0, List<string> recordEntries = null, string name = null)
Parameters
Type | Name | Description |
---|---|---|
DNSLookupResult.RecordTypeEnum | recordType | Domain Name Server Record Types (required). |
long | ttl | ttl (required). |
System.Collections.Generic.List<T><string> | recordEntries | recordEntries (required). |
string | name | name (required). |
Properties
View SourceName
Gets or Sets Name
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
RecordEntries
Gets or Sets RecordEntries
Declaration
[DataMember(Name = "recordEntries", IsRequired = true, EmitDefaultValue = true)]
public List<string> RecordEntries { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
RecordType
Domain Name Server Record Types
Declaration
[DataMember(Name = "recordType", IsRequired = true, EmitDefaultValue = true)]
public DNSLookupResult.RecordTypeEnum RecordType { get; set; }
Property Value
Type | Description |
---|---|
DNSLookupResult.RecordTypeEnum | Domain Name Server Record Types |
Ttl
Gets or Sets Ttl
Declaration
[DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)]
public long Ttl { get; set; }
Property Value
Type | Description |
---|---|
long |
Methods
View SourceEquals(DNSLookupResult)
Returns true if DNSLookupResult instances are equal
Declaration
public bool Equals(DNSLookupResult input)
Parameters
Type | Name | Description |
---|---|---|
DNSLookupResult | input | Instance of DNSLookupResult 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 |