Search Results for

    Show / Hide Table of Contents

    Class GenerateSpfRecordOptions

    GenerateSpfRecordOptions

    Inheritance
    object
    GenerateSpfRecordOptions
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "GenerateSpfRecordOptions")]
    public class GenerateSpfRecordOptions : IValidatableObject

    Constructors

    View Source

    GenerateSpfRecordOptions()

    Initializes a new instance of the GenerateSpfRecordOptions class.

    Declaration
    [JsonConstructor]
    protected GenerateSpfRecordOptions()
    View Source

    GenerateSpfRecordOptions(string, List<string>, List<string>, List<string>, bool, bool, AllPolicyEnum)

    Initializes a new instance of the GenerateSpfRecordOptions class.

    Declaration
    public GenerateSpfRecordOptions(string domain = null, List<string> includeDomains = null, List<string> ip4 = null, List<string> ip6 = null, bool mx = false, bool a = false, GenerateSpfRecordOptions.AllPolicyEnum allPolicy = (GenerateSpfRecordOptions.AllPolicyEnum)0)
    Parameters
    Type Name Description
    string domain

    Domain the SPF record applies to (required).

    List<string> includeDomains

    Optional include domains.

    List<string> ip4

    Optional IPv4 CIDRs or hosts.

    List<string> ip6

    Optional IPv6 CIDRs or hosts.

    bool mx

    Whether to include the MX mechanism (required).

    bool a

    Whether to include the A mechanism (required).

    GenerateSpfRecordOptions.AllPolicyEnum allPolicy

    allPolicy (required).

    Properties

    View Source

    A

    Whether to include the A mechanism

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

    Whether to include the A mechanism

    View Source

    AllPolicy

    Gets or Sets AllPolicy

    Declaration
    [DataMember(Name = "allPolicy", IsRequired = true, EmitDefaultValue = true)]
    public GenerateSpfRecordOptions.AllPolicyEnum AllPolicy { get; set; }
    Property Value
    Type Description
    GenerateSpfRecordOptions.AllPolicyEnum
    View Source

    Domain

    Domain the SPF record applies to

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

    Domain the SPF record applies to

    View Source

    IncludeDomains

    Optional include domains

    Declaration
    [DataMember(Name = "includeDomains", EmitDefaultValue = true)]
    public List<string> IncludeDomains { get; set; }
    Property Value
    Type Description
    List<string>

    Optional include domains

    View Source

    Ip4

    Optional IPv4 CIDRs or hosts

    Declaration
    [DataMember(Name = "ip4", EmitDefaultValue = true)]
    public List<string> Ip4 { get; set; }
    Property Value
    Type Description
    List<string>

    Optional IPv4 CIDRs or hosts

    View Source

    Ip6

    Optional IPv6 CIDRs or hosts

    Declaration
    [DataMember(Name = "ip6", EmitDefaultValue = true)]
    public List<string> Ip6 { get; set; }
    Property Value
    Type Description
    List<string>

    Optional IPv6 CIDRs or hosts

    View Source

    Mx

    Whether to include the MX mechanism

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

    Whether to include the MX mechanism

    Methods

    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()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.