public class S3BucketLoggingStatus extends StorageBucketLoggingStatus
For logging to be enabled for a bucket both the targetBucketName and logfilePrefix must be
non-null, and the named bucket must exist. When both variables are non-null, this object
represents an enabled logging status (as indicated by StorageBucketLoggingStatus.isLoggingEnabled()
) and
the XML document generated by StorageBucketLoggingStatus.toXml()
will enable logging for the named bucket when
provided to S3Service.setBucketLoggingStatus(String, S3BucketLoggingStatus, boolean)
.
If either the targetBucketName or logfilePrefix are null, this object will represent a
disabled logging status (as indicated by StorageBucketLoggingStatus.isLoggingEnabled()
) and
the XML document generated by StorageBucketLoggingStatus.toXml()
will disable logging for the named bucket when
provided to S3Service.setBucketLoggingStatus(String, S3BucketLoggingStatus, boolean)
.
Constructor and Description |
---|
S3BucketLoggingStatus() |
S3BucketLoggingStatus(String targetBucketName,
String logfilePrefix) |
Modifier and Type | Method and Description |
---|---|
void |
addTargetGrant(GrantAndPermission targetGrant) |
GrantAndPermission[] |
getTargetGrants() |
void |
setTargetGrants(GrantAndPermission[] targetGrants) |
String |
toString() |
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
getLogfilePrefix, getTargetBucketName, isLoggingEnabled, setLogfilePrefix, setTargetBucketName, toXml
public GrantAndPermission[] getTargetGrants()
public void setTargetGrants(GrantAndPermission[] targetGrants)
public void addTargetGrant(GrantAndPermission targetGrant)
public String toString()
toString
in class StorageBucketLoggingStatus
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws ParserConfigurationException, FactoryConfigurationError, TransformerException
toXMLBuilder
in class StorageBucketLoggingStatus
ParserConfigurationException
FactoryConfigurationError
TransformerException
Copyright © 2006–2018. All rights reserved.