public class BucketLoggingConfiguration extends HeaderResponse
Constructor and Description |
---|
BucketLoggingConfiguration() |
BucketLoggingConfiguration(String targetBucketName,
String logfilePrefix)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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, getStatusCode
public 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()
GrantAndPermission
public void setTargetGrants(GrantAndPermission[] targetGrants)
targetGrants
- Log delivery group GrantAndPermission
public 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
in class HeaderResponse
Copyright © 2019. All rights reserved.