Table of Contents

Class CreateInboundForwardRuleRequest

Namespace
Mailtrap.Inbound.Requests
Assembly
Mailtrap.Abstractions.dll

Request object for creating an inbound forward rule.

public sealed record CreateInboundForwardRuleRequest : IValidatable, IEquatable<CreateInboundForwardRuleRequest>
Inheritance
CreateInboundForwardRuleRequest
Implements

Properties

Conditions

Gets or sets the rule conditions.

[JsonPropertyName("conditions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<InboundForwardRuleCondition>? Conditions { get; set; }

Property Value

IList<InboundForwardRuleCondition>

Rule conditions.

Destinations

Gets or sets the rule destinations.

[JsonPropertyName("destinations")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IList<InboundForwardRuleDestination>? Destinations { get; set; }

Property Value

IList<InboundForwardRuleDestination>

Rule destinations.

Name

Gets or sets the rule name.

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

Property Value

string

Rule name.

Methods

Validate()

Validates the current instance.

public ValidationResult Validate()

Returns

ValidationResult

Object containing validation errors, if any.