Interface RegexPatternSet.Builder

    • Method Detail

      • name

        RegexPatternSet.Builder name​(String name)

        The name of the set. You cannot change the name after you create the set.

        Parameters:
        name - The name of the set. You cannot change the name after you create the set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • id

        RegexPatternSet.Builder id​(String id)

        A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.

        Parameters:
        id - A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • arn

        RegexPatternSet.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the entity.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the entity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        RegexPatternSet.Builder description​(String description)

        A description of the set that helps with identification.

        Parameters:
        description - A description of the set that helps with identification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regularExpressionList

        RegexPatternSet.Builder regularExpressionList​(Collection<Regex> regularExpressionList)

        The regular expression patterns in the set.

        Parameters:
        regularExpressionList - The regular expression patterns in the set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regularExpressionList

        RegexPatternSet.Builder regularExpressionList​(Regex... regularExpressionList)

        The regular expression patterns in the set.

        Parameters:
        regularExpressionList - The regular expression patterns in the set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regularExpressionList

        RegexPatternSet.Builder regularExpressionList​(Consumer<Regex.Builder>... regularExpressionList)

        The regular expression patterns in the set.

        This is a convenience method that creates an instance of the Regex.Builder avoiding the need to create one manually via Regex.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #regularExpressionList(List).

        Parameters:
        regularExpressionList - a consumer that will call methods on Regex.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #regularExpressionList(java.util.Collection)