Class S3BucketLoggingStatus
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).
- Author:
- James Murty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetGrant(GrantAndPermission targetGrant) booleanvoidsetLogfilePrefix(String logfilePrefix) voidsetTargetBucketName(String targetBucketName) voidsetTargetGrants(GrantAndPermission[] targetGrants) toString()toXml()com.jamesmurty.utils.XMLBuilder
-
Constructor Details
-
S3BucketLoggingStatus
public S3BucketLoggingStatus() -
S3BucketLoggingStatus
-
-
Method Details
-
isLoggingEnabled
public boolean isLoggingEnabled() -
getLogfilePrefix
-
setLogfilePrefix
-
getTargetBucketName
-
setTargetBucketName
-
getTargetGrants
-
setTargetGrants
-
addTargetGrant
-
toString
-
toXml
- Returns:
- An XML representation of the object suitable for use as an input to the REST/HTTP interface.
- Throws:
S3ServiceException
-
toXMLBuilder
public com.jamesmurty.utils.XMLBuilder toXMLBuilder() throws ParserConfigurationException, FactoryConfigurationError, TransformerException
-