public static final class UpdateLogStoreEncryptionRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateLogStoreEncryptionRequest |
build() |
UpdateLogStoreEncryptionRequest.Builder |
enable(Boolean enable)
Specifies whether to enable the encryption feature.
|
UpdateLogStoreEncryptionRequest.Builder |
encryptType(String encryptType)
The encryption algorithm.
|
UpdateLogStoreEncryptionRequest.Builder |
logstore(String logstore)
The Logstore.
|
UpdateLogStoreEncryptionRequest.Builder |
project(String project)
The Simple Log Service project.
|
UpdateLogStoreEncryptionRequest.Builder |
userCmkInfo(UpdateLogStoreEncryptionRequest.UserCmkInfo userCmkInfo)
Optional.
|
public UpdateLogStoreEncryptionRequest.Builder project(String project)
The Simple Log Service project.
This parameter is required.
example:test-project
public UpdateLogStoreEncryptionRequest.Builder logstore(String logstore)
The Logstore.
This parameter is required.
example:test-logstore
public UpdateLogStoreEncryptionRequest.Builder enable(Boolean enable)
Specifies whether to enable the encryption feature. After you update the encryption configuration of the Logstore, you can modify only the enable parameter in subsequent update requests. You cannot modify the encryptType or userCmkInfo parameters.
This parameter is required.
example:true
public UpdateLogStoreEncryptionRequest.Builder encryptType(String encryptType)
The encryption algorithm. Valid values: default, m4, sm4_ecb, sm4_cbc, sm4_gcm, aes_ecb, aes_cbc, aes_cfb, aes_ofb, and aes_gcm.
example:default
public UpdateLogStoreEncryptionRequest.Builder userCmkInfo(UpdateLogStoreEncryptionRequest.UserCmkInfo userCmkInfo)
Optional. If you use a BYOK key to encrypt logs, you must specify this parameter. If you use the service key of Simple Log Service to encrypt logs, you do not need to specify this parameter.
public UpdateLogStoreEncryptionRequest build()
Copyright © 2025. All rights reserved.