Class TwitterGeoFunctionProperties

java.lang.Object
org.springframework.cloud.fn.twitter.geo.TwitterGeoFunctionProperties

@ConfigurationProperties("twitter.geo") @Validated public class TwitterGeoFunctionProperties extends Object
Author:
Christian Tzolov
  • Constructor Details

    • TwitterGeoFunctionProperties

      public TwitterGeoFunctionProperties()
  • Method Details

    • getSearch

    • setSearch

      public void setSearch(TwitterGeoFunctionProperties.Search search)
    • getType

    • setType

      public void setType(TwitterGeoFunctionProperties.GeoType type)
    • getLocation

    • setLocation

      public void setLocation(TwitterGeoFunctionProperties.Location location)
    • getMaxResults

      public int getMaxResults()
    • setMaxResults

      public void setMaxResults(int maxResults)
    • getAccuracy

      public String getAccuracy()
    • setAccuracy

      public void setAccuracy(String accuracy)
    • getGranularity

      public String getGranularity()
    • setGranularity

      public void setGranularity(String granularity)
    • 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()