com.yodlee.api.model.ProvidersDataset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yodlee-api-model-beta Show documentation
Show all versions of yodlee-api-model-beta Show documentation
Yodlee API Model Beta is the stage version
/**
* Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
*
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
package com.yodlee.api.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModelProperty;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({"name", "attributes"})
public class ProvidersDataset extends AbstractDataset {
@ApiModelProperty(value = "The name of the dataset attribute suported by the provider." + "
"//
+ "Endpoints:"//
+ ""//
+ "- GET providers/{providerId}
"//
+ "- GET providers
"//
+ "
")
@JsonProperty("attribute")
private List attributes;
/**
* The name of the dataset attribute suported by the provider. *
*
* Endpoints:
*
* - GET providers/{providerId}
* - GET providers
*
*
* @return attribute
*/
public List getAttributes() {
return attributes == null ? null : Collections.unmodifiableList(attributes);
}
public void setAttributes(List attributes) {
this.attributes = attributes;
}
public boolean addAttribute(Attribute attribute) {
if (attribute == null) {
return false;
}
if (attributes == null) {
attributes = new ArrayList<>();
}
return attributes.add(attribute);
}
public boolean removeAttribute(Attribute attribute) {
if (attributes != null) {
return attributes.remove(attribute);
}
return false;
}
public void clearAttributes() {
if (attributes != null) {
attributes.clear();
}
}
@Override
public String toString() {
return "ProvidersDataset [attributes=" + attributes + "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy