Class CreateConnectorSmtpConnectionOptions
CreateConnectorSmtpConnectionOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "CreateConnectorSmtpConnectionOptions")]
public class CreateConnectorSmtpConnectionOptions : IEquatable<CreateConnectorSmtpConnectionOptions>, IValidatableObject
Constructors
View SourceCreateConnectorSmtpConnectionOptions()
Initializes a new instance of the CreateConnectorSmtpConnectionOptions class.
Declaration
[JsonConstructor]
protected CreateConnectorSmtpConnectionOptions()
CreateConnectorSmtpConnectionOptions(bool, string, int, bool, string, string)
Initializes a new instance of the CreateConnectorSmtpConnectionOptions class.
Declaration
public CreateConnectorSmtpConnectionOptions(bool enabled = false, string smtpHost = null, int smtpPort = 0, bool smtpSsl = false, string smtpUsername = null, string smtpPassword = null)
Parameters
Type | Name | Description |
---|---|---|
bool | enabled | enabled. |
string | smtpHost | smtpHost (required). |
int | smtpPort | smtpPort. |
bool | smtpSsl | smtpSsl. |
string | smtpUsername | smtpUsername. |
string | smtpPassword | smtpPassword. |
Properties
View SourceEnabled
Gets or Sets Enabled
Declaration
[DataMember(Name = "enabled", EmitDefaultValue = true)]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
SmtpHost
Gets or Sets SmtpHost
Declaration
[DataMember(Name = "smtpHost", IsRequired = true, EmitDefaultValue = true)]
public string SmtpHost { get; set; }
Property Value
Type | Description |
---|---|
string |
SmtpPassword
Gets or Sets SmtpPassword
Declaration
[DataMember(Name = "smtpPassword", EmitDefaultValue = false)]
public string SmtpPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
SmtpPort
Gets or Sets SmtpPort
Declaration
[DataMember(Name = "smtpPort", EmitDefaultValue = false)]
public int SmtpPort { get; set; }
Property Value
Type | Description |
---|---|
int |
SmtpSsl
Gets or Sets SmtpSsl
Declaration
[DataMember(Name = "smtpSsl", EmitDefaultValue = true)]
public bool SmtpSsl { get; set; }
Property Value
Type | Description |
---|---|
bool |
SmtpUsername
Gets or Sets SmtpUsername
Declaration
[DataMember(Name = "smtpUsername", EmitDefaultValue = false)]
public string SmtpUsername { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(CreateConnectorSmtpConnectionOptions)
Returns true if CreateConnectorSmtpConnectionOptions instances are equal
Declaration
public bool Equals(CreateConnectorSmtpConnectionOptions input)
Parameters
Type | Name | Description |
---|---|---|
CreateConnectorSmtpConnectionOptions | input | Instance of CreateConnectorSmtpConnectionOptions 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 |