com.aliyun.oss.model

## 类 PolicyConditions

- java.lang.Object
- - com.aliyun.oss.model.PolicyConditions

-     public class PolicyConditions
      extends Object

  Policy Conditions. This is to specify the conditions in a post request.

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `COND_CACHE_CONTROL`
    `static String` | `COND_CONTENT_DISPOSITION`
    `static String` | `COND_CONTENT_ENCODING`
    `static String` | `COND_CONTENT_LENGTH_RANGE`
    `static String` | `COND_CONTENT_TYPE`
    `static String` | `COND_EXPIRES`
    `static String` | `COND_KEY`
    `static String` | `COND_SUCCESS_ACTION_REDIRECT`
    `static String` | `COND_SUCCESS_ACTION_STATUS`
    `static String` | `COND_X_OSS_META_PREFIX`
    `static String` | `COND_X_OSS_SERVER_SIDE_PREFIX`

  - ### 构造器概要

    构造器
    构造器和说明
    `PolicyConditions()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addConditionItem(MatchMode matchMode, String name, String value)` Adds a condition item with specified `MatchMode` value.
    `void` | `addConditionItem(String name, long min, long max)` Adds a range match condition.
    `void` | `addConditionItem(String name, String value)` Adds a condition item with the exact match mode.
    `String` | `jsonize()`

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

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

- - ### 字段详细资料

    - #### COND_CONTENT_LENGTH_RANGE

          public static final String COND_CONTENT_LENGTH_RANGE

      另请参阅:
        常量字段值

    - #### COND_CACHE_CONTROL

          public static final String COND_CACHE_CONTROL

      另请参阅:
        常量字段值

    - #### COND_CONTENT_TYPE

          public static final String COND_CONTENT_TYPE

      另请参阅:
        常量字段值

    - #### COND_CONTENT_DISPOSITION

          public static final String COND_CONTENT_DISPOSITION

      另请参阅:
        常量字段值

    - #### COND_CONTENT_ENCODING

          public static final String COND_CONTENT_ENCODING

      另请参阅:
        常量字段值

    - #### COND_EXPIRES

          public static final String COND_EXPIRES

      另请参阅:
        常量字段值

    - #### COND_KEY

          public static final String COND_KEY

      另请参阅:
        常量字段值

    - #### COND_SUCCESS_ACTION_REDIRECT

          public static final String COND_SUCCESS_ACTION_REDIRECT

      另请参阅:
        常量字段值

    - #### COND_SUCCESS_ACTION_STATUS

          public static final String COND_SUCCESS_ACTION_STATUS

      另请参阅:
        常量字段值

    - #### COND_X_OSS_META_PREFIX

          public static final String COND_X_OSS_META_PREFIX

      另请参阅:
        常量字段值

    - #### COND_X_OSS_SERVER_SIDE_PREFIX

          public static final String COND_X_OSS_SERVER_SIDE_PREFIX

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### PolicyConditions

          public PolicyConditions()

  - ### 方法详细资料

    - #### addConditionItem

          public void addConditionItem(String name,
                              String value)

      Adds a condition item with the exact match mode.
      参数:
        `name` - Condition name.
        `value` - Condition value.

    - #### addConditionItem

          public void addConditionItem(MatchMode matchMode,
                              String name,
                              String value)

      Adds a condition item with specified `MatchMode` value.
      参数:
        `matchMode` - Conditions match mode.
        `name` - Condition name.
        `value` - Condition value.

    - #### addConditionItem

          public void addConditionItem(String name,
                              long min,
                              long max)

      Adds a range match condition.
      参数:
        `name` - Condition name
        `min` - Min value.
        `max` - Max value.

    - #### jsonize

          public String jsonize()

Copyright © 2020. All Rights Reserved.