Lombok @Getter and @Setter with AccessLevels

The generated getter/setter method will be public unless you explicitly specify an AccessLevel, as shown in the example below. Legal access levels are PUBLIC, PROTECTED, PACKAGE, and PRIVATE.

  @Setter(AccessLevel.PROTECTEDprivate String name;

creates this setter:

protected void setName(String name) {    this.name = name;  }
package sample.lombok;import lombok.AccessLevel;import lombok.Getter;public class Main {    @Getter(AccessLevel.PRIVATE)    private String value;}

Project lombok Accesslevel
Project lombok Accesslevel

You can see getValue() is private.