Search Results for

    Show / Hide Table of Contents

    Class ContentMatchOptions

    Options for matching content using regex patterns based on Java Pattern syntax

    Inheritance
    object
    ContentMatchOptions
    Implements
    IEquatable<ContentMatchOptions>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "ContentMatchOptions")]
    public class ContentMatchOptions : IEquatable<ContentMatchOptions>, IValidatableObject

    Constructors

    View Source

    ContentMatchOptions()

    Initializes a new instance of the ContentMatchOptions class.

    Declaration
    [JsonConstructor]
    protected ContentMatchOptions()
    View Source

    ContentMatchOptions(string)

    Initializes a new instance of the ContentMatchOptions class.

    Declaration
    public ContentMatchOptions(string pattern = null)
    Parameters
    Type Name Description
    string pattern

    Java style regex pattern. Do not include the typical / at start or end of regex in some languages. Given an example your code is: 12345 the pattern to extract match looks like code is: (\\d{6}). This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: [&apos;code is: 123456&apos;, &apos;123456&apos;] See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns. (required).

    Properties

    View Source

    Pattern

    Java style regex pattern. Do not include the typical / at start or end of regex in some languages. Given an example your code is: 12345 the pattern to extract match looks like code is: (\\d{6}). This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: [&apos;code is: 123456&apos;, &apos;123456&apos;] See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns.

    Declaration
    [DataMember(Name = "pattern", IsRequired = true, EmitDefaultValue = true)]
    public string Pattern { get; set; }
    Property Value
    Type Description
    string

    Java style regex pattern. Do not include the typical / at start or end of regex in some languages. Given an example your code is: 12345 the pattern to extract match looks like code is: (\\d{6}). This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: [&apos;code is: 123456&apos;, &apos;123456&apos;] See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns.

    Methods

    View Source

    Equals(ContentMatchOptions)

    Returns true if ContentMatchOptions instances are equal

    Declaration
    public bool Equals(ContentMatchOptions input)
    Parameters
    Type Name Description
    ContentMatchOptions input

    Instance of ContentMatchOptions to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    Equals(object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    object input

    Object to be compared

    Returns
    Type Description
    bool

    Boolean

    Overrides
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    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()
    View Source

    Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    ValidationContext validationContext

    Validation context

    Returns
    Type Description
    IEnumerable<ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.