Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    RulesetDto
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "RulesetDto")]
    public class RulesetDto : IValidatableObject

    Constructors

    View Source

    RulesetDto()

    Initializes a new instance of the RulesetDto class.

    Declaration
    [JsonConstructor]
    protected RulesetDto()
    View Source

    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 Source

    Action

    Gets or Sets Action

    Declaration
    [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = true)]
    public RulesetDto.ActionEnum Action { get; set; }
    Property Value
    Type Description
    RulesetDto.ActionEnum
    View Source

    CreatedAt

    Gets or Sets CreatedAt

    Declaration
    [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
    public DateTime CreatedAt { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    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
    View Source

    Id

    Gets or Sets Id

    Declaration
    [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
    public Guid Id { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    InboxId

    Gets or Sets InboxId

    Declaration
    [DataMember(Name = "inboxId", EmitDefaultValue = true)]
    public Guid? InboxId { get; set; }
    Property Value
    Type Description
    Guid?
    View Source

    PhoneId

    Gets or Sets PhoneId

    Declaration
    [DataMember(Name = "phoneId", EmitDefaultValue = true)]
    public Guid? PhoneId { get; set; }
    Property Value
    Type Description
    Guid?
    View Source

    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
    View Source

    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 Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.