Class GenerateMtaStsRecordOptions
GenerateMtaStsRecordOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "GenerateMtaStsRecordOptions")]
public class GenerateMtaStsRecordOptions : IEquatable<GenerateMtaStsRecordOptions>, IValidatableObject
Constructors
View SourceGenerateMtaStsRecordOptions()
Initializes a new instance of the GenerateMtaStsRecordOptions class.
Declaration
[JsonConstructor]
protected GenerateMtaStsRecordOptions()
GenerateMtaStsRecordOptions(string, VersionEnum, ModeEnum, int, int, List<string>)
Initializes a new instance of the GenerateMtaStsRecordOptions class.
Declaration
public GenerateMtaStsRecordOptions(string host = null, GenerateMtaStsRecordOptions.VersionEnum version = (GenerateMtaStsRecordOptions.VersionEnum)0, GenerateMtaStsRecordOptions.ModeEnum mode = (GenerateMtaStsRecordOptions.ModeEnum)0, int ttl = 0, int maxAgeSeconds = 0, List<string> mxRecords = null)
Parameters
Type | Name | Description |
---|---|---|
string | host | host (required). |
GenerateMtaStsRecordOptions.VersionEnum | version | version (required). |
GenerateMtaStsRecordOptions.ModeEnum | mode | mode (required). |
int | ttl | ttl (required). |
int | maxAgeSeconds | maxAgeSeconds (required). |
System.Collections.Generic.List<T><string> | mxRecords | mxRecords (required). |
Properties
View Source_Version
Gets or Sets _Version
Declaration
[DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
public GenerateMtaStsRecordOptions.VersionEnum _Version { get; set; }
Property Value
Type | Description |
---|---|
GenerateMtaStsRecordOptions.VersionEnum |
Host
Gets or Sets Host
Declaration
[DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)]
public string Host { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxAgeSeconds
Gets or Sets MaxAgeSeconds
Declaration
[DataMember(Name = "maxAgeSeconds", IsRequired = true, EmitDefaultValue = true)]
public int MaxAgeSeconds { get; set; }
Property Value
Type | Description |
---|---|
int |
Mode
Gets or Sets Mode
Declaration
[DataMember(Name = "mode", IsRequired = true, EmitDefaultValue = true)]
public GenerateMtaStsRecordOptions.ModeEnum Mode { get; set; }
Property Value
Type | Description |
---|---|
GenerateMtaStsRecordOptions.ModeEnum |
MxRecords
Gets or Sets MxRecords
Declaration
[DataMember(Name = "mxRecords", IsRequired = true, EmitDefaultValue = true)]
public List<string> MxRecords { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Ttl
Gets or Sets Ttl
Declaration
[DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)]
public int Ttl { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceEquals(GenerateMtaStsRecordOptions)
Returns true if GenerateMtaStsRecordOptions instances are equal
Declaration
public bool Equals(GenerateMtaStsRecordOptions input)
Parameters
Type | Name | Description |
---|---|---|
GenerateMtaStsRecordOptions | input | Instance of GenerateMtaStsRecordOptions 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 |