package com.hbc.svc.sundial.v2.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; import java.lang.String; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 2.0.0-dev * User agent: apibuilder app.apibuilder.io/hbc/svc-sundial/2.0.0-dev/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * Pager Duty integration */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Pagerduty implements Notification { @NotNull protected String serviceKey; @NotNull protected Integer numConsecutiveFailures; @NotNull protected String apiUrl; public Pagerduty(String serviceKey, Integer numConsecutiveFailures, String apiUrl) { this.serviceKey = serviceKey; this.numConsecutiveFailures = numConsecutiveFailures; this.apiUrl = apiUrl; } public Pagerduty() { } public String getServiceKey() { return serviceKey; } public void setServiceKey(String serviceKey) { this.serviceKey = serviceKey; } public Integer getNumConsecutiveFailures() { return numConsecutiveFailures; } public void setNumConsecutiveFailures(Integer numConsecutiveFailures) { this.numConsecutiveFailures = numConsecutiveFailures; } public String getApiUrl() { return apiUrl; } public void setApiUrl(String apiUrl) { this.apiUrl = apiUrl; } }