Package com.dzidzi.dto.address
Class ChangeAddressRequest
java.lang.Object
com.dzidzi.dto.address.ChangeAddressRequest
ChangeAddressRequest represents the DTO request containing the objects used to update an existing address.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeAddressRequest.Builderbuilder()The new apartment numbergetCity()The city namegetFloor()The floor numberThe new house number of the addressThe new street name of the addressgetZip()The new zip codevoidsetGeoLocation(Boolean geoLocation)
-
Constructor Details
-
ChangeAddressRequest
public ChangeAddressRequest() -
ChangeAddressRequest
@ConstructorProperties({"street","houseNumber","apartmentNr","zip","city","floor","geoLocation"}) public ChangeAddressRequest(String street, String houseNumber, String apartmentNr, String zip, String city, Integer floor, Boolean geoLocation) Creates a newChangeAddressRequestinstance.- Parameters:
street- The new street name of the addresshouseNumber- The new house number of the addressapartmentNr- The new apartment numberzip- The new zip codecity- The city namefloor- The floor numbergeoLocation-
-
-
Method Details
-
builder
-
getStreet
The new street name of the address -
getHouseNumber
The new house number of the address -
getApartmentNr
The new apartment number -
getZip
The new zip code -
getCity
The city name -
getFloor
The floor number -
getGeoLocation
-
setGeoLocation
-