Class GetGeoLocationRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.route53.model.GetGeoLocationRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class GetGeoLocationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

A complex type that contains information about the request to get a geo location.

See Also:
  • Constructor Details

    • GetGeoLocationRequest

      public GetGeoLocationRequest()
  • Method Details

    • setContinentCode

      public void setContinentCode(String continentCode)

      The code for a continent geo location. Note: only continent locations have a continent code.

      Valid values: AF | AN | AS | EU | OC | NA | SA

      Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

      Parameters:
      continentCode - The code for a continent geo location. Note: only continent locations have a continent code.

      Valid values: AF | AN | AS | EU | OC | NA | SA

      Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

    • getContinentCode

      public String getContinentCode()

      The code for a continent geo location. Note: only continent locations have a continent code.

      Valid values: AF | AN | AS | EU | OC | NA | SA

      Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

      Returns:
      The code for a continent geo location. Note: only continent locations have a continent code.

      Valid values: AF | AN | AS | EU | OC | NA | SA

      Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

    • withContinentCode

      public GetGeoLocationRequest withContinentCode(String continentCode)

      The code for a continent geo location. Note: only continent locations have a continent code.

      Valid values: AF | AN | AS | EU | OC | NA | SA

      Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

      Parameters:
      continentCode - The code for a continent geo location. Note: only continent locations have a continent code.

      Valid values: AF | AN | AS | EU | OC | NA | SA

      Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCountryCode

      public void setCountryCode(String countryCode)

      The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

      The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

      Parameters:
      countryCode - The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

      The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

    • getCountryCode

      public String getCountryCode()

      The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

      The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

      Returns:
      The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

      The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

    • withCountryCode

      public GetGeoLocationRequest withCountryCode(String countryCode)

      The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

      The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

      Parameters:
      countryCode - The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

      The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSubdivisionCode

      public void setSubdivisionCode(String subdivisionCode)

      The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

      Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

      Parameters:
      subdivisionCode - The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

      Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

    • getSubdivisionCode

      public String getSubdivisionCode()

      The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

      Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

      Returns:
      The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

      Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

    • withSubdivisionCode

      public GetGeoLocationRequest withSubdivisionCode(String subdivisionCode)

      The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

      Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

      Parameters:
      subdivisionCode - The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

      Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public GetGeoLocationRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: