Class GenerateDmarcRecordOptions
GenerateDmarcRecordOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "GenerateDmarcRecordOptions")]
public class GenerateDmarcRecordOptions : IEquatable<GenerateDmarcRecordOptions>, IValidatableObject
Constructors
View SourceGenerateDmarcRecordOptions()
Initializes a new instance of the GenerateDmarcRecordOptions class.
Declaration
[JsonConstructor]
protected GenerateDmarcRecordOptions()
GenerateDmarcRecordOptions(string, VersionEnum, PolicyEnum, SubdomainPolicyEnum?, List<string>, List<string>, int, ReportFormatEnum?, int, AdkimEnum?, AspfEnum?, FoEnum?)
Initializes a new instance of the GenerateDmarcRecordOptions class.
Declaration
public GenerateDmarcRecordOptions(string domain = null, GenerateDmarcRecordOptions.VersionEnum version = (GenerateDmarcRecordOptions.VersionEnum)0, GenerateDmarcRecordOptions.PolicyEnum policy = (GenerateDmarcRecordOptions.PolicyEnum)0, GenerateDmarcRecordOptions.SubdomainPolicyEnum? subdomainPolicy = null, List<string> reportEmailAddress = null, List<string> forensicEmailAddress = null, int percentage = 0, GenerateDmarcRecordOptions.ReportFormatEnum? reportFormat = null, int secondsBetweenReports = 0, GenerateDmarcRecordOptions.AdkimEnum? adkim = null, GenerateDmarcRecordOptions.AspfEnum? aspf = null, GenerateDmarcRecordOptions.FoEnum? fo = null)
Parameters
Type | Name | Description |
---|---|---|
string | domain | domain (required). |
GenerateDmarcRecordOptions.VersionEnum | version | version (required). |
GenerateDmarcRecordOptions.PolicyEnum | policy | policy (required). |
GenerateDmarcRecordOptions.SubdomainPolicyEnum? | subdomainPolicy | subdomainPolicy. |
System.Collections.Generic.List<T><string> | reportEmailAddress | reportEmailAddress. |
System.Collections.Generic.List<T><string> | forensicEmailAddress | forensicEmailAddress. |
int | percentage | percentage. |
GenerateDmarcRecordOptions.ReportFormatEnum? | reportFormat | reportFormat. |
int | secondsBetweenReports | secondsBetweenReports. |
GenerateDmarcRecordOptions.AdkimEnum? | adkim | adkim. |
GenerateDmarcRecordOptions.AspfEnum? | aspf | aspf. |
GenerateDmarcRecordOptions.FoEnum? | fo | fo. |
Properties
View Source_Version
Gets or Sets _Version
Declaration
[DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
public GenerateDmarcRecordOptions.VersionEnum _Version { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.VersionEnum |
Adkim
Gets or Sets Adkim
Declaration
[DataMember(Name = "adkim", EmitDefaultValue = false)]
public GenerateDmarcRecordOptions.AdkimEnum? Adkim { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.AdkimEnum? |
Aspf
Gets or Sets Aspf
Declaration
[DataMember(Name = "aspf", EmitDefaultValue = false)]
public GenerateDmarcRecordOptions.AspfEnum? Aspf { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.AspfEnum? |
Domain
Gets or Sets Domain
Declaration
[DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)]
public string Domain { get; set; }
Property Value
Type | Description |
---|---|
string |
Fo
Gets or Sets Fo
Declaration
[DataMember(Name = "fo", EmitDefaultValue = false)]
public GenerateDmarcRecordOptions.FoEnum? Fo { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.FoEnum? |
ForensicEmailAddress
Gets or Sets ForensicEmailAddress
Declaration
[DataMember(Name = "forensicEmailAddress", EmitDefaultValue = false)]
public List<string> ForensicEmailAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Percentage
Gets or Sets Percentage
Declaration
[DataMember(Name = "percentage", EmitDefaultValue = false)]
public int Percentage { get; set; }
Property Value
Type | Description |
---|---|
int |
Policy
Gets or Sets Policy
Declaration
[DataMember(Name = "policy", IsRequired = true, EmitDefaultValue = true)]
public GenerateDmarcRecordOptions.PolicyEnum Policy { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.PolicyEnum |
ReportEmailAddress
Gets or Sets ReportEmailAddress
Declaration
[DataMember(Name = "reportEmailAddress", EmitDefaultValue = false)]
public List<string> ReportEmailAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
ReportFormat
Gets or Sets ReportFormat
Declaration
[DataMember(Name = "reportFormat", EmitDefaultValue = false)]
public GenerateDmarcRecordOptions.ReportFormatEnum? ReportFormat { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.ReportFormatEnum? |
SecondsBetweenReports
Gets or Sets SecondsBetweenReports
Declaration
[DataMember(Name = "secondsBetweenReports", EmitDefaultValue = false)]
public int SecondsBetweenReports { get; set; }
Property Value
Type | Description |
---|---|
int |
SubdomainPolicy
Gets or Sets SubdomainPolicy
Declaration
[DataMember(Name = "subdomainPolicy", EmitDefaultValue = false)]
public GenerateDmarcRecordOptions.SubdomainPolicyEnum? SubdomainPolicy { get; set; }
Property Value
Type | Description |
---|---|
GenerateDmarcRecordOptions.SubdomainPolicyEnum? |
Methods
View SourceEquals(GenerateDmarcRecordOptions)
Returns true if GenerateDmarcRecordOptions instances are equal
Declaration
public bool Equals(GenerateDmarcRecordOptions input)
Parameters
Type | Name | Description |
---|---|---|
GenerateDmarcRecordOptions | input | Instance of GenerateDmarcRecordOptions 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 |