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

com.gettyimages.api.Search.SearchVideosCreative Maven / Gradle / Ivy

There is a newer version: 3.1.9
Show newest version
package com.gettyimages.api.Search;

import com.gettyimages.api.AbstractApiRequest;
import com.gettyimages.api.Constants;
import com.gettyimages.api.Credentials;
import com.gettyimages.api.Filters.*;
import com.gettyimages.api.SdkException;

import java.util.EnumSet;

public class SearchVideosCreative extends AbstractApiRequest {

    private SearchVideosCreative(Credentials credentials, String baseUrl) {
        super(credentials, baseUrl);
    }

    public static SearchVideosCreative GetInstance(Credentials credentials, String baseUrl) {
        return new SearchVideosCreative(credentials, baseUrl);
    }


    public String executeAsync() throws SdkException {
        method = "GET";
        path = "/search/videos/creative";

        return super.executeAsync();
    }

    public SearchVideosCreative withAcceptLanguage(String value)
    {
        headers.put(Constants.AcceptLanguageString, value);
        return this;
    }

    public SearchVideosCreative withAgeOfPeople(EnumSet values)
    {
        addAgeOfPeople(values);
        return this;
    }

    public SearchVideosCreative withCollectionCodes(Iterable values)
    {
        addCollectionCodes(values);
        return this;
    }

    public SearchVideosCreative withCollectionFilterType(CollectionFilter value)
    {
        queryParams.put(Constants.CollectionsFilterTypeParameterName, value);
        return this;
    }

    public SearchVideosCreative withExcludeNudity(Boolean value)
    {
        queryParams.put(Constants.ExcludeNudityParameterName, value);
        return this;
    }

    public SearchVideosCreative withResponseFields(Iterable values)
    {
        addResponseFields(values);
        return this;
    }

    public SearchVideosCreative withFormatAvailable(FormatAvailable value)
    {
        queryParams.put(Constants.FormatAvailableParameterName, value);
        return this;
    }

    public SearchVideosCreative withFrameRates(EnumSet values)
    {
        addFrameRates(values);
        return this;
    }

    public SearchVideosCreative withKeywordIds(Iterable values)
    {
        addKeywordIds(values);
        return this;
    }

    public SearchVideosCreative withLicenseModels(EnumSet values)
    {
        addLicenseModels(values);
        return this;
    }

    public SearchVideosCreative withPage(Integer value)
    {
        queryParams.put(Constants.PageParameterName, value);
        return this;
    }

    public SearchVideosCreative withPageSize(Integer value)
    {
        queryParams.put(Constants.PageSizeString, value);
        return this;
    }

    public SearchVideosCreative withPhrase(String value)
    {
        queryParams.put(Constants.PhraseParameterName, value);
        return this;
    }

    public SearchVideosCreative withProductTypes(EnumSet values)
    {
        addProductTypes(values);
        return this;
    }

    public SearchVideosCreative withSortOrder(SortOrder value)
    {
        queryParams.put(Constants.SortOrderParameterName, value);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy