1 public enum EmailEnum { 2 HOST("smtp.googlemail.com"), PORT("587"), 3 USERNAME("marcelo@gmail.com"),PASSWORD("secret"), 4 AUTHORIZED("mail.smtp.auth"), STARTTTS("mail.smtp.starttls.enable"), 5 TRUE("true"); 6 private String value; 7 private EmailEnum(String value) { 8 this.value = value; 9 } 10 11 public String getValue() { 12 return value; 13 } 14 }