TrendingOptionalParameter Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.newssearch.models.TrendingOptionalParameter

public class TrendingOptionalParameter

The TrendingOptionalParameter model.

Constructor Summary

Constructor Description
TrendingOptionalParameter()

Method Summary

Modifier and Type Method and Description
java.lang.String acceptLanguage()

Get the acceptLanguage value.

java.lang.String clientId()

Get the clientId value.

java.lang.String clientIp()

Get the clientIp value.

java.lang.Integer count()

Get the count value.

java.lang.String countryCode()

Get the countryCode value.

java.lang.String location()

Get the location value.

java.lang.String market()

Get the market value.

java.lang.Integer offset()

Get the offset value.

SafeSearch safeSearch()

Get the safeSearch value.

java.lang.String setLang()

Get the setLang value.

java.lang.Long since()

Get the since value.

java.lang.String sortBy()

Get the sortBy value.

java.lang.Boolean textDecorations()

Get the textDecorations value.

TextFormat textFormat()

Get the textFormat value.

java.lang.String userAgent()

Get the userAgent value.

TrendingOptionalParameter withAcceptLanguage(String acceptLanguage)

Set the acceptLanguage value.

TrendingOptionalParameter withClientId(String clientId)

Set the clientId value.

TrendingOptionalParameter withClientIp(String clientIp)

Set the clientIp value.

TrendingOptionalParameter withCount(Integer count)

Set the count value.

TrendingOptionalParameter withCountryCode(String countryCode)

Set the countryCode value.

TrendingOptionalParameter withLocation(String location)

Set the location value.

TrendingOptionalParameter withMarket(String market)

Set the market value.

TrendingOptionalParameter withOffset(Integer offset)

Set the offset value.

TrendingOptionalParameter withSafeSearch(SafeSearch safeSearch)

Set the safeSearch value.

TrendingOptionalParameter withSetLang(String setLang)

Set the setLang value.

TrendingOptionalParameter withSince(Long since)

Set the since value.

TrendingOptionalParameter withSortBy(String sortBy)

Set the sortBy value.

TrendingOptionalParameter withTextDecorations(Boolean textDecorations)

Set the textDecorations value.

TrendingOptionalParameter withTextFormat(TextFormat textFormat)

Set the textFormat value.

TrendingOptionalParameter withUserAgent(String userAgent)

Set the userAgent value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TrendingOptionalParameter

public TrendingOptionalParameter()

Method Details

acceptLanguage

public String acceptLanguage()

Get the acceptLanguage value.

Returns:

the acceptLanguage 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

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

safeSearch

public SafeSearch safeSearch()

Get the safeSearch value.

Returns:

the safeSearch value

setLang

public String setLang()

Get the setLang value.

Returns:

the setLang value

since

public Long since()

Get the since value.

Returns:

the since value

sortBy

public String sortBy()

Get the sortBy value.

Returns:

the sortBy 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 TrendingOptionalParameter withAcceptLanguage(String acceptLanguage)

Set the acceptLanguage value.

Parameters:

acceptLanguage - the acceptLanguage value to set

Returns:

the TrendingOptionalParameter object itself.

withClientId

public TrendingOptionalParameter withClientId(String clientId)

Set the clientId value.

Parameters:

clientId - the clientId value to set

Returns:

the TrendingOptionalParameter object itself.

withClientIp

public TrendingOptionalParameter withClientIp(String clientIp)

Set the clientIp value.

Parameters:

clientIp - the clientIp value to set

Returns:

the TrendingOptionalParameter object itself.

withCount

public TrendingOptionalParameter withCount(Integer count)

Set the count value.

Parameters:

count - the count value to set

Returns:

the TrendingOptionalParameter object itself.

withCountryCode

public TrendingOptionalParameter withCountryCode(String countryCode)

Set the countryCode value.

Parameters:

countryCode - the countryCode value to set

Returns:

the TrendingOptionalParameter object itself.

withLocation

public TrendingOptionalParameter withLocation(String location)

Set the location value.

Parameters:

location - the location value to set

Returns:

the TrendingOptionalParameter object itself.

withMarket

public TrendingOptionalParameter withMarket(String market)

Set the market value.

Parameters:

market - the market value to set

Returns:

the TrendingOptionalParameter object itself.

withOffset

public TrendingOptionalParameter withOffset(Integer offset)

Set the offset value.

Parameters:

offset - the offset value to set

Returns:

the TrendingOptionalParameter object itself.

withSafeSearch

public TrendingOptionalParameter withSafeSearch(SafeSearch safeSearch)

Set the safeSearch value.

Parameters:

safeSearch - the safeSearch value to set

Returns:

the TrendingOptionalParameter object itself.

withSetLang

public TrendingOptionalParameter withSetLang(String setLang)

Set the setLang value.

Parameters:

setLang - the setLang value to set

Returns:

the TrendingOptionalParameter object itself.

withSince

public TrendingOptionalParameter withSince(Long since)

Set the since value.

Parameters:

since - the since value to set

Returns:

the TrendingOptionalParameter object itself.

withSortBy

public TrendingOptionalParameter withSortBy(String sortBy)

Set the sortBy value.

Parameters:

sortBy - the sortBy value to set

Returns:

the TrendingOptionalParameter object itself.

withTextDecorations

public TrendingOptionalParameter withTextDecorations(Boolean textDecorations)

Set the textDecorations value.

Parameters:

textDecorations - the textDecorations value to set

Returns:

the TrendingOptionalParameter object itself.

withTextFormat

public TrendingOptionalParameter withTextFormat(TextFormat textFormat)

Set the textFormat value.

Parameters:

textFormat - the textFormat value to set

Returns:

the TrendingOptionalParameter object itself.

withUserAgent

public TrendingOptionalParameter withUserAgent(String userAgent)

Set the userAgent value.

Parameters:

userAgent - the userAgent value to set

Returns:

the TrendingOptionalParameter object itself.

Applies to