---
schema_version: "1"
id: ac3481694809caf98d5ec29c1f11296df4b397392282922518b570829be6a47c
title: Address Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_Address.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: dc5e49b24d8ee02fc980256098a9bd238d5cc57ba26b8636e3d38cee11ec2c84
description: Represents a postal address.The street address lines (street, unit, etc.) of the postal address.The street address lines variable of the postal address.The sub-locality information associated with the address (defined at the city level).The sub-locality variable of the address.The locality (city) of the postal address.The locality variable of the postal address.The postal code (zip or postal code) of the address.The postal code variable of the address.The sub-administrative area (county or other region) of the address.The sub-administrative area variable of the address.The administrative area (state or province) of the address.The administrative area variable of the address.The country of the address.The country variable of the address.The ISO country code of the address.The country code variable of the address.
---
# Address Class

Represents a postal address.

## Namespace

[RichMessaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_RichMessaging.htm "Provides objects and methods for handling content in enhanced Messaging channels.")

- **[Address Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_properties)**

## Address Properties

The following are properties for Address.

- **[addressLines](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_addressLines)**  
    The street address lines (street, unit, etc.) of the postal address.
- **[addressLinesValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_addressLinesValue)**  
    The street address lines variable of the postal address.
- **[subLocality](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_subLocality)**  
    The sub-locality information associated with the address (defined at the city level).
- **[subLocalityValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_subLocalityValue)**  
    The sub-locality variable of the address.
- **[locality](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_locality)**  
    The locality (city) of the postal address.
- **[localityValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_localityValue)**  
    The locality variable of the postal address.
- **[postalCode](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_postalCode)**  
    The postal code (zip or postal code) of the address.
- **[postalCodeValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_postalCodeValue)**  
    The postal code variable of the address.
- **[subAdministrativeArea](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_subAdministrativeArea)**  
    The sub-administrative area (county or other region) of the address.
- **[subAdministrativeAreaValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_subAdministrativeAreaValue)**  
    The sub-administrative area variable of the address.
- **[administrativeArea](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_administrativeArea)**  
    The administrative area (state or province) of the address.
- **[administrativeAreaValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_administrativeAreaValue)**  
    The administrative area variable of the address.
- **[country](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_country)**  
    The country of the address.
- **[countryValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_countryValue)**  
    The country variable of the address.
- **[countryCode](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_countryCode)**  
    The ISO country code of the address.
- **[countryCodeValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_Address.htm#apex_RichMessaging_Address_countryCodeValue)**  
    The country code variable of the address.

### addressLines

The street address lines (street, unit, etc.) of the postal address.

#### Signature

public List<String> addressLines {get; set;}

#### Property Value

Type: List<String>

### addressLinesValue

The street address lines variable of the postal address.

#### Signature

public List<String> addressLinesValue {get; set;}

#### Property Value

Type: List<String>

### subLocality

The sub-locality information associated with the address (defined at the city level).

#### Signature

public String subLocality {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### subLocalityValue

The sub-locality variable of the address.

#### Signature

public String subLocalityValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### locality

The locality (city) of the postal address.

#### Signature

public String locality {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### localityValue

The locality variable of the postal address.

#### Signature

public String localityValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### postalCode

The postal code (zip or postal code) of the address.

#### Signature

public String postalCode {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### postalCodeValue

The postal code variable of the address.

#### Signature

public String postalCodeValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### subAdministrativeArea

The sub-administrative area (county or other region) of the address.

#### Signature

public String subAdministrativeArea {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### subAdministrativeAreaValue

The sub-administrative area variable of the address.

#### Signature

public String subAdministrativeAreaValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### administrativeArea

The administrative area (state or province) of the address.

#### Signature

public String administrativeArea {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### administrativeAreaValue

The administrative area variable of the address.

#### Signature

public String administrativeAreaValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### country

The country of the address.

#### Signature

public String country {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### countryValue

The country variable of the address.

#### Signature

public String countryValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### countryCode

The ISO country code of the address.

#### Signature

public String countryCode {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### countryCodeValue

The country code variable of the address.

#### Signature

public String countryCodeValue {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")