Class ServerEndpoints
ServerEndpoints
Inherited Members
object.Equals(object, object)
object.MemberwiseClone()
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ServerEndpoints")]
public class ServerEndpoints : IEquatable<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). |
System.Collections.Generic.List<T><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 |
---|---|
System.Collections.Generic.List<T><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 SourceEquals(ServerEndpoints)
Returns true if ServerEndpoints instances are equal
Declaration
public bool Equals(ServerEndpoints input)
Parameters
Type | Name | Description |
---|---|---|
ServerEndpoints | input | Instance of ServerEndpoints 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
object.ToString()
View Source
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 |
Implements
System.ComponentModel.DataAnnotations.IValidatableObject