Class RulesetDto
Rules for an inbox or phone number. Rulesets can be used to block, allow, filter, or bounce emails or SMS when sending or receiving.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "RulesetDto")]
public class RulesetDto : IValidatableObject
Constructors
View SourceRulesetDto()
Initializes a new instance of the RulesetDto class.
Declaration
[JsonConstructor]
protected RulesetDto()
RulesetDto(Guid, Guid?, Guid?, ScopeEnum, ActionEnum, string, HandlerEnum, DateTime)
Initializes a new instance of the RulesetDto class.
Declaration
public RulesetDto(Guid id = default, Guid? inboxId = null, Guid? phoneId = null, RulesetDto.ScopeEnum scope = (RulesetDto.ScopeEnum)0, RulesetDto.ActionEnum action = (RulesetDto.ActionEnum)0, string target = null, RulesetDto.HandlerEnum handler = (RulesetDto.HandlerEnum)0, DateTime createdAt = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid? | inboxId | inboxId. |
| Guid? | phoneId | phoneId. |
| RulesetDto.ScopeEnum | scope | scope (required). |
| RulesetDto.ActionEnum | action | action (required). |
| string | target | target (required). |
| RulesetDto.HandlerEnum | handler | handler (required). |
| DateTime | createdAt | createdAt (required). |
Properties
View SourceAction
Gets or Sets Action
Declaration
[DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)]
public RulesetDto.ActionEnum Action { get; set; }
Property Value
| Type | Description |
|---|---|
| RulesetDto.ActionEnum |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Handler
Gets or Sets Handler
Declaration
[DataMember(Name = "handler", IsRequired = true, EmitDefaultValue = true)]
public RulesetDto.HandlerEnum Handler { get; set; }
Property Value
| Type | Description |
|---|---|
| RulesetDto.HandlerEnum |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = true)]
public Guid? InboxId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
PhoneId
Gets or Sets PhoneId
Declaration
[DataMember(Name = "phoneId", EmitDefaultValue = true)]
public Guid? PhoneId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Scope
Gets or Sets Scope
Declaration
[DataMember(Name = "scope", IsRequired = true, EmitDefaultValue = true)]
public RulesetDto.ScopeEnum Scope { get; set; }
Property Value
| Type | Description |
|---|---|
| RulesetDto.ScopeEnum |
Target
Gets or Sets Target
Declaration
[DataMember(Name = "target", IsRequired = true, EmitDefaultValue = true)]
public string Target { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
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 |