类 BucketLoggingConfiguration
java.lang.Object
com.obs.services.internal.service.InternalHeaderResponse
com.obs.services.model.HeaderResponse
com.obs.services.model.BucketLoggingConfiguration
-
字段概要
从类继承的字段 com.obs.services.internal.service.InternalHeaderResponse
originalHeaders, responseHeaders, statusCode -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddTargetGrant(GrantAndPermission targetGrant) Add permissions for logged objectsSet the agent name.Obtain the name prefix of the logged objects.Obtain the bucket in which logs are saved.Obtain the log delivery group.booleanCheck whether bucket logging is enabled.voidObtain the agent name.voidsetLogfilePrefix(String logfilePrefix) Set the name prefix of the logged objects.voidsetTargetBucketName(String targetBucketName) Set the bucket to write logs.voidsetTargetGrants(GrantAndPermission[] targetGrants) Set the log delivery group.toString()从类继承的方法 com.obs.services.model.HeaderResponse
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCode从类继承的方法 com.obs.services.internal.service.InternalHeaderResponse
setOriginalHeaders, setResponseHeaders, setStatusCode
-
构造器详细资料
-
BucketLoggingConfiguration
public BucketLoggingConfiguration() -
BucketLoggingConfiguration
-
-
方法详细资料
-
getTargetBucketName
Obtain the bucket in which logs are saved.- 返回:
- Bucket in which logs are saved
-
setTargetBucketName
Set the bucket to write logs.- 参数:
targetBucketName- Name of the bucket in which logs are saved
-
getLogfilePrefix
Obtain the name prefix of the logged objects.- 返回:
- Name prefix of the logged objects
-
setLogfilePrefix
Set the name prefix of the logged objects.- 参数:
logfilePrefix- Name prefix of the logged objects
-
getTargetGrants
Obtain the log delivery group.- 返回:
- Log delivery group
GrantAndPermission
-
setTargetGrants
Set the log delivery group.- 参数:
targetGrants- Log delivery groupGrantAndPermission
-
addTargetGrant
Add permissions for logged objects- 参数:
targetGrant- Permissions of the logged object
-
isLoggingEnabled
public boolean isLoggingEnabled()Check whether bucket logging is enabled.- 返回:
- Identifier specifying whether bucket logging is enabled
-
getAgency
-
setAgency
-
toString
- 覆盖:
toString在类中HeaderResponse
-