libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pinpoint.Types.EndpointLocation

Description

 
Synopsis

Documentation

data EndpointLocation Source #

Specifies geographic information about an endpoint.

See: newEndpointLocation smart constructor.

Constructors

EndpointLocation' 

Fields

  • postalCode :: Maybe Text

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

  • latitude :: Maybe Double

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

  • country :: Maybe Text

    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.

  • city :: Maybe Text

    The name of the city where the endpoint is located.

  • region :: Maybe Text

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

  • longitude :: Maybe Double

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

Instances

Instances details
Eq EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

Read EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

Show EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

Generic EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

Associated Types

type Rep EndpointLocation :: Type -> Type #

NFData EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

Methods

rnf :: EndpointLocation -> () #

Hashable EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

ToJSON EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

FromJSON EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

type Rep EndpointLocation Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.EndpointLocation

type Rep EndpointLocation = D1 ('MetaData "EndpointLocation" "Amazonka.Pinpoint.Types.EndpointLocation" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "EndpointLocation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "postalCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "latitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "city") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "longitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))))

newEndpointLocation :: EndpointLocation Source #

Create a value of EndpointLocation with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:postalCode:EndpointLocation', endpointLocation_postalCode - The postal or ZIP code for the area where the endpoint is located.

$sel:latitude:EndpointLocation', endpointLocation_latitude - The latitude coordinate of the endpoint location, rounded to one decimal place.

$sel:country:EndpointLocation', endpointLocation_country - 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.

$sel:city:EndpointLocation', endpointLocation_city - The name of the city where the endpoint is located.

$sel:region:EndpointLocation', endpointLocation_region - The name of the region where the endpoint is located. For locations in the United States, this value is the name of a state.

$sel:longitude:EndpointLocation', endpointLocation_longitude - The longitude coordinate of the endpoint location, rounded to one decimal place.

endpointLocation_postalCode :: Lens' EndpointLocation (Maybe Text) Source #

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

endpointLocation_latitude :: Lens' EndpointLocation (Maybe Double) Source #

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

endpointLocation_country :: Lens' EndpointLocation (Maybe Text) Source #

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.

endpointLocation_city :: Lens' EndpointLocation (Maybe Text) Source #

The name of the city where the endpoint is located.

endpointLocation_region :: Lens' EndpointLocation (Maybe Text) Source #

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

endpointLocation_longitude :: Lens' EndpointLocation (Maybe Double) Source #

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