/** * <p> * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose <code>Origin</code> is * <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, otherwise this * value is omitted. * </p> * * @param validTo * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the * key material and the CMK becomes unusable. This value is present only for CMKs whose <code>Origin</code> * is <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, * otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withValidTo(java.util.Date validTo) { setValidTo(validTo); return this; }
keyMetadata.setValidTo(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
/** * <p> * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose <code>Origin</code> is * <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, otherwise this * value is omitted. * </p> * * @param validTo * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the * key material and the CMK becomes unusable. This value is present only for CMKs whose <code>Origin</code> * is <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, * otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withValidTo(java.util.Date validTo) { setValidTo(validTo); return this; }
/** * <p> * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key * material and the CMK becomes unusable. This value is present only for CMKs whose <code>Origin</code> is * <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, otherwise this * value is omitted. * </p> * * @param validTo * The time at which the imported key material expires. When the key material expires, AWS KMS deletes the * key material and the CMK becomes unusable. This value is present only for CMKs whose <code>Origin</code> * is <code>EXTERNAL</code> and whose <code>ExpirationModel</code> is <code>KEY_MATERIAL_EXPIRES</code>, * otherwise this value is omitted. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withValidTo(java.util.Date validTo) { setValidTo(validTo); return this; }
.unmarshall(context)); } else if (name.equals("ValidTo")) { keyMetadata.setValidTo(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Origin")) {
.unmarshall(context)); } else if (name.equals("ValidTo")) { keyMetadata.setValidTo(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Origin")) {
.unmarshall(context)); } else if (name.equals("ValidTo")) { keyMetadata.setValidTo(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Origin")) {
keyMetadata.setValidTo(context.getUnmarshaller(java.util.Date.class).unmarshall(context));
keyMetadata.setValidTo(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));