Class ContactInformation
- java.lang.Object
-
- software.amazon.awssdk.services.account.model.ContactInformation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContactInformation.Builder,ContactInformation>
@Generated("software.amazon.awssdk:codegen") public final class ContactInformation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContactInformation.Builder,ContactInformation>
Contains the details of the primary contact information associated with an Amazon Web Services account.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContactInformation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddressLine1()The first line of the primary contact address.StringaddressLine2()The second line of the primary contact address, if any.StringaddressLine3()The third line of the primary contact address, if any.static ContactInformation.Builderbuilder()Stringcity()The city of the primary contact address.StringcompanyName()The name of the company associated with the primary contact information, if any.StringcountryCode()The ISO-3166 two-letter country code for the primary contact address.StringdistrictOrCounty()The district or county of the primary contact address, if any.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfullName()The full name of the primary contact address.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringphoneNumber()The phone number of the primary contact information.StringpostalCode()The postal code of the primary contact address.List<SdkField<?>>sdkFields()static Class<? extends ContactInformation.Builder>serializableBuilderClass()StringstateOrRegion()The state or region of the primary contact address.ContactInformation.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringwebsiteUrl()The URL of the website associated with the primary contact information, if any.-
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
-
addressLine1
public final String addressLine1()
The first line of the primary contact address.
- Returns:
- The first line of the primary contact address.
-
addressLine2
public final String addressLine2()
The second line of the primary contact address, if any.
- Returns:
- The second line of the primary contact address, if any.
-
addressLine3
public final String addressLine3()
The third line of the primary contact address, if any.
- Returns:
- The third line of the primary contact address, if any.
-
city
public final String city()
The city of the primary contact address.
- Returns:
- The city of the primary contact address.
-
companyName
public final String companyName()
The name of the company associated with the primary contact information, if any.
- Returns:
- The name of the company associated with the primary contact information, if any.
-
countryCode
public final String countryCode()
The ISO-3166 two-letter country code for the primary contact address.
- Returns:
- The ISO-3166 two-letter country code for the primary contact address.
-
districtOrCounty
public final String districtOrCounty()
The district or county of the primary contact address, if any.
- Returns:
- The district or county of the primary contact address, if any.
-
fullName
public final String fullName()
The full name of the primary contact address.
- Returns:
- The full name of the primary contact address.
-
phoneNumber
public final String phoneNumber()
The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
- Returns:
- The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.
-
postalCode
public final String postalCode()
The postal code of the primary contact address.
- Returns:
- The postal code of the primary contact address.
-
stateOrRegion
public final String stateOrRegion()
The state or region of the primary contact address. If the mailing address is within the United States (US), the value in this field can be either a two character state code (for example,
NJ) or the full state name (for example,New Jersey). This field is required in the following countries:US,CA,GB,DE,JP,IN, andBR.- Returns:
- The state or region of the primary contact address. If the mailing address is within the United States
(US), the value in this field can be either a two character state code (for example,
NJ) or the full state name (for example,New Jersey). This field is required in the following countries:US,CA,GB,DE,JP,IN, andBR.
-
websiteUrl
public final String websiteUrl()
The URL of the website associated with the primary contact information, if any.
- Returns:
- The URL of the website associated with the primary contact information, if any.
-
toBuilder
public ContactInformation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContactInformation.Builder,ContactInformation>
-
builder
public static ContactInformation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContactInformation.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.
-
-