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

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

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 SearchImagesEditorial extends AbstractApiRequest {

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

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


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

        return super.executeAsync();
    }

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

    public SearchImagesEditorial withArtists(Iterable values)
    {
        addArtists(values);
        return this;
    }

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

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

    public SearchImagesEditorial withCompositions(EnumSet values)
    {
        addCompositions(values);
        return this;
    }

    public SearchImagesEditorial withEditorialSegments(EnumSet values) {
        addEditorialSegments(values);
        return this;
    }

    public SearchImagesEditorial withEmbedContentOnly(Boolean value)
    {
        queryParams.put(Constants.EmbedContentOnlyParameterName, value);
        return this;
    }

    public SearchImagesEditorial withEndDate(String value) {
        queryParams.put(Constants.EndDateParameterName, value);
        return this;
    }

    public SearchImagesEditorial withEntityUris(Iterable values) {
        addEntityUris(values);
        return this;
    }

    public SearchImagesEditorial withEthnicity(EnumSet values)
    {
        addEthnicity(values);
        return this;
    }

    public SearchImagesEditorial withEventIds(Iterable values)
    {
        addEventIds(values);
        return this;
    }

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

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

    public SearchImagesEditorial withFileTypes(EnumSet values)
    {
        addFileTypes(values);
        return this;
    }

    public SearchImagesEditorial withGraphicalStyles(EnumSet values)
    {
        addGraphicalStyles(values);
        return this;
    }

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

    public SearchImagesEditorial withMinimumQualityRank(MinimumQualityRank value) {
        queryParams.put(Constants.MinimumQualityRankParameterName, value);
        return this;
    }

    public SearchImagesEditorial withMinimumSize(MinimumSize value)
    {
        queryParams.put(Constants.MinimumSizeParameterName, value);
        return this;
    }

    public SearchImagesEditorial withNumberOfPeople(EnumSet values)
    {
        addNumberOfPeople(values);
        return this;
    }

    public SearchImagesEditorial withOrientations(EnumSet values)
    {
        addOrientations(values);
        return this;
    }

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

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

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

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

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

    public SearchImagesEditorial withSpecificPeople(Iterable values)
    {
        addSpecificPeople(values);
        return this;
    }

    public SearchImagesEditorial withStartDate(String value) {
        queryParams.put(Constants.StartDateParameterName, value);
        return this;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy