
de.adorsys.psd2.model.UpdatePsuAuthenticationResponse Maven / Gradle / Ivy
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Map;
import java.util.Objects;
/**
* Body of the JSON response for a successful update PSU Authentication request.
*/
@ApiModel(description = "Body of the JSON response for a successful update PSU Authentication request.")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2018-10-11T14:55" +
":45.627+02:00[Europe/Berlin]")
public class UpdatePsuAuthenticationResponse {
@JsonProperty("chosenScaMethod")
private ChosenScaMethod chosenScaMethod = null;
@JsonProperty("challengeData")
private ChallengeData challengeData = null;
@JsonProperty("scaMethods")
private ScaMethods scaMethods = null;
@JsonProperty("_links")
private Map _links = null;
@JsonProperty("scaStatus")
private ScaStatus scaStatus = null;
@JsonProperty("psuMessage")
private String psuMessage = null;
public UpdatePsuAuthenticationResponse chosenScaMethod(ChosenScaMethod chosenScaMethod) {
this.chosenScaMethod = chosenScaMethod;
return this;
}
/**
* Get chosenScaMethod
*
* @return chosenScaMethod
**/
@ApiModelProperty(value = "")
@Valid
public ChosenScaMethod getChosenScaMethod() {
return chosenScaMethod;
}
public void setChosenScaMethod(ChosenScaMethod chosenScaMethod) {
this.chosenScaMethod = chosenScaMethod;
}
public UpdatePsuAuthenticationResponse challengeData(ChallengeData challengeData) {
this.challengeData = challengeData;
return this;
}
/**
* Get challengeData
*
* @return challengeData
**/
@ApiModelProperty(value = "")
@Valid
public ChallengeData getChallengeData() {
return challengeData;
}
public void setChallengeData(ChallengeData challengeData) {
this.challengeData = challengeData;
}
public UpdatePsuAuthenticationResponse scaMethods(ScaMethods scaMethods) {
this.scaMethods = scaMethods;
return this;
}
/**
* Get scaMethods
*
* @return scaMethods
**/
@ApiModelProperty(value = "")
@Valid
public ScaMethods getScaMethods() {
return scaMethods;
}
public void setScaMethods(ScaMethods scaMethods) {
this.scaMethods = scaMethods;
}
public UpdatePsuAuthenticationResponse _links(Map _links) {
this._links = _links;
return this;
}
/**
* Get _links
*
* @return _links
**/
@ApiModelProperty(value = "")
@Valid
public Map getLinks() {
return _links;
}
public void setLinks(Map _links) {
this._links = _links;
}
public UpdatePsuAuthenticationResponse scaStatus(ScaStatus scaStatus) {
this.scaStatus = scaStatus;
return this;
}
/**
* Get scaStatus
*
* @return scaStatus
**/
@ApiModelProperty(required = true, value = "")
@NotNull
@Valid
public ScaStatus getScaStatus() {
return scaStatus;
}
public void setScaStatus(ScaStatus scaStatus) {
this.scaStatus = scaStatus;
}
public UpdatePsuAuthenticationResponse psuMessage(String psuMessage) {
this.psuMessage = psuMessage;
return this;
}
/**
* Get psuMessage
*
* @return psuMessage
**/
@ApiModelProperty(value = "")
public String getPsuMessage() {
return psuMessage;
}
public void setPsuMessage(String psuMessage) {
this.psuMessage = psuMessage;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdatePsuAuthenticationResponse updatePsuAuthenticationResponse = (UpdatePsuAuthenticationResponse) o;
return Objects.equals(this.chosenScaMethod, updatePsuAuthenticationResponse.chosenScaMethod) && Objects.equals(this.challengeData, updatePsuAuthenticationResponse.challengeData) && Objects.equals(this.scaMethods, updatePsuAuthenticationResponse.scaMethods) && Objects.equals(this._links, updatePsuAuthenticationResponse._links) && Objects.equals(this.scaStatus, updatePsuAuthenticationResponse.scaStatus) && Objects.equals(this.psuMessage, updatePsuAuthenticationResponse.psuMessage);
}
@Override
public int hashCode() {
return Objects.hash(chosenScaMethod, challengeData, scaMethods, _links, scaStatus, psuMessage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdatePsuAuthenticationResponse {\n");
sb.append(" chosenScaMethod: ").append(toIndentedString(chosenScaMethod)).append("\n");
sb.append(" challengeData: ").append(toIndentedString(challengeData)).append("\n");
sb.append(" scaMethods: ").append(toIndentedString(scaMethods)).append("\n");
sb.append(" _links: ").append(toIndentedString(_links)).append("\n");
sb.append(" scaStatus: ").append(toIndentedString(scaStatus)).append("\n");
sb.append(" psuMessage: ").append(toIndentedString(psuMessage)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy