Class Attributes.AttributeBuilder

java.lang.Object
org.springframework.restdocs.snippet.Attributes.AttributeBuilder
Enclosing class:
Attributes

public static final class Attributes.AttributeBuilder extends Object
A simple builder for an attribute (key-value pair).
  • Method Details

    • value

      public Attributes.Attribute value(Object value)
      Configures the value of the attribute.
      Parameters:
      value - the attribute's value
      Returns:
      a newly created Attribute