Interface Policy

    • Method Detail

      • getEmbedded

        java.util.Map<java.lang.String,​java.lang.Object> getEmbedded()
      • getLinks

        java.util.Map<java.lang.String,​java.lang.Object> getLinks()
      • getCreated

        java.util.Date getCreated()
      • getDescription

        java.lang.String getDescription()
      • setDescription

        Policy setDescription​(java.lang.String description)
      • getId

        java.lang.String getId()
      • getLastUpdated

        java.util.Date getLastUpdated()
      • getName

        java.lang.String getName()
      • setName

        Policy setName​(java.lang.String name)
      • getPriority

        java.lang.Integer getPriority()
      • setPriority

        Policy setPriority​(java.lang.Integer priority)
      • getSystem

        java.lang.Boolean getSystem()
      • setSystem

        Policy setSystem​(java.lang.Boolean system)
      • createRule

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="POST - /api/v1/policies/{policyId}/rules")
        PolicyRule createRule​(PolicyRule policyRule)
        Creates a policy rule.
        Parameters:
        policyRule - (required)
        Returns:
        PolicyRule
      • deactivate

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="POST - /api/v1/policies/{policyId}/lifecycle/deactivate")
        void deactivate()
        Deactivates a policy.
      • update

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="PUT - /api/v1/policies/{policyId}")
        Policy update()
        Updates a policy.
        Returns:
        Policy
      • delete

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="DELETE - /api/v1/policies/{policyId}")
        void delete()
        Removes a policy.
        Specified by:
        delete in interface Deletable
      • activate

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="POST - /api/v1/policies/{policyId}/lifecycle/activate")
        void activate()
        Activates a policy.
      • listPolicyRules

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="GET - /api/v1/policies/{policyId}/rules")
        PolicyRuleList listPolicyRules()
        Enumerates all policy rules.
        Returns:
        PolicyRuleList
      • getPolicyRule

        @Generated(value="com.okta.swagger.codegen.OktaJavaClientApiCodegen",
                   date="2022-02-14T12:54:39.514-06:00",
                   comments="GET - /api/v1/policies/{policyId}/rules/{ruleId}")
        PolicyRule getPolicyRule​(java.lang.String ruleId)
        Gets a policy rule.
        Parameters:
        ruleId - (required)
        Returns:
        PolicyRule