![JAR search and dependency download from the Maven repository](/logo.png)
org.qas.qtest.api.services.project.model.UpdateCustomFieldRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtest-sdk-java Show documentation
Show all versions of qtest-sdk-java Show documentation
A java SDK client wrap qTest REST API
The newest version!
package org.qas.qtest.api.services.project.model;
import org.qas.api.ApiServiceRequest;
import org.qas.qtest.api.internal.model.Field;
import org.qas.qtest.api.internal.model.ObjectType;
import java.util.List;
/**
* UpdateSystemFieldRequest
*
* @author Dzung Nguyen
* @version $Id UpdateSystemFieldRequest 2014-07-11 01:13:30z dungvnguyen $
* @since 1.0
*/
public final class UpdateCustomFieldRequest extends ApiServiceRequest {
//~ class properties ========================================================
private Long projectId;
private ObjectType objectType;
private List fields;
//~ class members ===========================================================
/**
* @return the project identifier.
*/
public Long getProjectId() {
return projectId;
}
/**
* Sets project identifier.
*
* @param projectId the given project identifier to set.
*/
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
/**
* Sets the project identifier and return current instance.
*
* @param projectId the given project identifier to set.
* @return current {@link UpdateCustomFieldRequest} instance.
*/
public UpdateCustomFieldRequest withProjectId(Long projectId) {
setProjectId(projectId);
return this;
}
/**
* @return the object type.
*/
public ObjectType getObjectType() {
return objectType;
}
/**
* Sets the object type.
*
* @param objectType the given object type to set.
*/
public void setObjectType(ObjectType objectType) {
this.objectType = objectType;
}
/**
* Sets the object type and return current instance.
*
* @param objectType the given object type to set.
* @return current {@link UpdateCustomFieldRequest} instance.
*/
public UpdateCustomFieldRequest withObjectType(ObjectType objectType) {
setObjectType(objectType);
return this;
}
/**
* @return the field object.
*/
public List getFields() {
return fields;
}
/**
* Sets the field object.
*
* @param fields the given field object to set.
*/
public void setField(List fields) {
this.fields = fields;
}
/**
* Sets the field object.
*
* @param fields the given field object to set.
* @return current {@link UpdateCustomFieldRequest} instance.
*/
public UpdateCustomFieldRequest withFields(List fields) {
setField(fields);
return this;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("UpdateSystemFieldRequest{\n");
sb.append("\tprojectId: ").append(projectId).append(", \n");
sb.append("\tobjectType: ").append(objectType).append(", \n");
sb.append("\tfields: \n").append(fields).append("\n");
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy