github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/ServerVariable.mustache (about) 1 package {{invokerPackage}}; 2 3 import java.util.HashSet; 4 5 /** 6 * Representing a Server Variable for server URL template substitution. 7 */ 8 public class ServerVariable { 9 public String description; 10 public String defaultValue; 11 public HashSet<String> enumValues = null; 12 13 /** 14 * @param description A description for the server variable. 15 * @param defaultValue The default value to use for substitution. 16 * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. 17 */ 18 public ServerVariable(String description, String defaultValue, HashSet<String> enumValues) { 19 this.description = description; 20 this.defaultValue = defaultValue; 21 this.enumValues = enumValues; 22 } 23 }