Interface Address.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Address.Builder,
,Address> SdkBuilder<Address.Builder,
,Address> SdkPojo
- Enclosing class:
Address
-
Method Summary
Modifier and TypeMethodDescriptionaddressNumber
(String addressNumber) The number that identifies an address within a street.Name of the block.The name of the building at the address.default Address.Builder
country
(Consumer<Country.Builder> country) The country component of the address.The country component of the address.The district or division of a locality associated with this address.intersection
(String... intersection) Name of the streets in the intersection.intersection
(Collection<String> intersection) Name of the streets in the intersection.Assembled address value built out of the address components, according to the regional postal rules.The city or locality of the address.postalCode
(String postalCode) An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code, for which the result should possess.default Address.Builder
region
(Consumer<Region.Builder> region) The region or state results should be present in.The region or state results should be present in.secondaryAddressComponents
(Collection<SecondaryAddressComponent> secondaryAddressComponents) Components that correspond to secondary identifiers on an Address.secondaryAddressComponents
(Consumer<SecondaryAddressComponent.Builder>... secondaryAddressComponents) Components that correspond to secondary identifiers on an Address.secondaryAddressComponents
(SecondaryAddressComponent... secondaryAddressComponents) Components that correspond to secondary identifiers on an Address.The name of the street results should be present in.streetComponents
(Collection<StreetComponents> streetComponents) Components of the street.streetComponents
(Consumer<StreetComponents.Builder>... streetComponents) Components of the street.streetComponents
(StreetComponents... streetComponents) Components of the street.Name of sub-block.subDistrict
(String subDistrict) A subdivision of a district.default Address.Builder
subRegion
(Consumer<SubRegion.Builder> subRegion) The sub-region or county for which results should be present in.The sub-region or county for which results should be present in.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
label
Assembled address value built out of the address components, according to the regional postal rules. This is the correctly formatted address.
- Parameters:
label
- Assembled address value built out of the address components, according to the regional postal rules. This is the correctly formatted address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
country
The country component of the address.
- Parameters:
country
- The country component of the address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
country
The country component of the address.
This is a convenience method that creates an instance of theCountry.Builder
avoiding the need to create one manually viaCountry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocountry(Country)
.- Parameters:
country
- a consumer that will call methods onCountry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
region
The region or state results should be present in.
Example:
North Rhine-Westphalia
.- Parameters:
region
- The region or state results should be present in.Example:
North Rhine-Westphalia
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
The region or state results should be present in.
Example:
This is a convenience method that creates an instance of theNorth Rhine-Westphalia
.Region.Builder
avoiding the need to create one manually viaRegion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toregion(Region)
.- Parameters:
region
- a consumer that will call methods onRegion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subRegion
The sub-region or county for which results should be present in.
- Parameters:
subRegion
- The sub-region or county for which results should be present in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subRegion
The sub-region or county for which results should be present in.
This is a convenience method that creates an instance of theSubRegion.Builder
avoiding the need to create one manually viaSubRegion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubRegion(SubRegion)
.- Parameters:
subRegion
- a consumer that will call methods onSubRegion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
locality
The city or locality of the address.
Example:
Vancouver
.- Parameters:
locality
- The city or locality of the address.Example:
Vancouver
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
district
The district or division of a locality associated with this address.
- Parameters:
district
- The district or division of a locality associated with this address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subDistrict
A subdivision of a district.
Example:
Minden-Lübbecke
.- Parameters:
subDistrict
- A subdivision of a district.Example:
Minden-Lübbecke
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
postalCode
An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code, for which the result should possess.
- Parameters:
postalCode
- An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code, for which the result should possess.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
block
Name of the block.
Example:
Sunny Mansion 203 block: 2 Chome
- Parameters:
block
- Name of the block.Example:
Sunny Mansion 203 block: 2 Chome
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subBlock
Name of sub-block.
Example:
Sunny Mansion 203 sub-block: 4
- Parameters:
subBlock
- Name of sub-block.Example:
Sunny Mansion 203 sub-block: 4
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intersection
Name of the streets in the intersection.
Example:
["Friedrichstraße","Unter den Linden"]
- Parameters:
intersection
- Name of the streets in the intersection.Example:
["Friedrichstraße","Unter den Linden"]
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intersection
Name of the streets in the intersection.
Example:
["Friedrichstraße","Unter den Linden"]
- Parameters:
intersection
- Name of the streets in the intersection.Example:
["Friedrichstraße","Unter den Linden"]
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
street
The name of the street results should be present in.
- Parameters:
street
- The name of the street results should be present in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streetComponents
Components of the street.
Example: Younge from the "Younge street".
- Parameters:
streetComponents
- Components of the street.Example: Younge from the "Younge street".
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streetComponents
Components of the street.
Example: Younge from the "Younge street".
- Parameters:
streetComponents
- Components of the street.Example: Younge from the "Younge street".
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streetComponents
Components of the street.
Example: Younge from the "Younge street".
This is a convenience method that creates an instance of theStreetComponents.Builder
avoiding the need to create one manually viaStreetComponents.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostreetComponents(List<StreetComponents>)
.- Parameters:
streetComponents
- a consumer that will call methods onStreetComponents.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addressNumber
The number that identifies an address within a street.
- Parameters:
addressNumber
- The number that identifies an address within a street.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
building
The name of the building at the address.
- Parameters:
building
- The name of the building at the address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAddressComponents
Address.Builder secondaryAddressComponents(Collection<SecondaryAddressComponent> secondaryAddressComponents) Components that correspond to secondary identifiers on an Address. Secondary address components include information such as Suite or Unit Number, Building, or Floor.
- Parameters:
secondaryAddressComponents
- Components that correspond to secondary identifiers on an Address. Secondary address components include information such as Suite or Unit Number, Building, or Floor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAddressComponents
Components that correspond to secondary identifiers on an Address. Secondary address components include information such as Suite or Unit Number, Building, or Floor.
- Parameters:
secondaryAddressComponents
- Components that correspond to secondary identifiers on an Address. Secondary address components include information such as Suite or Unit Number, Building, or Floor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAddressComponents
Address.Builder secondaryAddressComponents(Consumer<SecondaryAddressComponent.Builder>... secondaryAddressComponents) Components that correspond to secondary identifiers on an Address. Secondary address components include information such as Suite or Unit Number, Building, or Floor.
This is a convenience method that creates an instance of theSecondaryAddressComponent.Builder
avoiding the need to create one manually viaSecondaryAddressComponent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecondaryAddressComponents(List<SecondaryAddressComponent>)
.- Parameters:
secondaryAddressComponents
- a consumer that will call methods onSecondaryAddressComponent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-