public static final class UpsertCollectionPolicyRequest.Builder extends Object
public UpsertCollectionPolicyRequest.Builder centralizeConfig(UpsertCollectionPolicyRequest.CentralizeConfig centralizeConfig)
The configurations of centralized storage.
public UpsertCollectionPolicyRequest.Builder centralizeEnabled(Boolean centralizeEnabled)
Specifies whether to enable centralized storage. Default value: false.
example:false
public UpsertCollectionPolicyRequest.Builder dataCode(String dataCode)
The code of the log type.
This parameter is required.
example:access_log
public UpsertCollectionPolicyRequest.Builder dataConfig(UpsertCollectionPolicyRequest.DataConfig dataConfig)
The data configurations. The configuration is returned only for global logs. For example, if productCode is set to sls, the configuration is returned.
public UpsertCollectionPolicyRequest.Builder enabled(Boolean enabled)
Specifies whether to enable the policy.
This parameter is required.
example:true
public UpsertCollectionPolicyRequest.Builder policyConfig(UpsertCollectionPolicyRequest.PolicyConfig policyConfig)
The configurations of the policy.
This parameter is required.
public UpsertCollectionPolicyRequest.Builder policyName(String policyName)
The name must meet the following requirements:
This parameter is required.
example:your_log_policy
public UpsertCollectionPolicyRequest.Builder productCode(String productCode)
The code of the service.
This parameter is required.
example:oss
public UpsertCollectionPolicyRequest.Builder resourceDirectory(UpsertCollectionPolicyRequest.ResourceDirectory resourceDirectory)
The configurations of the resource directory. The account must have activated the resource directory and be a management account or a delegated administrator of the resource directory.
public UpsertCollectionPolicyRequest build()
Copyright © 2025. All rights reserved.