Credential. Update Definition Stages. With Duration<ParentT>.with Duration(Duration duration) 方法
Specifies the duration for which password or key would be valid. Default value is 1 year.
public WithAttach<ParentT> withDuration(Duration duration)
the duration of validity
the next stage in credential definition