Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.dottydingo.hyperion.client.builder;
 
 
 
public class CreateRequestBuilder<T extends ApiObject<ID>,ID extends Serializableextends RequestBuilder<T,ID>
    private T body;
    public CreateRequestBuilder(int versionClass<T> objectType,String entityName, T body)
    {
        super(versionobjectTypeentityName);
        this. = body;
    }
    public CreateRequestBuilder<T, ID> returnFields(String... fields)
    {
        setParameter("fields",join(fields));
        return this;
    }
    @Override
    public CreateRequestBuilder<T, ID> addParameter(String nameString value)
    {
        super.addParameter(namevalue);
        return this;
    }
    @Override
    public CreateRequestBuilder<T, ID> setParameter(String nameString value)
    {
        super.setParameter(namevalue);
        return this;
    }
    @Override
    public CreateRequestBuilder<T, ID> addHeader(String nameString value)
    {
        super.addHeader(namevalue);
        return this;
    }
    @Override
    public CreateRequestBuilder<T, ID> setHeader(String nameString value)
    {
        super.setHeader(namevalue);
        return this;
    }
    @Override
    public CreateRequestBuilder<T, ID> withHeaderFactory(HeaderFactory headerFactory)
    {
        super.withHeaderFactory(headerFactory);
        return this;
    }
    @Override
    public CreateRequestBuilder<T, ID> withParameterFactory(ParameterFactory parameterFactory)
    {
        super.withParameterFactory(parameterFactory);
        return this;
    }
    @Override
    public Request<T> build()
    {
        Request<T> request = super.build();
        request.setRequestBody();
        request.setRequestMethod(.);
        return request;
    }
    public T execute(HyperionClient client)
    {
        return client.create(build());
    }
New to GrepCode? Check out our FAQ X