com.paypal.sdk.models.VenmoWalletAttributesResponse Maven / Gradle / Ivy
/*
* PaypalServerSDKLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.paypal.sdk.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for VenmoWalletAttributesResponse type.
*/
public class VenmoWalletAttributesResponse {
private VaultResponse vault;
/**
* Default constructor.
*/
public VenmoWalletAttributesResponse() {
}
/**
* Initialization constructor.
* @param vault VaultResponse value for vault.
*/
public VenmoWalletAttributesResponse(
VaultResponse vault) {
this.vault = vault;
}
/**
* Getter for Vault.
* The details about a saved payment source.
* @return Returns the VaultResponse
*/
@JsonGetter("vault")
@JsonInclude(JsonInclude.Include.NON_NULL)
public VaultResponse getVault() {
return vault;
}
/**
* Setter for Vault.
* The details about a saved payment source.
* @param vault Value for VaultResponse
*/
@JsonSetter("vault")
public void setVault(VaultResponse vault) {
this.vault = vault;
}
/**
* Converts this VenmoWalletAttributesResponse into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "VenmoWalletAttributesResponse [" + "vault=" + vault + "]";
}
/**
* Builds a new {@link VenmoWalletAttributesResponse.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link VenmoWalletAttributesResponse.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.vault(getVault());
return builder;
}
/**
* Class to build instances of {@link VenmoWalletAttributesResponse}.
*/
public static class Builder {
private VaultResponse vault;
/**
* Setter for vault.
* @param vault VaultResponse value for vault.
* @return Builder
*/
public Builder vault(VaultResponse vault) {
this.vault = vault;
return this;
}
/**
* Builds a new {@link VenmoWalletAttributesResponse} object using the set fields.
* @return {@link VenmoWalletAttributesResponse}
*/
public VenmoWalletAttributesResponse build() {
return new VenmoWalletAttributesResponse(vault);
}
}
}