33
44import java .io .Serializable ;
55import java .util .ArrayList ;
6+ import java .util .Date ;
67import java .util .LinkedHashMap ;
78import java .util .List ;
89import java .util .Map ;
2425 */
2526@ JsonInclude (JsonInclude .Include .NON_NULL )
2627@ JsonPropertyOrder ({
28+ "pseudonymization_time" ,
2729 "stable_identifier_type" ,
2830 "stable_identifier_version" ,
2931 "encryption_algorithm" ,
3436public class Pseudonymization implements Serializable
3537{
3638
39+ /**
40+ * Variable pseudo time
41+ * <p>
42+ * Time at which the variable was pseudonymized. In ISO 8601 format.
43+ *
44+ */
45+ @ JsonProperty ("pseudonymization_time" )
46+ @ JsonPropertyDescription ("Time at which the variable was pseudonymized. In ISO 8601 format." )
47+ private Date pseudonymizationTime ;
3748 /**
3849 * Stable identifier type
3950 * <p>
@@ -87,7 +98,7 @@ public class Pseudonymization implements Serializable
8798 @ JsonIgnore
8899 @ Valid
89100 private Map <String , Object > additionalProperties = new LinkedHashMap <String , Object >();
90- private final static long serialVersionUID = -2437887402463826146L ;
101+ private final static long serialVersionUID = -3507966329326709037L ;
91102
92103 /**
93104 * No args constructor for use in serialization
@@ -102,15 +113,18 @@ public Pseudonymization() {
102113 * Stable identifier type. Type of stable identifier the variable was mapped to prior to pseudonymization.
103114 * @param encryptionKeyReference
104115 * Encryption key reference. Name of or reference to the encryption key used to pseudonymize the variable.
116+ * @param pseudonymizationTime
117+ * Variable pseudo time. Time at which the variable was pseudonymized. In ISO 8601 format.
105118 * @param encryptionAlgorithmParameters
106119 * Encryption algorithm parameters. Parameters supplied to the encryption algorithm.
107120 * @param stableIdentifierVersion
108121 * Stable identifier version. Version of stable identifier the variable was mapped to prior to pseudonymization.
109122 * @param encryptionAlgorithm
110123 * Encryption algorithm. The encryption algorithm used to pseudonymize the variable.
111124 */
112- public Pseudonymization (String stableIdentifierType , String stableIdentifierVersion , String encryptionAlgorithm , String encryptionKeyReference , List <EncryptionAlgorithmParameter > encryptionAlgorithmParameters ) {
125+ public Pseudonymization (Date pseudonymizationTime , String stableIdentifierType , String stableIdentifierVersion , String encryptionAlgorithm , String encryptionKeyReference , List <EncryptionAlgorithmParameter > encryptionAlgorithmParameters ) {
113126 super ();
127+ this .pseudonymizationTime = pseudonymizationTime ;
114128 this .stableIdentifierType = stableIdentifierType ;
115129 this .stableIdentifierVersion = stableIdentifierVersion ;
116130 this .encryptionAlgorithm = encryptionAlgorithm ;
@@ -122,6 +136,28 @@ public static Pseudonymization.PseudonymizationBuilderBase builder() {
122136 return new Pseudonymization .PseudonymizationBuilder ();
123137 }
124138
139+ /**
140+ * Variable pseudo time
141+ * <p>
142+ * Time at which the variable was pseudonymized. In ISO 8601 format.
143+ *
144+ */
145+ @ JsonProperty ("pseudonymization_time" )
146+ public Date getPseudonymizationTime () {
147+ return pseudonymizationTime ;
148+ }
149+
150+ /**
151+ * Variable pseudo time
152+ * <p>
153+ * Time at which the variable was pseudonymized. In ISO 8601 format.
154+ *
155+ */
156+ @ JsonProperty ("pseudonymization_time" )
157+ public void setPseudonymizationTime (Date pseudonymizationTime ) {
158+ this .pseudonymizationTime = pseudonymizationTime ;
159+ }
160+
125161 /**
126162 * Stable identifier type
127163 * <p>
@@ -250,6 +286,10 @@ public void setAdditionalProperty(String name, Object value) {
250286 public String toString () {
251287 StringBuilder sb = new StringBuilder ();
252288 sb .append (Pseudonymization .class .getName ()).append ('@' ).append (Integer .toHexString (System .identityHashCode (this ))).append ('[' );
289+ sb .append ("pseudonymizationTime" );
290+ sb .append ('=' );
291+ sb .append (((this .pseudonymizationTime == null )?"<null>" :this .pseudonymizationTime ));
292+ sb .append (',' );
253293 sb .append ("stableIdentifierType" );
254294 sb .append ('=' );
255295 sb .append (((this .stableIdentifierType == null )?"<null>" :this .stableIdentifierType ));
@@ -287,6 +327,7 @@ public int hashCode() {
287327 int result = 1 ;
288328 result = ((result * 31 )+((this .stableIdentifierType == null )? 0 :this .stableIdentifierType .hashCode ()));
289329 result = ((result * 31 )+((this .encryptionKeyReference == null )? 0 :this .encryptionKeyReference .hashCode ()));
330+ result = ((result * 31 )+((this .pseudonymizationTime == null )? 0 :this .pseudonymizationTime .hashCode ()));
290331 result = ((result * 31 )+((this .encryptionAlgorithmParameters == null )? 0 :this .encryptionAlgorithmParameters .hashCode ()));
291332 result = ((result * 31 )+((this .stableIdentifierVersion == null )? 0 :this .stableIdentifierVersion .hashCode ()));
292333 result = ((result * 31 )+((this .additionalProperties == null )? 0 :this .additionalProperties .hashCode ()));
@@ -303,7 +344,7 @@ public boolean equals(Object other) {
303344 return false ;
304345 }
305346 Pseudonymization rhs = ((Pseudonymization ) other );
306- return (((((((this .stableIdentifierType == rhs .stableIdentifierType )||((this .stableIdentifierType != null )&&this .stableIdentifierType .equals (rhs .stableIdentifierType )))&&((this .encryptionKeyReference == rhs .encryptionKeyReference )||((this .encryptionKeyReference != null )&&this .encryptionKeyReference .equals (rhs .encryptionKeyReference ))))&&((this .encryptionAlgorithmParameters == rhs .encryptionAlgorithmParameters )||((this .encryptionAlgorithmParameters != null )&&this .encryptionAlgorithmParameters .equals (rhs .encryptionAlgorithmParameters ))))&&((this .stableIdentifierVersion == rhs .stableIdentifierVersion )||((this .stableIdentifierVersion != null )&&this .stableIdentifierVersion .equals (rhs .stableIdentifierVersion ))))&&((this .additionalProperties == rhs .additionalProperties )||((this .additionalProperties != null )&&this .additionalProperties .equals (rhs .additionalProperties ))))&&((this .encryptionAlgorithm == rhs .encryptionAlgorithm )||((this .encryptionAlgorithm != null )&&this .encryptionAlgorithm .equals (rhs .encryptionAlgorithm ))));
347+ return ((((((((this .stableIdentifierType == rhs .stableIdentifierType )||((this .stableIdentifierType != null )&&this .stableIdentifierType .equals (rhs .stableIdentifierType )))&&((this .encryptionKeyReference == rhs .encryptionKeyReference )||((this .encryptionKeyReference != null )&&this .encryptionKeyReference .equals (rhs .encryptionKeyReference ))))&&((this .pseudonymizationTime == rhs .pseudonymizationTime )||((this .pseudonymizationTime != null )&&this .pseudonymizationTime .equals (rhs .pseudonymizationTime ))))&&((this .encryptionAlgorithmParameters == rhs .encryptionAlgorithmParameters )||((this .encryptionAlgorithmParameters != null )&&this .encryptionAlgorithmParameters .equals (rhs .encryptionAlgorithmParameters ))))&&((this .stableIdentifierVersion == rhs .stableIdentifierVersion )||((this .stableIdentifierVersion != null )&&this .stableIdentifierVersion .equals (rhs .stableIdentifierVersion ))))&&((this .additionalProperties == rhs .additionalProperties )||((this .additionalProperties != null )&&this .additionalProperties .equals (rhs .additionalProperties ))))&&((this .encryptionAlgorithm == rhs .encryptionAlgorithm )||((this .encryptionAlgorithm != null )&&this .encryptionAlgorithm .equals (rhs .encryptionAlgorithm ))));
307348 }
308349
309350 public static class PseudonymizationBuilder
@@ -315,8 +356,8 @@ public PseudonymizationBuilder() {
315356 super ();
316357 }
317358
318- public PseudonymizationBuilder (String stableIdentifierType , String stableIdentifierVersion , String encryptionAlgorithm , String encryptionKeyReference , List <EncryptionAlgorithmParameter > encryptionAlgorithmParameters ) {
319- super (stableIdentifierType , stableIdentifierVersion , encryptionAlgorithm , encryptionKeyReference , encryptionAlgorithmParameters );
359+ public PseudonymizationBuilder (Date pseudonymizationTime , String stableIdentifierType , String stableIdentifierVersion , String encryptionAlgorithm , String encryptionKeyReference , List <EncryptionAlgorithmParameter > encryptionAlgorithmParameters ) {
360+ super (pseudonymizationTime , stableIdentifierType , stableIdentifierVersion , encryptionAlgorithm , encryptionKeyReference , encryptionAlgorithmParameters );
320361 }
321362
322363 }
@@ -334,10 +375,10 @@ public PseudonymizationBuilderBase() {
334375 }
335376
336377 @ SuppressWarnings ("unchecked" )
337- public PseudonymizationBuilderBase (String stableIdentifierType , String stableIdentifierVersion , String encryptionAlgorithm , String encryptionKeyReference , List <EncryptionAlgorithmParameter > encryptionAlgorithmParameters ) {
378+ public PseudonymizationBuilderBase (Date pseudonymizationTime , String stableIdentifierType , String stableIdentifierVersion , String encryptionAlgorithm , String encryptionKeyReference , List <EncryptionAlgorithmParameter > encryptionAlgorithmParameters ) {
338379 // Skip initialization when called from subclass
339380 if (this .getClass ().equals (Pseudonymization .PseudonymizationBuilder .class )) {
340- this .instance = ((T ) new Pseudonymization (stableIdentifierType , stableIdentifierVersion , encryptionAlgorithm , encryptionKeyReference , encryptionAlgorithmParameters ));
381+ this .instance = ((T ) new Pseudonymization (pseudonymizationTime , stableIdentifierType , stableIdentifierVersion , encryptionAlgorithm , encryptionKeyReference , encryptionAlgorithmParameters ));
341382 }
342383 }
343384
@@ -348,6 +389,11 @@ public T build() {
348389 return result ;
349390 }
350391
392+ public Pseudonymization .PseudonymizationBuilderBase withPseudonymizationTime (Date pseudonymizationTime ) {
393+ ((Pseudonymization ) this .instance ).pseudonymizationTime = pseudonymizationTime ;
394+ return this ;
395+ }
396+
351397 public Pseudonymization .PseudonymizationBuilderBase withStableIdentifierType (String stableIdentifierType ) {
352398 ((Pseudonymization ) this .instance ).stableIdentifierType = stableIdentifierType ;
353399 return this ;
0 commit comments