![JAR search and dependency download from the Maven repository](/logo.png)
org.qas.qtest.api.services.project.model.UpdateSystemFieldRequest 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;
/**
* UpdateSystemFieldRequest
*
* @author Dzung Nguyen
* @version $Id UpdateSystemFieldRequest 2014-07-11 01:13:30z dungvnguyen $
* @since 1.0
*/
public final class UpdateSystemFieldRequest extends ApiServiceRequest {
//~ class properties ========================================================
private Long projectId;
private Long objectId;
private ObjectType objectType;
private Field field;
//~ 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 UpdateSystemFieldRequest} instance.
*/
public UpdateSystemFieldRequest withProjectId(Long projectId) {
setProjectId(projectId);
return this;
}
/**
* @return the object identifier.
*/
public Long getObjectId() {
return objectId;
}
/**
* Sets the object identifier.
*
* @param objectId the given field identifier value to set.
*/
public void setObjectId(Long objectId) {
this.objectId = objectId;
}
/**
* Sets the field identifier.
*
* @param fieldId the given field identifier value to set.
* @return the {@link UpdateSystemFieldRequest} instance.
*/
public UpdateSystemFieldRequest withFieldId(Long fieldId) {
setObjectId(fieldId);
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 UpdateSystemFieldRequest} instance.
*/
public UpdateSystemFieldRequest withObjectType(ObjectType objectType) {
setObjectType(objectType);
return this;
}
/**
* @return the field object.
*/
public Field getField() {
return field;
}
/**
* Sets the field object.
*
* @param field the given field object to set.
*/
public void setField(Field field) {
this.field = field;
}
/**
* Sets the field object.
*
* @param field the given field object to set.
* @return current {@link UpdateSystemFieldRequest} instance.
*/
public UpdateSystemFieldRequest withField(Field field) {
setField(field);
return this;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("UpdateSystemFieldRequest{\n");
sb.append("\tprojectId: ").append(projectId).append(", \n");
sb.append("\tobjectId: ").append(objectId).append(", \n");
sb.append("\tobjectType: ").append(objectType).append(", \n");
sb.append("\tfield: \n").append(field).append("\n");
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy