Class TwitterGeoFunctionProperties
java.lang.Object
org.springframework.cloud.fn.twitter.geo.TwitterGeoFunctionProperties
@ConfigurationProperties("twitter.geo")
@Validated
public class TwitterGeoFunctionProperties
extends Object
- Author:
- Christian Tzolov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getType()
@jakarta.validation.constraints.AssertTrue(message="Either the IP or the Location must be set") boolean
@jakarta.validation.constraints.AssertTrue(message="The IP parameter is applicable only for \'Search\' GeoType") boolean
void
setAccuracy
(String accuracy) void
setGranularity
(String granularity) void
void
setMaxResults
(int maxResults) void
void
-
Constructor Details
-
TwitterGeoFunctionProperties
public TwitterGeoFunctionProperties()
-
-
Method Details
-
getSearch
-
setSearch
-
getType
-
setType
-
getLocation
-
setLocation
-
getMaxResults
public int getMaxResults() -
setMaxResults
public void setMaxResults(int maxResults) -
getAccuracy
-
setAccuracy
-
getGranularity
-
setGranularity
-
isAtLeastOne
@AssertTrue(message="Either the IP or the Location must be set") public @jakarta.validation.constraints.AssertTrue(message="Either the IP or the Location must be set") boolean isAtLeastOne() -
isIpUsedWithSearchGeoType
@AssertTrue(message="The IP parameter is applicable only for \'Search\' GeoType") public @jakarta.validation.constraints.AssertTrue(message="The IP parameter is applicable only for \'Search\' GeoType") boolean isIpUsedWithSearchGeoType()
-