java.lang.Object
com.azure.resourcemanager.databoxedge.models.Address

public final class Address extends Object
The shipping address of the customer.
  • Constructor Details

    • Address

      public Address()
      Creates an instance of Address class.
  • Method Details

    • addressLine1

      public String addressLine1()
      Get the addressLine1 property: The address line1.
      Returns:
      the addressLine1 value.
    • withAddressLine1

      public Address withAddressLine1(String addressLine1)
      Set the addressLine1 property: The address line1.
      Parameters:
      addressLine1 - the addressLine1 value to set.
      Returns:
      the Address object itself.
    • addressLine2

      public String addressLine2()
      Get the addressLine2 property: The address line2.
      Returns:
      the addressLine2 value.
    • withAddressLine2

      public Address withAddressLine2(String addressLine2)
      Set the addressLine2 property: The address line2.
      Parameters:
      addressLine2 - the addressLine2 value to set.
      Returns:
      the Address object itself.
    • addressLine3

      public String addressLine3()
      Get the addressLine3 property: The address line3.
      Returns:
      the addressLine3 value.
    • withAddressLine3

      public Address withAddressLine3(String addressLine3)
      Set the addressLine3 property: The address line3.
      Parameters:
      addressLine3 - the addressLine3 value to set.
      Returns:
      the Address object itself.
    • postalCode

      public String postalCode()
      Get the postalCode property: The postal code.
      Returns:
      the postalCode value.
    • withPostalCode

      public Address withPostalCode(String postalCode)
      Set the postalCode property: The postal code.
      Parameters:
      postalCode - the postalCode value to set.
      Returns:
      the Address object itself.
    • city

      public String city()
      Get the city property: The city name.
      Returns:
      the city value.
    • withCity

      public Address withCity(String city)
      Set the city property: The city name.
      Parameters:
      city - the city value to set.
      Returns:
      the Address object itself.
    • state

      public String state()
      Get the state property: The state name.
      Returns:
      the state value.
    • withState

      public Address withState(String state)
      Set the state property: The state name.
      Parameters:
      state - the state value to set.
      Returns:
      the Address object itself.
    • country

      public String country()
      Get the country property: The country name.
      Returns:
      the country value.
    • withCountry

      public Address withCountry(String country)
      Set the country property: The country name.
      Parameters:
      country - the country value to set.
      Returns:
      the Address object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.