> @@ -195,12 +211,45 @@ public Builder targetType(ScalingPolicyTargetType 
> targetType) {
>           this.targetType = targetType;
>           return this;
>        }
> +      
> +      /** 
> +       * @param cron This parameter specifies the recurring time when the 
> policy will be executed as a cron entry. 
> +       * For example, if this is parameter is set to "1 0 * * *",
> +       * the policy will be executed at one minute past midnight (00:01)
> +       * every day of the month, and every day of the week.
> +       * @return The builder object.
> +       * @see ScalingPolicyTargetType
> +       * @see ScalingPolicy#getTargetType()
> +       * @see <a href="http://en.wikipedia.org/wiki/Cron";>Cron</a>
> +       */
> +      public Builder cronSchedule(String cron) {
> +         this.type = ScalingPolicyType.SCHEDULE;
> +         this.args = Maps.newHashMap();

Yes, this ensures either/or. Yes, this should be an ImmutableMap...

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/71/files#r8644272

Reply via email to