Tabnine Logo
SnapshotPolicySchedule
Code IndexAdd Tabnine to your IDE (free)

How to use
SnapshotPolicySchedule
in
org.jclouds.cloudstack.domain

Best Java code snippets using org.jclouds.cloudstack.domain.SnapshotPolicySchedule (Showing top 20 results out of 315)

origin: jclouds/legacy-jclouds

public SnapshotPolicySchedule build() {
  return new SnapshotPolicySchedule(interval, time);
}
origin: jclouds/legacy-jclouds

 public T fromSnapshotPolicySchedule(SnapshotPolicySchedule in) {
   return this
      .interval(in.getInterval())
      .time(in.getTime());
 }
}
origin: jclouds/legacy-jclouds

@Override
public String toString() {
 return string().toString();
}
origin: jclouds/legacy-jclouds

public static SnapshotPolicySchedule weekly(int day, int hour, int minute) {
 return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.WEEKLY).time(String.format("%02d:%02d:%02d", minute, hour, day)).build();
}
origin: jclouds/legacy-jclouds

  public static SnapshotPolicySchedule monthly(int day, int hour, int minute) {
   return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.MONTHLY).time(String.format("%02d:%02d:%02d", minute, hour, day)).build();
  }
}
origin: org.jclouds.api/cloudstack

 public T fromSnapshotPolicySchedule(SnapshotPolicySchedule in) {
   return this
      .interval(in.getInterval())
      .time(in.getTime());
 }
}
origin: jclouds/legacy-jclouds

public static SnapshotPolicySchedule daily(int hour, int minute) {
 return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.DAILY).time(String.format("%02d:%02d", minute, hour)).build();
}
origin: org.jclouds.api/cloudstack

@Override
public String toString() {
 return string().toString();
}
origin: org.jclouds.api/cloudstack

public SnapshotPolicySchedule build() {
  return new SnapshotPolicySchedule(interval, time);
}
origin: apache/jclouds

 public T fromSnapshotPolicySchedule(SnapshotPolicySchedule in) {
   return this
      .interval(in.getInterval())
      .time(in.getTime());
 }
}
origin: org.jclouds.api/cloudstack

  public static SnapshotPolicySchedule monthly(int day, int hour, int minute) {
   return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.MONTHLY).time(String.format("%02d:%02d:%02d", minute, hour, day)).build();
  }
}
origin: apache/jclouds

@Override
public String toString() {
 return string().toString();
}
origin: apache/jclouds

public SnapshotPolicySchedule build() {
  return new SnapshotPolicySchedule(interval, time);
}
origin: jclouds/legacy-jclouds

  @SuppressWarnings("unchecked")
  @Override
  public <R extends HttpRequest> R bindToRequest(R request, Object input) {
   checkArgument(input instanceof SnapshotPolicySchedule, "this binder is only valid for SnapshotPolicySchedule");
   SnapshotPolicySchedule schedule = SnapshotPolicySchedule.class.cast(input);
   Builder<String, String> builder = ImmutableMultimap.<String, String> builder();
   builder.put("intervaltype", schedule.getInterval().toString());
   builder.put("schedule", schedule.getTime().toString());
   return (R) request.toBuilder().replaceQueryParams(builder.build()).build();
  }
}
origin: jclouds/legacy-jclouds

public static SnapshotPolicySchedule hourly(int minute) {
 return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.HOURLY).time(String.format("%02d", minute)).build();
}
origin: org.jclouds.api/cloudstack

  @SuppressWarnings("unchecked")
  @Override
  public <R extends HttpRequest> R bindToRequest(R request, Object input) {
   checkArgument(input instanceof SnapshotPolicySchedule, "this binder is only valid for SnapshotPolicySchedule");
   SnapshotPolicySchedule schedule = SnapshotPolicySchedule.class.cast(input);
   Builder<String, String> builder = ImmutableMultimap.<String, String> builder();
   builder.put("intervaltype", schedule.getInterval().toString());
   builder.put("schedule", schedule.getTime().toString());
   return (R) request.toBuilder().replaceQueryParams(builder.build()).build();
  }
}
origin: apache/jclouds

  public static SnapshotPolicySchedule monthly(int day, int hour, int minute) {
   return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.MONTHLY).time(String.format("%02d:%02d:%02d", minute, hour, day)).build();
  }
}
origin: apache/jclouds

  @SuppressWarnings("unchecked")
  @Override
  public <R extends HttpRequest> R bindToRequest(R request, Object input) {
   checkArgument(input instanceof SnapshotPolicySchedule, "this binder is only valid for SnapshotPolicySchedule");
   SnapshotPolicySchedule schedule = SnapshotPolicySchedule.class.cast(input);
   Builder<String, String> builder = ImmutableMultimap.<String, String> builder();
   builder.put("intervaltype", schedule.getInterval().toString());
   builder.put("schedule", schedule.getTime().toString());
   return (R) request.toBuilder().replaceQueryParams(builder.build()).build();
  }
}
origin: apache/jclouds

public static SnapshotPolicySchedule weekly(int day, int hour, int minute) {
 return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.WEEKLY).time(String.format("%02d:%02d:%02d", minute, hour, day)).build();
}
origin: org.jclouds.api/cloudstack

public static SnapshotPolicySchedule weekly(int day, int hour, int minute) {
 return SnapshotPolicySchedule.builder().interval(Snapshot.Interval.WEEKLY).time(String.format("%02d:%02d:%02d", minute, hour, day)).build();
}
org.jclouds.cloudstack.domainSnapshotPolicySchedule

Javadoc

Describes the schedule of a snapshot policy.

Most used methods

  • <init>
  • builder
  • getInterval
  • getTime
  • string

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • Kernel (java.awt.image)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now