Class Address
- java.lang.Object
-
- software.amazon.awssdk.services.privatenetworks.model.Address
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Address.Builder,Address>
@Generated("software.amazon.awssdk:codegen") public final class Address extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Address.Builder,Address>
Information about an address.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddress.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Address.Builderbuilder()Stringcity()The city for this address.Stringcompany()The company name for this address.Stringcountry()The country for this address.StringemailAddress()The recipient's email address.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The recipient's name for this address.StringphoneNumber()The recipient's phone number.StringpostalCode()The postal code for this address.List<SdkField<?>>sdkFields()static Class<? extends Address.Builder>serializableBuilderClass()StringstateOrProvince()The state or province for this address.Stringstreet1()The first line of the street address.Stringstreet2()The second line of the street address.Stringstreet3()The third line of the street address.Address.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
city
public final String city()
The city for this address.
- Returns:
- The city for this address.
-
company
public final String company()
The company name for this address.
- Returns:
- The company name for this address.
-
country
public final String country()
The country for this address.
- Returns:
- The country for this address.
-
emailAddress
public final String emailAddress()
The recipient's email address.
- Returns:
- The recipient's email address.
-
name
public final String name()
The recipient's name for this address.
- Returns:
- The recipient's name for this address.
-
phoneNumber
public final String phoneNumber()
The recipient's phone number.
- Returns:
- The recipient's phone number.
-
postalCode
public final String postalCode()
The postal code for this address.
- Returns:
- The postal code for this address.
-
stateOrProvince
public final String stateOrProvince()
The state or province for this address.
- Returns:
- The state or province for this address.
-
street1
public final String street1()
The first line of the street address.
- Returns:
- The first line of the street address.
-
street2
public final String street2()
The second line of the street address.
- Returns:
- The second line of the street address.
-
street3
public final String street3()
The third line of the street address.
- Returns:
- The third line of the street address.
-
toBuilder
public Address.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Address.Builder,Address>
-
builder
public static Address.Builder builder()
-
serializableBuilderClass
public static Class<? extends Address.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-