@@ -47,14 +47,31 @@ public class AliasListEntry implements Serializable {
4747
4848 /**
4949 * <p>
50- * String that contains the key identifier referred to by the alias.
50+ * String that contains the key identifier of the CMK associated with the
51+ * alias.
5152 * </p>
5253 * <p>
5354 * <b>Constraints:</b><br/>
5455 * <b>Length: </b>1 - 2048<br/>
5556 */
5657 private String targetKeyId ;
5758
59+ /**
60+ * <p>
61+ * Date and time that the alias was most recently created in the account and
62+ * Region. Formatted as Unix time.
63+ * </p>
64+ */
65+ private java .util .Date creationDate ;
66+
67+ /**
68+ * <p>
69+ * Date and time that the alias was most recently associated with a CMK in
70+ * the account and Region. Formatted as Unix time.
71+ * </p>
72+ */
73+ private java .util .Date lastUpdatedDate ;
74+
5875 /**
5976 * <p>
6077 * String that contains the alias. This value begins with
@@ -174,14 +191,16 @@ public AliasListEntry withAliasArn(String aliasArn) {
174191
175192 /**
176193 * <p>
177- * String that contains the key identifier referred to by the alias.
194+ * String that contains the key identifier of the CMK associated with the
195+ * alias.
178196 * </p>
179197 * <p>
180198 * <b>Constraints:</b><br/>
181199 * <b>Length: </b>1 - 2048<br/>
182200 *
183201 * @return <p>
184- * String that contains the key identifier referred to by the alias.
202+ * String that contains the key identifier of the CMK associated
203+ * with the alias.
185204 * </p>
186205 */
187206 public String getTargetKeyId () {
@@ -190,15 +209,16 @@ public String getTargetKeyId() {
190209
191210 /**
192211 * <p>
193- * String that contains the key identifier referred to by the alias.
212+ * String that contains the key identifier of the CMK associated with the
213+ * alias.
194214 * </p>
195215 * <p>
196216 * <b>Constraints:</b><br/>
197217 * <b>Length: </b>1 - 2048<br/>
198218 *
199219 * @param targetKeyId <p>
200- * String that contains the key identifier referred to by the
201- * alias.
220+ * String that contains the key identifier of the CMK associated
221+ * with the alias.
202222 * </p>
203223 */
204224 public void setTargetKeyId (String targetKeyId ) {
@@ -207,7 +227,8 @@ public void setTargetKeyId(String targetKeyId) {
207227
208228 /**
209229 * <p>
210- * String that contains the key identifier referred to by the alias.
230+ * String that contains the key identifier of the CMK associated with the
231+ * alias.
211232 * </p>
212233 * <p>
213234 * Returns a reference to this object so that method calls can be chained
@@ -217,8 +238,8 @@ public void setTargetKeyId(String targetKeyId) {
217238 * <b>Length: </b>1 - 2048<br/>
218239 *
219240 * @param targetKeyId <p>
220- * String that contains the key identifier referred to by the
221- * alias.
241+ * String that contains the key identifier of the CMK associated
242+ * with the alias.
222243 * </p>
223244 * @return A reference to this updated object so that method calls can be
224245 * chained together.
@@ -228,6 +249,108 @@ public AliasListEntry withTargetKeyId(String targetKeyId) {
228249 return this ;
229250 }
230251
252+ /**
253+ * <p>
254+ * Date and time that the alias was most recently created in the account and
255+ * Region. Formatted as Unix time.
256+ * </p>
257+ *
258+ * @return <p>
259+ * Date and time that the alias was most recently created in the
260+ * account and Region. Formatted as Unix time.
261+ * </p>
262+ */
263+ public java .util .Date getCreationDate () {
264+ return creationDate ;
265+ }
266+
267+ /**
268+ * <p>
269+ * Date and time that the alias was most recently created in the account and
270+ * Region. Formatted as Unix time.
271+ * </p>
272+ *
273+ * @param creationDate <p>
274+ * Date and time that the alias was most recently created in the
275+ * account and Region. Formatted as Unix time.
276+ * </p>
277+ */
278+ public void setCreationDate (java .util .Date creationDate ) {
279+ this .creationDate = creationDate ;
280+ }
281+
282+ /**
283+ * <p>
284+ * Date and time that the alias was most recently created in the account and
285+ * Region. Formatted as Unix time.
286+ * </p>
287+ * <p>
288+ * Returns a reference to this object so that method calls can be chained
289+ * together.
290+ *
291+ * @param creationDate <p>
292+ * Date and time that the alias was most recently created in the
293+ * account and Region. Formatted as Unix time.
294+ * </p>
295+ * @return A reference to this updated object so that method calls can be
296+ * chained together.
297+ */
298+ public AliasListEntry withCreationDate (java .util .Date creationDate ) {
299+ this .creationDate = creationDate ;
300+ return this ;
301+ }
302+
303+ /**
304+ * <p>
305+ * Date and time that the alias was most recently associated with a CMK in
306+ * the account and Region. Formatted as Unix time.
307+ * </p>
308+ *
309+ * @return <p>
310+ * Date and time that the alias was most recently associated with a
311+ * CMK in the account and Region. Formatted as Unix time.
312+ * </p>
313+ */
314+ public java .util .Date getLastUpdatedDate () {
315+ return lastUpdatedDate ;
316+ }
317+
318+ /**
319+ * <p>
320+ * Date and time that the alias was most recently associated with a CMK in
321+ * the account and Region. Formatted as Unix time.
322+ * </p>
323+ *
324+ * @param lastUpdatedDate <p>
325+ * Date and time that the alias was most recently associated with
326+ * a CMK in the account and Region. Formatted as Unix time.
327+ * </p>
328+ */
329+ public void setLastUpdatedDate (java .util .Date lastUpdatedDate ) {
330+ this .lastUpdatedDate = lastUpdatedDate ;
331+ }
332+
333+ /**
334+ * <p>
335+ * Date and time that the alias was most recently associated with a CMK in
336+ * the account and Region. Formatted as Unix time.
337+ * </p>
338+ * <p>
339+ * Returns a reference to this object so that method calls can be chained
340+ * together.
341+ *
342+ * @param lastUpdatedDate <p>
343+ * Date and time that the alias was most recently associated with
344+ * a CMK in the account and Region. Formatted as Unix time.
345+ * </p>
346+ * @return A reference to this updated object so that method calls can be
347+ * chained together.
348+ */
349+ public AliasListEntry withLastUpdatedDate (java .util .Date lastUpdatedDate ) {
350+ this .lastUpdatedDate = lastUpdatedDate ;
351+ return this ;
352+ }
353+
231354 /**
232355 * Returns a string representation of this object; useful for testing and
233356 * debugging.
@@ -244,7 +367,11 @@ public String toString() {
244367 if (getAliasArn () != null )
245368 sb .append ("AliasArn: " + getAliasArn () + "," );
246369 if (getTargetKeyId () != null )
247- sb .append ("TargetKeyId: " + getTargetKeyId ());
370+ sb .append ("TargetKeyId: " + getTargetKeyId () + "," );
371+ if (getCreationDate () != null )
372+ sb .append ("CreationDate: " + getCreationDate () + "," );
373+ if (getLastUpdatedDate () != null )
374+ sb .append ("LastUpdatedDate: " + getLastUpdatedDate ());
248375 sb .append ("}" );
249376 return sb .toString ();
250377 }
@@ -258,6 +385,10 @@ public int hashCode() {
258385 hashCode = prime * hashCode + ((getAliasArn () == null ) ? 0 : getAliasArn ().hashCode ());
259386 hashCode = prime * hashCode
260387 + ((getTargetKeyId () == null ) ? 0 : getTargetKeyId ().hashCode ());
388+ hashCode = prime * hashCode
389+ + ((getCreationDate () == null ) ? 0 : getCreationDate ().hashCode ());
390+ hashCode = prime * hashCode
391+ + ((getLastUpdatedDate () == null ) ? 0 : getLastUpdatedDate ().hashCode ());
261392 return hashCode ;
262393 }
263394
@@ -286,6 +417,16 @@ public boolean equals(Object obj) {
286417 if (other .getTargetKeyId () != null
287418 && other .getTargetKeyId ().equals (this .getTargetKeyId ()) == false )
288419 return false ;
420+ if (other .getCreationDate () == null ^ this .getCreationDate () == null )
421+ return false ;
422+ if (other .getCreationDate () != null
423+ && other .getCreationDate ().equals (this .getCreationDate ()) == false )
424+ return false ;
425+ if (other .getLastUpdatedDate () == null ^ this .getLastUpdatedDate () == null )
426+ return false ;
427+ if (other .getLastUpdatedDate () != null
428+ && other .getLastUpdatedDate ().equals (this .getLastUpdatedDate ()) == false )
429+ return false ;
289430 return true ;
290431 }
291432}
0 commit comments