Class GenerateMtaStsRecordOptions
GenerateMtaStsRecordOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "GenerateMtaStsRecordOptions")]
public class GenerateMtaStsRecordOptions : IValidatableObject
Constructors
View SourceGenerateMtaStsRecordOptions()
Initializes a new instance of the GenerateMtaStsRecordOptions class.
Declaration
[JsonConstructor]
protected GenerateMtaStsRecordOptions()
GenerateMtaStsRecordOptions(string, VarVersionEnum, ModeEnum, int, int, List<string>)
Initializes a new instance of the GenerateMtaStsRecordOptions class.
Declaration
public GenerateMtaStsRecordOptions(string host = null, GenerateMtaStsRecordOptions.VarVersionEnum varVersion = (GenerateMtaStsRecordOptions.VarVersionEnum)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.VarVersionEnum | varVersion | varVersion (required). |
GenerateMtaStsRecordOptions.ModeEnum | mode | mode (required). |
int | ttl | ttl (required). |
int | maxAgeSeconds | maxAgeSeconds (required). |
List<string> | mxRecords | mxRecords (required). |
Properties
View SourceHost
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 |
---|---|
List<string> |
Ttl
Gets or Sets Ttl
Declaration
[DataMember(Name = "ttl", IsRequired = true, EmitDefaultValue = true)]
public int Ttl { get; set; }
Property Value
Type | Description |
---|---|
int |
VarVersion
Gets or Sets VarVersion
Declaration
[DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
public GenerateMtaStsRecordOptions.VarVersionEnum VarVersion { get; set; }
Property Value
Type | Description |
---|---|
GenerateMtaStsRecordOptions.VarVersionEnum |
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 |