com.obs.services.model

## 类 BucketLoggingConfiguration

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

-     public class BucketLoggingConfiguration
      extends HeaderResponse

  Logging settings of a bucket

- - ### 字段概要

    - ### 从类继承的字段 com.obs.services.internal.InternalHeaderResponse

      `responseHeaders, statusCode`

  - ### 构造器概要

    构造器
    构造器和说明
    `BucketLoggingConfiguration()`
    `BucketLoggingConfiguration(String targetBucketName, String logfilePrefix)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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()`

    - ### 从类继承的方法 com.obs.services.model.HeaderResponse

      `getRequestId, getResponseHeaders, getStatusCode`

    - ### 从类继承的方法 com.obs.services.internal.InternalHeaderResponse

      `setResponseHeaders, setStatusCode`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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`

Copyright © 2021. All rights reserved.