Class CreateV2PolicyOptions

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class CreateV2PolicyOptions
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    The createV2Policy options.
    • Method Detail

      • control

        public Control control()
        Gets the control. Specifies the type of access that is granted by the policy.
        Returns:
        the control
      • type

        public java.lang.String type()
        Gets the type. The policy type; either 'access' or 'authorization'.
        Returns:
        the type
      • description

        public java.lang.String description()
        Gets the description. Description of the policy.
        Returns:
        the description
      • subject

        public V2PolicySubject subject()
        Gets the subject. The subject attributes for whom the policy grants access.
        Returns:
        the subject
      • resource

        public V2PolicyResource resource()
        Gets the resource. The resource attributes to which the policy grants access.
        Returns:
        the resource
      • pattern

        public java.lang.String pattern()
        Gets the pattern. Indicates pattern of rule, either 'time-based-conditions:once', 'time-based-conditions:weekly:all-day', or 'time-based-conditions:weekly:custom-hours'.
        Returns:
        the pattern
      • rule

        public V2PolicyRule rule()
        Gets the rule. Additional access conditions associated with the policy.
        Returns:
        the rule
      • acceptLanguage

        public java.lang.String acceptLanguage()
        Gets the acceptLanguage. Language code for translations * `default` - English * `de` - German (Standard) * `en` - English * `es` - Spanish (Spain) * `fr` - French (Standard) * `it` - Italian (Standard) * `ja` - Japanese * `ko` - Korean * `pt-br` - Portuguese (Brazil) * `zh-cn` - Chinese (Simplified, PRC) * `zh-tw` - (Chinese, Taiwan).
        Returns:
        the acceptLanguage