Table of Contents

Class InboundForwardRule

Namespace
Mailtrap.Inbound.Models
Assembly
Mailtrap.Abstractions.dll

Represents an inbound forward rule.

public sealed record InboundForwardRule : IEquatable<InboundForwardRule>
Inheritance
InboundForwardRule
Implements

Properties

Conditions

Gets the rule conditions.

[JsonPropertyName("conditions")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<InboundForwardRuleCondition> Conditions { get; }

Property Value

IList<InboundForwardRuleCondition>

Rule conditions.

CreatedAt

Gets or sets the timestamp when the rule was created.

[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; set; }

Property Value

DateTimeOffset?

Timestamp when the rule was created.

Destinations

Gets the rule destinations.

[JsonPropertyName("destinations")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<InboundForwardRuleDestination> Destinations { get; }

Property Value

IList<InboundForwardRuleDestination>

Rule destinations.

Id

Gets or sets the forward rule identifier.

[JsonPropertyName("id")]
public long Id { get; set; }

Property Value

long

Forward rule identifier.

Name

Gets or sets the forward rule name.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Forward rule name.

UpdatedAt

Gets or sets the timestamp when the rule was last updated.

[JsonPropertyName("updated_at")]
public DateTimeOffset? UpdatedAt { get; set; }

Property Value

DateTimeOffset?

Timestamp when the rule was last updated.