public class S3BucketLoggingStatus extends Object
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 isLoggingEnabled()) and
the XML document generated by 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 isLoggingEnabled()) and
the XML document generated by toXml() will disable logging for the named bucket when
provided to S3Service.setBucketLoggingStatus(String, S3BucketLoggingStatus, boolean).
| Constructor | Description |
|---|---|
S3BucketLoggingStatus() |
|
S3BucketLoggingStatus(String targetBucketName,
String logfilePrefix) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addTargetGrant(GrantAndPermission targetGrant) |
|
String |
getLogfilePrefix() |
|
String |
getTargetBucketName() |
|
GrantAndPermission[] |
getTargetGrants() |
|
boolean |
isLoggingEnabled() |
|
void |
setLogfilePrefix(String logfilePrefix) |
|
void |
setTargetBucketName(String targetBucketName) |
|
void |
setTargetGrants(GrantAndPermission[] targetGrants) |
|
String |
toString() |
|
String |
toXml() |
|
com.jamesmurty.utils.XMLBuilder |
toXMLBuilder() |
public boolean isLoggingEnabled()
public String getLogfilePrefix()
public void setLogfilePrefix(String logfilePrefix)
public String getTargetBucketName()
public void setTargetBucketName(String targetBucketName)
public GrantAndPermission[] getTargetGrants()
public void setTargetGrants(GrantAndPermission[] targetGrants)
public void addTargetGrant(GrantAndPermission targetGrant)
public String toXml() throws S3ServiceException
S3ServiceExceptionpublic com.jamesmurty.utils.XMLBuilder toXMLBuilder()
throws ParserConfigurationException,
FactoryConfigurationError,
TransformerException