Search Results for

    Show / Hide Table of Contents

    Class DomainNameRecord

    DNS Record required for verification of a domain. Record vary depending on domain type.

    Inheritance
    object
    DomainNameRecord
    Implements
    IEquatable<DomainNameRecord>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "DomainNameRecord")]
    public class DomainNameRecord : IEquatable<DomainNameRecord>, IValidatableObject

    Constructors

    View Source

    DomainNameRecord()

    Initializes a new instance of the DomainNameRecord class.

    Declaration
    [JsonConstructor]
    protected DomainNameRecord()
    View Source

    DomainNameRecord(LabelEnum, bool, RecordTypeEnum, string, List<string>, long, List<string>)

    Initializes a new instance of the DomainNameRecord class.

    Declaration
    public DomainNameRecord(DomainNameRecord.LabelEnum label = (DomainNameRecord.LabelEnum)0, bool required = false, DomainNameRecord.RecordTypeEnum recordType = (DomainNameRecord.RecordTypeEnum)0, string name = null, List<string> recordEntries = null, long ttl = 0, List<string> alternativeRecordEntries = null)
    Parameters
    Type Name Description
    DomainNameRecord.LabelEnum label

    Domain Name Server Record Label (required).

    bool required

    required (required).

    DomainNameRecord.RecordTypeEnum recordType

    Domain Name Server Record Types (required).

    string name

    name (required).

    System.Collections.Generic.List<T><string> recordEntries

    recordEntries (required).

    long ttl

    ttl (required).

    System.Collections.Generic.List<T><string> alternativeRecordEntries

    alternativeRecordEntries.

    Properties

    View Source

    AlternativeRecordEntries

    Gets or Sets AlternativeRecordEntries

    Declaration
    [DataMember(Name = "alternativeRecordEntries", EmitDefaultValue = true)]
    public List<string> AlternativeRecordEntries { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T><string>
    View Source

    Label

    Domain Name Server Record Label

    Declaration
    [DataMember(Name = "label", IsRequired = true, EmitDefaultValue = true)]
    public DomainNameRecord.LabelEnum Label { get; set; }
    Property Value
    Type Description
    DomainNameRecord.LabelEnum

    Domain Name Server Record Label

    View Source

    Name

    Gets or Sets Name

    Declaration
    [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    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>
    View Source

    RecordType

    Domain Name Server Record Types

    Declaration
    [DataMember(Name = "recordType", IsRequired = true, EmitDefaultValue = true)]
    public DomainNameRecord.RecordTypeEnum RecordType { get; set; }
    Property Value
    Type Description
    DomainNameRecord.RecordTypeEnum

    Domain Name Server Record Types

    View Source

    Required

    Gets or Sets Required

    Declaration
    [DataMember(Name = "required", IsRequired = true, EmitDefaultValue = true)]
    public bool Required { get; set; }
    Property Value
    Type Description
    bool
    View Source

    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 Source

    Equals(DomainNameRecord)

    Returns true if DomainNameRecord instances are equal

    Declaration
    public bool Equals(DomainNameRecord input)
    Parameters
    Type Name Description
    DomainNameRecord input

    Instance of DomainNameRecord to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    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
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()
    View Source

    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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.