/** * Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only * symmetric encryption and decryption are supported. * * @param keyUsage Specifies the intended use of the key. Currently this defaults to * ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyUsageType */ public CreateKeyRequest withKeyUsage(KeyUsageType keyUsage) { setKeyUsage(keyUsage); return this; }
/** * Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only * symmetric encryption and decryption are supported. * * @param keyUsage Specifies the intended use of the key. Currently this defaults to * ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported. * @return Returns a reference to this object so that method calls can be chained together. * @see KeyUsageType */ public CreateKeyRequest withKeyUsage(String keyUsage) { setKeyUsage(keyUsage); return this; }