net.anotheria.anosite.gen.anoaccessconfiguration.data.RoleBuilder Maven / Gradle / Ivy
/**
********************************************************************************
*** RoleBuilder.java ***
*** generated by AnoSiteGenerator (ASG), Version: 3.2.2 ***
*** Copyright (C) 2005 - 2023 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.anoaccessconfiguration.data;
import net.anotheria.asg.data.Builder;
import java.util.List;
public class RoleBuilder implements Builder{
protected String name;
protected List permissions;
protected List contextInitializers;
protected String description;
/**
* Sets the value of the name attribute.
*/
public RoleBuilder name(String aValue){
name = aValue;
return this;
}
/**
* Sets the value of the permissions attribute.
*/
public RoleBuilder permissions(List aValue){
permissions = aValue;
return this;
}
/**
* Sets the value of the contextInitializers attribute.
*/
public RoleBuilder contextInitializers(List aValue){
contextInitializers = aValue;
return this;
}
/**
* Sets the value of the description attribute.
*/
public RoleBuilder description(String aValue){
description = aValue;
return this;
}
public Role build(){
return RoleFactory.createRole(this);
}
}