SearchOptionalParameter Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.websearch.models.SearchOptionalParameter

public class SearchOptionalParameter

The SearchOptionalParameter model.

Method Summary

Modifier and Type Method and Description
String acceptLanguage()

Get the acceptLanguage value.

Integer answerCount()

Get the answerCount value.

String clientId()

Get the clientId value.

String clientIp()

Get the clientIp value.

Integer count()

Get the count value.

String countryCode()

Get the countryCode value.

Freshness freshness()

Get the freshness value.

String location()

Get the location value.

String market()

Get the market value.

Integer offset()

Get the offset value.

String pragma()

Get the pragma value.

List<AnswerType> promote()

Get the promote value.

List<AnswerType> responseFilter()

Get the responseFilter value.

SafeSearch safeSearch()

Get the safeSearch value.

String setLang()

Get the setLang value.

Boolean textDecorations()

Get the textDecorations value.

TextFormat textFormat()

Get the textFormat value.

String userAgent()

Get the userAgent value.

SearchOptionalParameter withAcceptLanguage(String acceptLanguage)

Set the acceptLanguage value.

SearchOptionalParameter withAnswerCount(Integer answerCount)

Set the answerCount value.

SearchOptionalParameter withClientId(String clientId)

Set the clientId value.

SearchOptionalParameter withClientIp(String clientIp)

Set the clientIp value.

SearchOptionalParameter withCount(Integer count)

Set the count value.

SearchOptionalParameter withCountryCode(String countryCode)

Set the countryCode value.

SearchOptionalParameter withFreshness(Freshness freshness)

Set the freshness value.

SearchOptionalParameter withLocation(String location)

Set the location value.

SearchOptionalParameter withMarket(String market)

Set the market value.

SearchOptionalParameter withOffset(Integer offset)

Set the offset value.

SearchOptionalParameter withPragma(String pragma)

Set the pragma value.

SearchOptionalParameter withPromote(List<AnswerType> promote)

Set the promote value.

SearchOptionalParameter withResponseFilter(List<AnswerType> responseFilter)

Set the responseFilter value.

SearchOptionalParameter withSafeSearch(SafeSearch safeSearch)

Set the safeSearch value.

SearchOptionalParameter withSetLang(String setLang)

Set the setLang value.

SearchOptionalParameter withTextDecorations(Boolean textDecorations)

Set the textDecorations value.

SearchOptionalParameter withTextFormat(TextFormat textFormat)

Set the textFormat value.

SearchOptionalParameter withUserAgent(String userAgent)

Set the userAgent value.

Method Details

acceptLanguage

public String acceptLanguage()

Get the acceptLanguage value.

Returns:

the acceptLanguage value

answerCount

public Integer answerCount()

Get the answerCount value.

Returns:

the answerCount value

clientId

public String clientId()

Get the clientId value.

Returns:

the clientId value

clientIp

public String clientIp()

Get the clientIp value.

Returns:

the clientIp value

count

public Integer count()

Get the count value.

Returns:

the count value

countryCode

public String countryCode()

Get the countryCode value.

Returns:

the countryCode value

freshness

public Freshness freshness()

Get the freshness value.

Returns:

the freshness value

location

public String location()

Get the location value.

Returns:

the location value

market

public String market()

Get the market value.

Returns:

the market value

offset

public Integer offset()

Get the offset value.

Returns:

the offset value

pragma

public String pragma()

Get the pragma value.

Returns:

the pragma value

promote

public List promote()

Get the promote value.

Returns:

the promote value

responseFilter

public List responseFilter()

Get the responseFilter value.

Returns:

the responseFilter value

safeSearch

public SafeSearch safeSearch()

Get the safeSearch value.

Returns:

the safeSearch value

setLang

public String setLang()

Get the setLang value.

Returns:

the setLang value

textDecorations

public Boolean textDecorations()

Get the textDecorations value.

Returns:

the textDecorations value

textFormat

public TextFormat textFormat()

Get the textFormat value.

Returns:

the textFormat value

userAgent

public String userAgent()

Get the userAgent value.

Returns:

the userAgent value

withAcceptLanguage

public SearchOptionalParameter withAcceptLanguage(String acceptLanguage)

Set the acceptLanguage value.

Parameters:

acceptLanguage - the acceptLanguage value to set

Returns:

the SearchOptionalParameter object itself.

withAnswerCount

public SearchOptionalParameter withAnswerCount(Integer answerCount)

Set the answerCount value.

Parameters:

answerCount - the answerCount value to set

Returns:

the SearchOptionalParameter object itself.

withClientId

public SearchOptionalParameter withClientId(String clientId)

Set the clientId value.

Parameters:

clientId - the clientId value to set

Returns:

the SearchOptionalParameter object itself.

withClientIp

public SearchOptionalParameter withClientIp(String clientIp)

Set the clientIp value.

Parameters:

clientIp - the clientIp value to set

Returns:

the SearchOptionalParameter object itself.

withCount

public SearchOptionalParameter withCount(Integer count)

Set the count value.

Parameters:

count - the count value to set

Returns:

the SearchOptionalParameter object itself.

withCountryCode

public SearchOptionalParameter withCountryCode(String countryCode)

Set the countryCode value.

Parameters:

countryCode - the countryCode value to set

Returns:

the SearchOptionalParameter object itself.

withFreshness

public SearchOptionalParameter withFreshness(Freshness freshness)

Set the freshness value.

Parameters:

freshness - the freshness value to set

Returns:

the SearchOptionalParameter object itself.

withLocation

public SearchOptionalParameter withLocation(String location)

Set the location value.

Parameters:

location - the location value to set

Returns:

the SearchOptionalParameter object itself.

withMarket

public SearchOptionalParameter withMarket(String market)

Set the market value.

Parameters:

market - the market value to set

Returns:

the SearchOptionalParameter object itself.

withOffset

public SearchOptionalParameter withOffset(Integer offset)

Set the offset value.

Parameters:

offset - the offset value to set

Returns:

the SearchOptionalParameter object itself.

withPragma

public SearchOptionalParameter withPragma(String pragma)

Set the pragma value.

Parameters:

pragma - the pragma value to set

Returns:

the SearchOptionalParameter object itself.

withPromote

public SearchOptionalParameter withPromote(List promote)

Set the promote value.

Parameters:

promote - the promote value to set

Returns:

the SearchOptionalParameter object itself.

withResponseFilter

public SearchOptionalParameter withResponseFilter(List responseFilter)

Set the responseFilter value.

Parameters:

responseFilter - the responseFilter value to set

Returns:

the SearchOptionalParameter object itself.

withSafeSearch

public SearchOptionalParameter withSafeSearch(SafeSearch safeSearch)

Set the safeSearch value.

Parameters:

safeSearch - the safeSearch value to set

Returns:

the SearchOptionalParameter object itself.

withSetLang

public SearchOptionalParameter withSetLang(String setLang)

Set the setLang value.

Parameters:

setLang - the setLang value to set

Returns:

the SearchOptionalParameter object itself.

withTextDecorations

public SearchOptionalParameter withTextDecorations(Boolean textDecorations)

Set the textDecorations value.

Parameters:

textDecorations - the textDecorations value to set

Returns:

the SearchOptionalParameter object itself.

withTextFormat

public SearchOptionalParameter withTextFormat(TextFormat textFormat)

Set the textFormat value.

Parameters:

textFormat - the textFormat value to set

Returns:

the SearchOptionalParameter object itself.

withUserAgent

public SearchOptionalParameter withUserAgent(String userAgent)

Set the userAgent value.

Parameters:

userAgent - the userAgent value to set

Returns:

the SearchOptionalParameter object itself.

Applies to