public static class JiraAuthenticationResponse.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private String |
action |
private Integer |
apiUpgradedToVersion |
private Integer |
apiVersion |
private Integer |
apiVersionUpgradeSuggestion |
private String |
errorMessage |
private String |
message |
private boolean |
sameUser |
private JiraAuthenticationResponse.AuthenticationResponse |
status |
private String |
url |
private String |
username |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JiraAuthenticationResponse |
build() |
private String |
getActionToFixError(boolean sameUser) |
JiraAuthenticationResponse.Builder |
withApiUpgraded(int version) |
JiraAuthenticationResponse.Builder |
withAPIVersion(Integer apiVersion) |
JiraAuthenticationResponse.Builder |
withErrorMessage(String errorMessageHtml)
Sets the error message.
|
JiraAuthenticationResponse.Builder |
withMessage(String message) |
JiraAuthenticationResponse.Builder |
withSameUser(boolean sameUser) |
JiraAuthenticationResponse.Builder |
withStatus(JiraAuthenticationResponse.AuthenticationResponse status) |
JiraAuthenticationResponse.Builder |
withSuggestUpgrade(int commonSupportedVersion) |
JiraAuthenticationResponse.Builder |
withUrl(String url) |
JiraAuthenticationResponse.Builder |
withUsername(String username) |
private String username
private JiraAuthenticationResponse.AuthenticationResponse status
private Integer apiVersion
private Integer apiVersionUpgradeSuggestion
private Integer apiUpgradedToVersion
private transient String url
private String action
private String errorMessage
private String message
private boolean sameUser
public JiraAuthenticationResponse build()
public JiraAuthenticationResponse.Builder withUsername(String username)
public JiraAuthenticationResponse.Builder withStatus(JiraAuthenticationResponse.AuthenticationResponse status)
public JiraAuthenticationResponse.Builder withAPIVersion(Integer apiVersion)
public JiraAuthenticationResponse.Builder withUrl(String url)
public JiraAuthenticationResponse.Builder withErrorMessage(String errorMessageHtml)
public JiraAuthenticationResponse.Builder withMessage(String message)
public JiraAuthenticationResponse.Builder withSameUser(boolean sameUser)
public JiraAuthenticationResponse.Builder withSuggestUpgrade(int commonSupportedVersion)
public JiraAuthenticationResponse.Builder withApiUpgraded(int version)
private String getActionToFixError(boolean sameUser)
Copyright © 2020 Play SQL. All rights reserved.