com.capitalone.dashboard.webhook.settings.GitHubWebHookSettings Maven / Gradle / Ivy
package com.capitalone.dashboard.webhook.settings;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@ConfigurationPropertiesBinding
public class GitHubWebHookSettings {
private String token;
private int commitTimestampOffset;
private List notBuiltCommits;
private String userAgent;
private List githubEnterpriseHosts;
@Value("${webHook.gitHub.maxRetries:5}")
private int maxRetries;
public List getGithubEnterpriseHosts() { return githubEnterpriseHosts; }
public void setGithubEnterpriseHosts(List githubEnterpriseHosts) { this.githubEnterpriseHosts = githubEnterpriseHosts; }
public String getUserAgent() { return userAgent; }
public void setUserAgent(String userAgent) { this.userAgent = userAgent; }
public String getToken() { return token; }
public void setToken(String token) { this.token = token; }
public int getCommitTimestampOffset() { return commitTimestampOffset; }
public void setCommitTimestampOffset(int commitTimestampOffset) { this.commitTimestampOffset = commitTimestampOffset; }
public List getNotBuiltCommits() { return notBuiltCommits; }
public void setNotBuiltCommits(List notBuiltCommits) { this.notBuiltCommits = notBuiltCommits; }
public int getMaxRetries() { return maxRetries; }
public void setMaxRetries(int maxRetries) { this.maxRetries = maxRetries; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy