Package google.registry.model.contact
Class ContactBase.Builder<T extends ContactBase,B extends ContactBase.Builder<T,B>>
- java.lang.Object
-
- google.registry.model.Buildable.Builder<S>
-
- google.registry.model.Buildable.GenericBuilder<T,B>
-
- google.registry.model.EppResource.Builder<T,B>
-
- google.registry.model.contact.ContactBase.Builder<T,B>
-
- All Implemented Interfaces:
EppResource.BuilderWithTransferData<ContactTransferData,B>
- Direct Known Subclasses:
Contact.Builder
- Enclosing class:
- ContactBase
public static class ContactBase.Builder<T extends ContactBase,B extends ContactBase.Builder<T,B>> extends EppResource.Builder<T,B> implements EppResource.BuilderWithTransferData<ContactTransferData,B>
A builder for constructingContact
, since it is immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
build()
Build the resource, nullifying empty strings and sets and setting defaults.B
overlayInternationalizedPostalInfo(PostalInfo internationalizedPostalInfo)
B
overlayLocalizedPostalInfo(PostalInfo localizedPostalInfo)
B
setAuthInfo(ContactAuthInfo authInfo)
B
setContactId(java.lang.String contactId)
B
setDisclose(Disclose disclose)
B
setEmailAddress(java.lang.String emailAddress)
B
setFaxNumber(ContactPhoneNumber faxNumber)
B
setInternationalizedPostalInfo(PostalInfo internationalizedPostalInfo)
B
setLastTransferTime(org.joda.time.DateTime lastTransferTime)
Set the time when this resource was transferred.B
setLocalizedPostalInfo(PostalInfo localizedPostalInfo)
B
setTransferData(ContactTransferData transferData)
B
setVoiceNumber(ContactPhoneNumber voiceNumber)
B
wipeOut()
Remove all personally identifying information about a contact.-
Methods inherited from class google.registry.model.EppResource.Builder
addStatusValue, addStatusValues, removeStatusValue, removeStatusValues, setCreationRegistrarId, setCreationTime, setCreationTimeForTest, setDeletionTime, setDnsRefreshRequestTime, setLastEppUpdateRegistrarId, setLastEppUpdateTime, setPersistedCurrentSponsorRegistrarId, setRepoId, setStatusValues, setUpdateTimestamp
-
Methods inherited from class google.registry.model.Buildable.GenericBuilder
thisCastToDerived
-
Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
protected Builder(T instance)
-
-
Method Detail
-
setContactId
public B setContactId(java.lang.String contactId)
-
setLocalizedPostalInfo
public B setLocalizedPostalInfo(PostalInfo localizedPostalInfo)
-
setInternationalizedPostalInfo
public B setInternationalizedPostalInfo(PostalInfo internationalizedPostalInfo)
-
overlayLocalizedPostalInfo
public B overlayLocalizedPostalInfo(PostalInfo localizedPostalInfo)
-
overlayInternationalizedPostalInfo
public B overlayInternationalizedPostalInfo(PostalInfo internationalizedPostalInfo)
-
setVoiceNumber
public B setVoiceNumber(ContactPhoneNumber voiceNumber)
-
setFaxNumber
public B setFaxNumber(ContactPhoneNumber faxNumber)
-
setEmailAddress
public B setEmailAddress(java.lang.String emailAddress)
-
setAuthInfo
public B setAuthInfo(ContactAuthInfo authInfo)
-
setTransferData
public B setTransferData(ContactTransferData transferData)
- Specified by:
setTransferData
in interfaceEppResource.BuilderWithTransferData<T extends ContactBase,B extends ContactBase.Builder<T,B>>
-
setLastTransferTime
public B setLastTransferTime(org.joda.time.DateTime lastTransferTime)
Description copied from interface:EppResource.BuilderWithTransferData
Set the time when this resource was transferred.- Specified by:
setLastTransferTime
in interfaceEppResource.BuilderWithTransferData<T extends ContactBase,B extends ContactBase.Builder<T,B>>
-
wipeOut
public B wipeOut()
Remove all personally identifying information about a contact.This should be used when deleting a contact so that the soft-deleted entity doesn't contain information that the registrant requested to be deleted.
-
build
public T build()
Description copied from class:EppResource.Builder
Build the resource, nullifying empty strings and sets and setting defaults.- Overrides:
build
in classEppResource.Builder<T extends ContactBase,B extends ContactBase.Builder<T,B>>
-
-