package com.hubspot.singularity.config;

import javax.annotation.Nonnegative;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonProperty;

public class WebhookAuthConfiguration {
  @JsonProperty
  @NotNull
  private String authVerificationUrl = "";

  @JsonProperty
  @Nonnegative
  private long cacheValidationMs = 60000;

  @JsonProperty
  @NotNull
  private String defaultEmailDomain = "";

  public String getAuthVerificationUrl() {
    return authVerificationUrl;
  }

  public WebhookAuthConfiguration setAuthVerificationUrl(String authVerificationUrl) {
    this.authVerificationUrl = authVerificationUrl;
    return this;
  }

  public long getCacheValidationMs() {
    return cacheValidationMs;
  }

  public WebhookAuthConfiguration setCacheValidationMs(long cacheValidationMs) {
    this.cacheValidationMs = cacheValidationMs;
    return this;
  }

  public String getDefaultEmailDomain() {
    return defaultEmailDomain;
  }

  public WebhookAuthConfiguration setDefaultEmailDomain(String defaultEmailDomain) {
    this.defaultEmailDomain = defaultEmailDomain;
    return this;
  }
}

@@ -520,32 +520,12 @@
 lic 
-WebhookAuthConfiguration
+void
  set
@@ -626,33 +626,16 @@
 ionUrl;%0A
-    return this;%0A
   %7D%0A%0A  p
@@ -718,32 +718,12 @@
 lic 
-WebhookAuthConfiguration
+void
  set
@@ -814,33 +814,16 @@
 tionMs;%0A
-    return this;%0A
   %7D%0A%0A  p
@@ -910,32 +910,12 @@
 lic 
-WebhookAuthConfiguration
+void
  set
@@ -1016,25 +1016,8 @@
 in;%0A
-    return this;%0A
   %7D%0A

fix getter/setter