Class DNSLookupOptions
Options for DNS query.
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "DNSLookupOptions")]
public class DNSLookupOptions : IEquatable<DNSLookupOptions>, IValidatableObject
Constructors
View SourceDNSLookupOptions()
Initializes a new instance of the DNSLookupOptions class.
Declaration
[JsonConstructor]
protected DNSLookupOptions()
DNSLookupOptions(string, List<RecordTypesEnum>, bool)
Initializes a new instance of the DNSLookupOptions class.
Declaration
public DNSLookupOptions(string hostname = null, List<DNSLookupOptions.RecordTypesEnum> recordTypes = null, bool omitFinalDNSDot = false)
Parameters
Type | Name | Description |
---|---|---|
string | hostname | List of record types you wish to query such as MX, DNS, TXT, NS, A etc. (required). |
System.Collections.Generic.List<T><DNSLookupOptions.RecordTypesEnum> | recordTypes | List of record types you wish to query such as MX, DNS, TXT, NS, A etc. (required). |
bool | omitFinalDNSDot | Optionally control whether to omit the final dot in full DNS name values. (required). |
Properties
View SourceHostname
List of record types you wish to query such as MX, DNS, TXT, NS, A etc.
Declaration
[DataMember(Name = "hostname", IsRequired = true, EmitDefaultValue = true)]
public string Hostname { get; set; }
Property Value
Type | Description |
---|---|
string | List of record types you wish to query such as MX, DNS, TXT, NS, A etc. |
OmitFinalDNSDot
Optionally control whether to omit the final dot in full DNS name values.
Declaration
[DataMember(Name = "omitFinalDNSDot", IsRequired = true, EmitDefaultValue = true)]
public bool OmitFinalDNSDot { get; set; }
Property Value
Type | Description |
---|---|
bool | Optionally control whether to omit the final dot in full DNS name values. |
RecordTypes
List of record types you wish to query such as MX, DNS, TXT, NS, A etc.
Declaration
[DataMember(Name = "recordTypes", IsRequired = true, EmitDefaultValue = true)]
public List<DNSLookupOptions.RecordTypesEnum> RecordTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><DNSLookupOptions.RecordTypesEnum> | List of record types you wish to query such as MX, DNS, TXT, NS, A etc. |
Methods
View SourceEquals(DNSLookupOptions)
Returns true if DNSLookupOptions instances are equal
Declaration
public bool Equals(DNSLookupOptions input)
Parameters
Type | Name | Description |
---|---|---|
DNSLookupOptions | input | Instance of DNSLookupOptions 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 |