Class CreateConnectorOptions
Options for creating an inbox connection with an external mail provider
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "CreateConnectorOptions")]
public class CreateConnectorOptions : IEquatable<CreateConnectorOptions>, IValidatableObject
Constructors
View SourceCreateConnectorOptions(bool?, SyncScheduleTypeEnum?, int?, string, string, bool?)
Initializes a new instance of the CreateConnectorOptions class.
Declaration
public CreateConnectorOptions(bool? syncEnabled = null, CreateConnectorOptions.SyncScheduleTypeEnum? syncScheduleType = null, int? syncInterval = null, string name = null, string emailAddress = null, bool? enabled = null)
Parameters
Type | Name | Description |
---|---|---|
bool? | syncEnabled | Enable automatic background sync. |
CreateConnectorOptions.SyncScheduleTypeEnum? | syncScheduleType | Sync schedule type. |
int? | syncInterval | Sync interval in minutes. |
string | name | Name of connector. |
string | emailAddress | Email address of external inbox. |
bool? | enabled | Is connector enabled. |
Properties
View SourceEmailAddress
Email address of external inbox
Declaration
[DataMember(Name = "emailAddress", EmitDefaultValue = true)]
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string | Email address of external inbox |
Enabled
Is connector enabled
Declaration
[DataMember(Name = "enabled", EmitDefaultValue = true)]
public bool? Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Is connector enabled |
Name
Name of connector
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of connector |
SyncEnabled
Enable automatic background sync
Declaration
[DataMember(Name = "syncEnabled", EmitDefaultValue = true)]
public bool? SyncEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Enable automatic background sync |
SyncInterval
Sync interval in minutes
Declaration
[DataMember(Name = "syncInterval", EmitDefaultValue = true)]
public int? SyncInterval { get; set; }
Property Value
Type | Description |
---|---|
int? | Sync interval in minutes |
SyncScheduleType
Sync schedule type
Declaration
[DataMember(Name = "syncScheduleType", EmitDefaultValue = true)]
public CreateConnectorOptions.SyncScheduleTypeEnum? SyncScheduleType { get; set; }
Property Value
Type | Description |
---|---|
CreateConnectorOptions.SyncScheduleTypeEnum? | Sync schedule type |
Methods
View SourceEquals(CreateConnectorOptions)
Returns true if CreateConnectorOptions instances are equal
Declaration
public bool Equals(CreateConnectorOptions input)
Parameters
Type | Name | Description |
---|---|---|
CreateConnectorOptions | input | Instance of CreateConnectorOptions 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 |