Class SearchOptionalParameter
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.search.customsearch.models.SearchOptionalParameter
-
public class SearchOptionalParameter extends Object
The SearchOptionalParameter model.
-
-
Constructor Summary
Constructors Constructor Description SearchOptionalParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringacceptLanguage()Get the acceptLanguage value.StringclientId()Get the clientId value.StringclientIp()Get the clientIp value.Integercount()Get the count value.StringcountryCode()Get the countryCode value.Stringlocation()Get the location value.Stringmarket()Get the market value.Integeroffset()Get the offset value.SafeSearchsafeSearch()Get the safeSearch value.StringsetLang()Get the setLang value.BooleantextDecorations()Get the textDecorations value.TextFormattextFormat()Get the textFormat value.StringuserAgent()Get the userAgent value.SearchOptionalParameterwithAcceptLanguage(String acceptLanguage)Set the acceptLanguage value.SearchOptionalParameterwithClientId(String clientId)Set the clientId value.SearchOptionalParameterwithClientIp(String clientIp)Set the clientIp value.SearchOptionalParameterwithCount(Integer count)Set the count value.SearchOptionalParameterwithCountryCode(String countryCode)Set the countryCode value.SearchOptionalParameterwithLocation(String location)Set the location value.SearchOptionalParameterwithMarket(String market)Set the market value.SearchOptionalParameterwithOffset(Integer offset)Set the offset value.SearchOptionalParameterwithSafeSearch(SafeSearch safeSearch)Set the safeSearch value.SearchOptionalParameterwithSetLang(String setLang)Set the setLang value.SearchOptionalParameterwithTextDecorations(Boolean textDecorations)Set the textDecorations value.SearchOptionalParameterwithTextFormat(TextFormat textFormat)Set the textFormat value.SearchOptionalParameterwithUserAgent(String userAgent)Set the userAgent value.
-
-
-
Method Detail
-
acceptLanguage
public String acceptLanguage()
Get the acceptLanguage value.- Returns:
- the acceptLanguage value
-
withAcceptLanguage
public SearchOptionalParameter withAcceptLanguage(String acceptLanguage)
Set the acceptLanguage value.- Parameters:
acceptLanguage- the acceptLanguage value to set- Returns:
- the SearchOptionalParameter object itself.
-
userAgent
public String userAgent()
Get the userAgent value.- Returns:
- the userAgent value
-
withUserAgent
public SearchOptionalParameter withUserAgent(String userAgent)
Set the userAgent value.- Parameters:
userAgent- the userAgent value to set- Returns:
- the SearchOptionalParameter object itself.
-
clientId
public String clientId()
Get the clientId value.- Returns:
- the clientId value
-
withClientId
public SearchOptionalParameter withClientId(String clientId)
Set the clientId value.- Parameters:
clientId- the clientId value to set- Returns:
- the SearchOptionalParameter object itself.
-
clientIp
public String clientIp()
Get the clientIp value.- Returns:
- the clientIp value
-
withClientIp
public SearchOptionalParameter withClientIp(String clientIp)
Set the clientIp value.- Parameters:
clientIp- the clientIp value to set- Returns:
- the SearchOptionalParameter object itself.
-
location
public String location()
Get the location value.- Returns:
- the location value
-
withLocation
public SearchOptionalParameter withLocation(String location)
Set the location value.- Parameters:
location- the location value to set- Returns:
- the SearchOptionalParameter object itself.
-
countryCode
public String countryCode()
Get the countryCode value.- Returns:
- the countryCode value
-
withCountryCode
public SearchOptionalParameter withCountryCode(String countryCode)
Set the countryCode value.- Parameters:
countryCode- the countryCode value to set- Returns:
- the SearchOptionalParameter object itself.
-
count
public Integer count()
Get the count value.- Returns:
- the count value
-
withCount
public SearchOptionalParameter withCount(Integer count)
Set the count value.- Parameters:
count- the count value to set- Returns:
- the SearchOptionalParameter object itself.
-
market
public String market()
Get the market value.- Returns:
- the market value
-
withMarket
public SearchOptionalParameter withMarket(String market)
Set the market value.- Parameters:
market- the market value to set- Returns:
- the SearchOptionalParameter object itself.
-
offset
public Integer offset()
Get the offset value.- Returns:
- the offset value
-
withOffset
public SearchOptionalParameter withOffset(Integer offset)
Set the offset value.- Parameters:
offset- the offset value to set- Returns:
- the SearchOptionalParameter object itself.
-
safeSearch
public SafeSearch safeSearch()
Get the safeSearch value.- Returns:
- the safeSearch value
-
withSafeSearch
public SearchOptionalParameter withSafeSearch(SafeSearch safeSearch)
Set the safeSearch value.- Parameters:
safeSearch- the safeSearch value to set- Returns:
- the SearchOptionalParameter object itself.
-
setLang
public String setLang()
Get the setLang value.- Returns:
- the setLang value
-
withSetLang
public SearchOptionalParameter withSetLang(String setLang)
Set the setLang value.- Parameters:
setLang- the setLang value to set- Returns:
- the SearchOptionalParameter object itself.
-
textDecorations
public Boolean textDecorations()
Get the textDecorations value.- Returns:
- the textDecorations value
-
withTextDecorations
public SearchOptionalParameter withTextDecorations(Boolean textDecorations)
Set the textDecorations value.- Parameters:
textDecorations- the textDecorations value to set- Returns:
- the SearchOptionalParameter object itself.
-
textFormat
public TextFormat textFormat()
Get the textFormat value.- Returns:
- the textFormat value
-
withTextFormat
public SearchOptionalParameter withTextFormat(TextFormat textFormat)
Set the textFormat value.- Parameters:
textFormat- the textFormat value to set- Returns:
- the SearchOptionalParameter object itself.
-
-