All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.org.consumerdatastandards.holder.model.banking.RequestAccountIdsData Maven / Gradle / Ivy

The newest version!
package au.org.consumerdatastandards.holder.model.banking;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
import java.util.List;

@ApiModel
public class RequestAccountIdsData  {

    /**
     * Get accountIds
     */
    
    private List accountIds;

    public RequestAccountIdsData accountIds(List accountIds) {
        this.accountIds = accountIds;
        return this;
    }

    public RequestAccountIdsData addItem(String accountIdsItem) {
        this.accountIds.add(accountIdsItem);
        return this;
    }

    @ApiModelProperty(required = true)
    public List getAccountIds() {
        return accountIds;
    }

    public void setAccountIds(List accountIds) {
        this.accountIds = accountIds;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        RequestAccountIdsData requestAccountIdsData = (RequestAccountIdsData) o;
        return Objects.equals(this.accountIds, requestAccountIdsData.accountIds);
    }

    @Override
    public int hashCode() {
        return Objects.hash(
            accountIds);
    }

    @Override
    public String toString() {
        return "class RequestAccountIdsData {\n" +
            "   accountIds: " + toIndentedString(accountIds) + "\n" + 
            "}";
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy