@Override public String get() { return dateService.iso8601SecondsDateFormat(); } }, seconds, TimeUnit.SECONDS);
@Override public String toString(Date date) { return dateService.iso8601SecondsDateFormat(date); }
@Override public String toString(Date date) { return dateService.iso8601SecondsDateFormat(date); }
@Override public String apply(Object from) { checkArgument(from instanceof Date, "this binder is only valid for Date!"); return dateService.iso8601SecondsDateFormat(Date.class.cast(from)); } }
/** * End date of the request. If this is a one-time request, the request remains active until all * instances launch, the request is canceled, or this date is reached. If the request is * persistent, it remains active until it is canceled or this date and time is reached. */ public RequestSpotInstancesOptions validUntil(Date end) { formParameters.put("ValidUntil", service.iso8601SecondsDateFormat(checkNotNull(end, "end"))); return this; }
/** * Start date of the request. If this is a one-time request, the request becomes active at this * date and time and remains active until all instances launch, the request expires, or the * request is canceled. If the request is persistent, the request becomes active at this date and * time and remains active until it expires or is canceled. */ public RequestSpotInstancesOptions validFrom(Date start) { formParameters.put("ValidFrom", service.iso8601SecondsDateFormat(checkNotNull(start, "start"))); return this; }
/** * End date of the request. If this is a one-time request, the request remains active until all * instances launch, the request is canceled, or this date is reached. If the request is * persistent, it remains active until it is canceled or this date and time is reached. */ public RequestSpotInstancesOptions validUntil(Date end) { formParameters.put("ValidUntil", service.iso8601SecondsDateFormat(checkNotNull(end, "end"))); return this; }
/** * Start date of the request. If this is a one-time request, the request becomes active at this * date and time and remains active until all instances launch, the request expires, or the * request is canceled. If the request is persistent, the request becomes active at this date and * time and remains active until it expires or is canceled. */ public RequestSpotInstancesOptions validFrom(Date start) { formParameters.put("ValidFrom", service.iso8601SecondsDateFormat(checkNotNull(start, "start"))); return this; }
@Override public String apply(Object from) { checkArgument(from instanceof Date, "this binder is only valid for Date!"); return dateService.iso8601SecondsDateFormat(Date.class.cast(from)); } }
/** * End date of the request. If this is a one-time request, the request remains active until all * instances launch, the request is canceled, or this date is reached. If the request is * persistent, it remains active until it is canceled or this date and time is reached. */ public RequestSpotInstancesOptions validUntil(Date end) { formParameters.put("ValidUntil", service.iso8601SecondsDateFormat(checkNotNull(end, "end"))); return this; }
@Override public String apply(Object input) { checkArgument(checkNotNull(input, "input") instanceof Date, "This function is only valid for Dates!"); Date date = Date.class.cast(input); return dateService.iso8601SecondsDateFormat(date); }
@Override public String apply(Object input) { checkArgument(checkNotNull(input, "input") instanceof Date, "This function is only valid for Dates!"); Date date = Date.class.cast(input); return dateService.iso8601SecondsDateFormat(date); }
@Override public String apply(Object input) { checkArgument(checkNotNull(input, "input") instanceof Date, "This function is only valid for Dates!"); Date date = Date.class.cast(input); return dateService.iso8601SecondsDateFormat(date); }
@Override public String apply(Object input) { checkArgument(checkNotNull(input, "input") instanceof Date, "This function is only valid for Dates!"); Date date = Date.class.cast(input); return dateService.iso8601SecondsDateFormat(date); }
@Override public String apply(Object input) { checkArgument(checkNotNull(input, "input") instanceof Date, "This function is only valid for Dates!"); Date date = Date.class.cast(input); return dateService.iso8601SecondsDateFormat(date); }
/** * @param startDate * the start date of the async job */ public ListAsyncJobsOptions startDate(Date startDate) { this.queryParameters.replaceValues("startdate", ImmutableSet.of(dateService.iso8601SecondsDateFormat(checkNotNull(startDate, "startDate")))); return this; }
/** * @param startDate * the start date of the async job */ public ListAsyncJobsOptions startDate(Date startDate) { this.queryParameters.replaceValues("startdate", ImmutableSet.of(dateService.iso8601SecondsDateFormat(checkNotNull(startDate, "startDate")))); return this; }
/** * @param startDate * the start date of the async job */ public ListAsyncJobsOptions startDate(Date startDate) { this.queryParameters.replaceValues("startdate", ImmutableSet.of(dateService.iso8601SecondsDateFormat(checkNotNull(startDate, "startDate")))); return this; }
@Test public void testIso8601SecondsDateFormat() { String dsString = dateService.iso8601SecondsDateFormat(testData[0].date); assertEquals(dsString, testData[0].iso8601SecondsDateString); }
@Test public void testIso8601SecondsDateFormat() { String dsString = dateService.iso8601SecondsDateFormat(testData[0].date); assertEquals(dsString, testData[0].iso8601SecondsDateString); }