Class GenerateSpfRecordOptions
GenerateSpfRecordOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "GenerateSpfRecordOptions")]
public class GenerateSpfRecordOptions : IValidatableObject
Constructors
View SourceGenerateSpfRecordOptions()
Initializes a new instance of the GenerateSpfRecordOptions class.
Declaration
[JsonConstructor]
protected GenerateSpfRecordOptions()
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 SourceA
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 |
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 |
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 |
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 |
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 |
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 |
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 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 |