|
| 1 | +/* |
| 2 | + * Configuration API |
| 3 | + * |
| 4 | + * The version of the OpenAPI document: 2 |
| 5 | + * |
| 6 | + * |
| 7 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 8 | + * https://openapi-generator.tech |
| 9 | + * Do not edit the class manually. |
| 10 | + */ |
| 11 | + |
| 12 | + |
| 13 | +package com.adyen.model.balanceplatform; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import java.util.Map; |
| 18 | +import java.util.HashMap; |
| 19 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 20 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 21 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 22 | +import com.fasterxml.jackson.annotation.JsonTypeName; |
| 23 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 24 | +import io.swagger.annotations.ApiModel; |
| 25 | +import io.swagger.annotations.ApiModelProperty; |
| 26 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 27 | +import com.fasterxml.jackson.core.JsonProcessingException; |
| 28 | + |
| 29 | + |
| 30 | +/** |
| 31 | + * AssociationDelegatedAuthenticationData |
| 32 | + */ |
| 33 | +@JsonPropertyOrder({ |
| 34 | + AssociationDelegatedAuthenticationData.JSON_PROPERTY_SDK_OUTPUT |
| 35 | +}) |
| 36 | + |
| 37 | +public class AssociationDelegatedAuthenticationData { |
| 38 | + public static final String JSON_PROPERTY_SDK_OUTPUT = "sdkOutput"; |
| 39 | + private String sdkOutput; |
| 40 | + |
| 41 | + public AssociationDelegatedAuthenticationData() { |
| 42 | + } |
| 43 | + |
| 44 | + /** |
| 45 | + * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. |
| 46 | + * |
| 47 | + * @param sdkOutput |
| 48 | + * @return the current {@code AssociationDelegatedAuthenticationData} instance, allowing for method chaining |
| 49 | + */ |
| 50 | + public AssociationDelegatedAuthenticationData sdkOutput(String sdkOutput) { |
| 51 | + this.sdkOutput = sdkOutput; |
| 52 | + return this; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. |
| 57 | + * @return sdkOutput |
| 58 | + */ |
| 59 | + @ApiModelProperty(required = true, value = "A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.") |
| 60 | + @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) |
| 61 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 62 | + public String getSdkOutput() { |
| 63 | + return sdkOutput; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. |
| 68 | + * |
| 69 | + * @param sdkOutput |
| 70 | + */ |
| 71 | + @JsonProperty(JSON_PROPERTY_SDK_OUTPUT) |
| 72 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 73 | + public void setSdkOutput(String sdkOutput) { |
| 74 | + this.sdkOutput = sdkOutput; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Return true if this AssociationDelegatedAuthenticationData object is equal to o. |
| 79 | + */ |
| 80 | + @Override |
| 81 | + public boolean equals(Object o) { |
| 82 | + if (this == o) { |
| 83 | + return true; |
| 84 | + } |
| 85 | + if (o == null || getClass() != o.getClass()) { |
| 86 | + return false; |
| 87 | + } |
| 88 | + AssociationDelegatedAuthenticationData associationDelegatedAuthenticationData = (AssociationDelegatedAuthenticationData) o; |
| 89 | + return Objects.equals(this.sdkOutput, associationDelegatedAuthenticationData.sdkOutput); |
| 90 | + } |
| 91 | + |
| 92 | + @Override |
| 93 | + public int hashCode() { |
| 94 | + return Objects.hash(sdkOutput); |
| 95 | + } |
| 96 | + |
| 97 | + @Override |
| 98 | + public String toString() { |
| 99 | + StringBuilder sb = new StringBuilder(); |
| 100 | + sb.append("class AssociationDelegatedAuthenticationData {\n"); |
| 101 | + sb.append(" sdkOutput: ").append(toIndentedString(sdkOutput)).append("\n"); |
| 102 | + sb.append("}"); |
| 103 | + return sb.toString(); |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Convert the given object to string with each line indented by 4 spaces |
| 108 | + * (except the first line). |
| 109 | + */ |
| 110 | + private String toIndentedString(Object o) { |
| 111 | + if (o == null) { |
| 112 | + return "null"; |
| 113 | + } |
| 114 | + return o.toString().replace("\n", "\n "); |
| 115 | + } |
| 116 | + |
| 117 | +/** |
| 118 | + * Create an instance of AssociationDelegatedAuthenticationData given an JSON string |
| 119 | + * |
| 120 | + * @param jsonString JSON string |
| 121 | + * @return An instance of AssociationDelegatedAuthenticationData |
| 122 | + * @throws JsonProcessingException if the JSON string is invalid with respect to AssociationDelegatedAuthenticationData |
| 123 | + */ |
| 124 | + public static AssociationDelegatedAuthenticationData fromJson(String jsonString) throws JsonProcessingException { |
| 125 | + return JSON.getMapper().readValue(jsonString, AssociationDelegatedAuthenticationData.class); |
| 126 | + } |
| 127 | +/** |
| 128 | + * Convert an instance of AssociationDelegatedAuthenticationData to an JSON string |
| 129 | + * |
| 130 | + * @return JSON string |
| 131 | + */ |
| 132 | + public String toJson() throws JsonProcessingException { |
| 133 | + return JSON.getMapper().writeValueAsString(this); |
| 134 | + } |
| 135 | +} |
0 commit comments