Class: Aws::Pinpoint::Types::EndpointLocation

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-pinpoint/types.rb

Overview

Note:

When making an API call, you may pass EndpointLocation data as a hash:

{
  city: "__string",
  country: "__string",
  latitude: 1.0,
  longitude: 1.0,
  postal_code: "__string",
  region: "__string",
}

Specifies geographic information about an endpoint.

Instance Attribute Summary collapse

Instance Attribute Details

#cityString

The name of the city where the endpoint is located.

Returns:

  • (String)


6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'lib/aws-sdk-pinpoint/types.rb', line 6372

class EndpointLocation < Struct.new(
  :city,
  :country,
  :latitude,
  :longitude,
  :postal_code,
  :region)
  include Aws::Structure
end

#countryString

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the endpoint is located. For example, US for the United States.

Returns:

  • (String)


6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'lib/aws-sdk-pinpoint/types.rb', line 6372

class EndpointLocation < Struct.new(
  :city,
  :country,
  :latitude,
  :longitude,
  :postal_code,
  :region)
  include Aws::Structure
end

#latitudeFloat

The latitude coordinate of the endpoint location, rounded to one decimal place.

Returns:

  • (Float)


6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'lib/aws-sdk-pinpoint/types.rb', line 6372

class EndpointLocation < Struct.new(
  :city,
  :country,
  :latitude,
  :longitude,
  :postal_code,
  :region)
  include Aws::Structure
end

#longitudeFloat

The longitude coordinate of the endpoint location, rounded to one decimal place.

Returns:

  • (Float)


6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'lib/aws-sdk-pinpoint/types.rb', line 6372

class EndpointLocation < Struct.new(
  :city,
  :country,
  :latitude,
  :longitude,
  :postal_code,
  :region)
  include Aws::Structure
end

#postal_codeString

The postal or ZIP code for the area where the endpoint is located.

Returns:

  • (String)


6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'lib/aws-sdk-pinpoint/types.rb', line 6372

class EndpointLocation < Struct.new(
  :city,
  :country,
  :latitude,
  :longitude,
  :postal_code,
  :region)
  include Aws::Structure
end

#regionString

The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.

Returns:

  • (String)


6372
6373
6374
6375
6376
6377
6378
6379
6380
# File 'lib/aws-sdk-pinpoint/types.rb', line 6372

class EndpointLocation < Struct.new(
  :city,
  :country,
  :latitude,
  :longitude,
  :postal_code,
  :region)
  include Aws::Structure
end