Class CreateDomainMonitorOptions
Create options for a domain monitor
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "CreateDomainMonitorOptions")]
public class CreateDomainMonitorOptions : IValidatableObject
Constructors
View SourceCreateDomainMonitorOptions()
Initializes a new instance of the CreateDomainMonitorOptions class.
Declaration
[JsonConstructor]
protected CreateDomainMonitorOptions()
CreateDomainMonitorOptions(string, string, long?, bool?, bool?)
Initializes a new instance of the CreateDomainMonitorOptions class.
Declaration
public CreateDomainMonitorOptions(string domain = null, string name = null, long? intervalSeconds = null, bool? enabled = null, bool? schedulingEnabled = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | domain | domain (required). |
| string | name | Optional display name. |
| long? | intervalSeconds | Check interval in seconds. |
| bool? | enabled | Whether scheduled monitor runs are enabled (legacy alias for schedulingEnabled). |
| bool? | schedulingEnabled | Whether scheduled monitor runs are enabled. Direct run-now is always permitted.. |
Properties
View SourceDomain
Gets or Sets Domain
Declaration
[DataMember(Name = "domain", IsRequired = true, EmitDefaultValue = true)]
public string Domain { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Enabled
Whether scheduled monitor runs are enabled (legacy alias for schedulingEnabled)
Declaration
[DataMember(Name = "enabled", EmitDefaultValue = true)]
public bool? Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether scheduled monitor runs are enabled (legacy alias for schedulingEnabled) |
IntervalSeconds
Check interval in seconds
Declaration
[DataMember(Name = "intervalSeconds", EmitDefaultValue = true)]
public long? IntervalSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| long? | Check interval in seconds |
Name
Optional display name
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional display name |
SchedulingEnabled
Whether scheduled monitor runs are enabled. Direct run-now is always permitted.
Declaration
[DataMember(Name = "schedulingEnabled", EmitDefaultValue = true)]
public bool? SchedulingEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether scheduled monitor runs are enabled. Direct run-now is always permitted. |
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 |