Interface PolicyCreateBuilder

    • Method Detail

      • name

        PolicyCreateBuilder name​(String name)
        Add the name for the policy.
        Parameters:
        name - The name for the policy.
        Returns:
        PolicyCreateBuilder
      • spec

        PolicyCreateBuilder spec​(Map<String,​Object> spec)
        Add a detailed specification based on the policy type.
        Parameters:
        spec - A detailed specification based on the policy type.
        Returns:
        PolicyCreateBuilder
      • properties

        PolicyCreateBuilder properties​(Map<String,​Object> properties)
        Add the properties of the spec.
        Parameters:
        properties - The properties of the spec.
        Returns:
        PolicyCreateBuilder
      • adjustment

        PolicyCreateBuilder adjustment​(Map<String,​String> adjustment)
        Add the adjustment of the policy.
        Parameters:
        adjustment - The adjustment of the policy.
        Returns:
        PolicyCreateBuilder
      • minStep

        PolicyCreateBuilder minStep​(int minStep)
        Add the value of the min_step for policy.
        Parameters:
        minStep - The value of the min_step for policy.
        Returns:
        PolicyCreateBuilder
      • number

        PolicyCreateBuilder number​(int number)
        Add the number of the policy.
        Parameters:
        number - The number of the policy.
        Returns:
        PolicyCreateBuilder
      • adjustmentType

        PolicyCreateBuilder adjustmentType​(String adjustmentType)
        Add the type of the adjustment for the policy.
        Parameters:
        adjustmentType - The type of the adjustment for the policy.
        Returns:
        PolicyCreateBuilder
      • event

        PolicyCreateBuilder event​(String event)
        Add the event of the properties for the policy.
        Parameters:
        event - The event of the properties for the policy.
        Returns:
        PolicyCreateBuilder
      • specType

        PolicyCreateBuilder specType​(String specType)
        Add the type of the spec for the policy.
        Parameters:
        specType - The type of the spec for the policy.
        Returns:
        PolicyCreateBuilder
      • version

        PolicyCreateBuilder version​(String version)
        Add the version of the spec for the policy.
        Parameters:
        version - The version of the spec for the policy.
        Returns:
        PolicyCreateBuilder