Class ServerEndpoints
ServerEndpoints
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ServerEndpoints")]
public class ServerEndpoints : IValidatableObject
Constructors
View SourceServerEndpoints()
Initializes a new instance of the ServerEndpoints class.
Declaration
[JsonConstructor]
protected ServerEndpoints()
ServerEndpoints(string, int, bool, List<int>)
Initializes a new instance of the ServerEndpoints class.
Declaration
public ServerEndpoints(string host = null, int port = 0, bool tls = false, List<int> altPorts = null)
Parameters
Type | Name | Description |
---|---|---|
string | host | host (required). |
int | port | port (required). |
bool | tls | tls (required). |
List<int> | altPorts | altPorts (required). |
Properties
View SourceAltPorts
Gets or Sets AltPorts
Declaration
[DataMember(Name = "altPorts", IsRequired = true, EmitDefaultValue = true)]
public List<int> AltPorts { get; set; }
Property Value
Type | Description |
---|---|
List<int> |
Host
Gets or Sets Host
Declaration
[DataMember(Name = "host", IsRequired = true, EmitDefaultValue = true)]
public string Host { get; set; }
Property Value
Type | Description |
---|---|
string |
Port
Gets or Sets Port
Declaration
[DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)]
public int Port { get; set; }
Property Value
Type | Description |
---|---|
int |
Tls
Gets or Sets Tls
Declaration
[DataMember(Name = "tls", IsRequired = true, EmitDefaultValue = true)]
public bool Tls { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |