Class InboxForwarderDto
Inbox forwarder. Describes how an inbox will forward matching emails to designated recipients.
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "InboxForwarderDto")]
public class InboxForwarderDto : IEquatable<InboxForwarderDto>, IValidatableObject
Constructors
View SourceInboxForwarderDto()
Initializes a new instance of the InboxForwarderDto class.
Declaration
[JsonConstructor]
protected InboxForwarderDto()
InboxForwarderDto(Guid, Guid, string, FieldEnum, string, List<string>, DateTime)
Initializes a new instance of the InboxForwarderDto class.
Declaration
public InboxForwarderDto(Guid id = default, Guid inboxId = default, string name = null, InboxForwarderDto.FieldEnum field = (InboxForwarderDto.FieldEnum)0, string match = null, List<string> forwardToRecipients = null, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
System.Guid | inboxId | inboxId (required). |
string | name | Name of inbox forwarder. |
InboxForwarderDto.FieldEnum | field | Which field to match against (required). |
string | match | Wild-card type pattern to apply to field (required). |
System.Collections.Generic.List<T><string> | forwardToRecipients | Who to send forwarded email to (required). |
DateTime | createdAt | createdAt (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Field
Which field to match against
Declaration
[DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)]
public InboxForwarderDto.FieldEnum Field { get; set; }
Property Value
Type | Description |
---|---|
InboxForwarderDto.FieldEnum | Which field to match against |
ForwardToRecipients
Who to send forwarded email to
Declaration
[DataMember(Name = "forwardToRecipients", IsRequired = true, EmitDefaultValue = true)]
public List<string> ForwardToRecipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> | Who to send forwarded email to |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Match
Wild-card type pattern to apply to field
Declaration
[DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)]
public string Match { get; set; }
Property Value
Type | Description |
---|---|
string | Wild-card type pattern to apply to field |
Name
Name of inbox forwarder
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of inbox forwarder |
Methods
View SourceEquals(InboxForwarderDto)
Returns true if InboxForwarderDto instances are equal
Declaration
public bool Equals(InboxForwarderDto input)
Parameters
Type | Name | Description |
---|---|---|
InboxForwarderDto | input | Instance of InboxForwarderDto 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 |