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<T>
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 constructing
Contact
, since it is immutable.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the resource, nullifying empty strings and sets and setting defaults.overlayInternationalizedPostalInfo
(PostalInfo internationalizedPostalInfo) overlayLocalizedPostalInfo
(PostalInfo localizedPostalInfo) setAuthInfo
(ContactAuthInfo authInfo) setContactId
(String contactId) setDisclose
(Disclose disclose) setEmailAddress
(String emailAddress) setFaxNumber
(ContactPhoneNumber faxNumber) setInternationalizedPostalInfo
(PostalInfo internationalizedPostalInfo) setLastTransferTime
(org.joda.time.DateTime lastTransferTime) Set the time when this resource was transferred.setLocalizedPostalInfo
(PostalInfo localizedPostalInfo) setTransferData
(ContactTransferData transferData) setVoiceNumber
(ContactPhoneNumber voiceNumber) 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, 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 Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
setContactId
-
setLocalizedPostalInfo
-
setInternationalizedPostalInfo
-
overlayLocalizedPostalInfo
-
overlayInternationalizedPostalInfo
-
setVoiceNumber
-
setFaxNumber
-
setEmailAddress
-
setAuthInfo
-
setDisclose
-
setTransferData
- Specified by:
setTransferData
in interfaceEppResource.BuilderWithTransferData<T extends ContactBase,
B extends ContactBase.Builder<T, B>>
-
setLastTransferTime
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
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
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>>
-