类 BucketLoggingConfiguration

java.lang.Object
com.obs.services.internal.service.InternalHeaderResponse
com.obs.services.model.HeaderResponse
com.obs.services.model.BucketLoggingConfiguration

public class BucketLoggingConfiguration extends HeaderResponse
Logging settings of a bucket
  • 构造器详细资料

    • BucketLoggingConfiguration

      public BucketLoggingConfiguration()
    • BucketLoggingConfiguration

      public BucketLoggingConfiguration(String targetBucketName, String logfilePrefix)
      Constructor
      参数:
      targetBucketName - Name of the bucket in which logs are saved
      logfilePrefix - Name prefix of the logged objects
  • 方法详细资料

    • getTargetBucketName

      public String getTargetBucketName()
      Obtain the bucket in which logs are saved.
      返回:
      Bucket in which logs are saved
    • setTargetBucketName

      public void setTargetBucketName(String targetBucketName)
      Set the bucket to write logs.
      参数:
      targetBucketName - Name of the bucket in which logs are saved
    • getLogfilePrefix

      public String getLogfilePrefix()
      Obtain the name prefix of the logged objects.
      返回:
      Name prefix of the logged objects
    • setLogfilePrefix

      public void setLogfilePrefix(String logfilePrefix)
      Set the name prefix of the logged objects.
      参数:
      logfilePrefix - Name prefix of the logged objects
    • getTargetGrants

      public GrantAndPermission[] getTargetGrants()
      Obtain the log delivery group.
      返回:
      Log delivery group GrantAndPermission
    • setTargetGrants

      public void setTargetGrants(GrantAndPermission[] targetGrants)
      Set the log delivery group.
      参数:
      targetGrants - Log delivery group GrantAndPermission
    • addTargetGrant

      public void addTargetGrant(GrantAndPermission targetGrant)
      Add permissions for logged objects
      参数:
      targetGrant - Permissions of the logged object
    • isLoggingEnabled

      public boolean isLoggingEnabled()
      Check whether bucket logging is enabled.
      返回:
      Identifier specifying whether bucket logging is enabled
    • getAgency

      public String getAgency()
      Set the agent name.
      返回:
      Agent name
    • setAgency

      public void setAgency(String agency)
      Obtain the agent name.
      参数:
      agency - Agent name
    • toString

      public String toString()
      覆盖:
      toString 在类中 HeaderResponse