public class BucketLoggingConfiguration extends HeaderResponse
| 构造器和说明 |
|---|
BucketLoggingConfiguration() |
BucketLoggingConfiguration(String targetBucketName,
String logfilePrefix)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addTargetGrant(GrantAndPermission targetGrant)
Add permissions for logged objects
|
String |
getAgency()
Set the agent name.
|
String |
getLogfilePrefix()
Obtain the name prefix of the logged objects.
|
String |
getTargetBucketName()
Obtain the bucket in which logs are saved.
|
GrantAndPermission[] |
getTargetGrants()
Obtain the log delivery group.
|
boolean |
isLoggingEnabled()
Check whether bucket logging is enabled.
|
void |
setAgency(String agency)
Obtain the agent name.
|
void |
setLogfilePrefix(String logfilePrefix)
Set the name prefix of the logged objects.
|
void |
setTargetBucketName(String targetBucketName)
Set the bucket to write logs.
|
void |
setTargetGrants(GrantAndPermission[] targetGrants)
Set the log delivery group.
|
String |
toString() |
getRequestId, getResponseHeaders, getStatusCodepublic String getTargetBucketName()
public void setTargetBucketName(String targetBucketName)
targetBucketName - Name of the bucket in which logs are savedpublic String getLogfilePrefix()
public void setLogfilePrefix(String logfilePrefix)
logfilePrefix - Name prefix of the logged objectspublic GrantAndPermission[] getTargetGrants()
GrantAndPermissionpublic void setTargetGrants(GrantAndPermission[] targetGrants)
targetGrants - Log delivery group GrantAndPermissionpublic void addTargetGrant(GrantAndPermission targetGrant)
targetGrant - Permissions of the logged objectpublic boolean isLoggingEnabled()
public String getAgency()
public void setAgency(String agency)
agency - Agent namepublic String toString()
toString 在类中 HeaderResponseCopyright © 2021. All rights reserved.