com.geotab.http.request.param.EntityParameters Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.http.request.param;
import com.geotab.model.entity.Entity;
import com.geotab.model.login.Credentials;
import com.geotab.model.search.Search;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* Used for Add, Set, Remove request methods, where the targeted entity needs to be provided.
*/
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class EntityParameters extends AuthenticatedParameters {
private Entity entity;
@Builder(builderMethodName = "entityParamsBuilder")
public EntityParameters(String typeName, Integer resultsLimit,
Credentials credentials, Entity entity) {
super(typeName, resultsLimit, credentials);
this.entity = entity;
}
}