Table of Contents

Class UpdateInboundForwardRuleRequest

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

Request object for updating an inbound forward rule.

public sealed record UpdateInboundForwardRuleRequest : IValidatable, IEquatable<UpdateInboundForwardRuleRequest>
Inheritance
UpdateInboundForwardRuleRequest
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")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
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.