com.jakewharton.pingdom.services
Class ReportsSharedService.CreateBuilder

java.lang.Object
  extended by com.jakewharton.apibuilder.ApiBuilder
      extended by com.jakewharton.pingdom.PingdomApiBuilder<Message>
          extended by com.jakewharton.pingdom.services.ReportsSharedService.CreateBuilder
Enclosing class:
ReportsSharedService

public static final class ReportsSharedService.CreateBuilder
extends PingdomApiBuilder<Message>

Request builder for ReportsSharedService.create().


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jakewharton.pingdom.PingdomApiBuilder
PingdomApiBuilder.HttpMethod
 
Field Summary
 
Fields inherited from class com.jakewharton.apibuilder.ApiBuilder
API_URL_PLACEHOLDER_END, API_URL_PLACEHOLDER_START
 
Method Summary
 ReportsSharedService.CreateBuilder auto(boolean auto)
          Automatic period.
 ReportsSharedService.CreateBuilder checkId(int checkId)
          Identifier of target check.
 ReportsSharedService.CreateBuilder fromDay(int fromDay)
          Period start: day.
 ReportsSharedService.CreateBuilder fromMonth(int fromMonth)
          Period start: month.
 ReportsSharedService.CreateBuilder fromYear(int fromYear)
          Period start: year.
 ReportsSharedService.CreateBuilder sharedType(SharedReportType sharedType)
          Shared report type.
 ReportsSharedService.CreateBuilder toDay(int toDay)
          Period end: day.
 ReportsSharedService.CreateBuilder toMonth(int toMonth)
          Period end: month.
 ReportsSharedService.CreateBuilder toYear(int toYear)
          Period end: year.
 
Methods inherited from class com.jakewharton.pingdom.PingdomApiBuilder
execute, field, fire, parameter, parameter, parameter, parameter, postParameter, postParameter, postParameter, postParameter, postParameter
 
Methods inherited from class com.jakewharton.apibuilder.ApiBuilder
buildUrl, buildUrl, encodeUrl, field, field, field, field, field, hasField, hasParameter, parameter, parameter, parameter, parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sharedType

public ReportsSharedService.CreateBuilder sharedType(SharedReportType sharedType)
Shared report type.

Parameters:
sharedType - Value.
Returns:
Builder instance.

checkId

public ReportsSharedService.CreateBuilder checkId(int checkId)
Identifier of target check.

Parameters:
checkId - Value.
Returns:
Builder instance.

auto

public ReportsSharedService.CreateBuilder auto(boolean auto)

Automatic period.

If false, requires: fromyear, frommonth, fromday, toyear, tomonth, today.

Parameters:
auto - Value.
Returns:
Builder instance.

fromYear

public ReportsSharedService.CreateBuilder fromYear(int fromYear)
Period start: year.

Parameters:
fromYear - Value.
Returns:
Builder instance.

fromMonth

public ReportsSharedService.CreateBuilder fromMonth(int fromMonth)
Period start: month.

Parameters:
fromMonth - Value.
Returns:
Builder instance.

fromDay

public ReportsSharedService.CreateBuilder fromDay(int fromDay)
Period start: day.

Parameters:
fromDay - Value.
Returns:
Builder instance.

toYear

public ReportsSharedService.CreateBuilder toYear(int toYear)
Period end: year.

Parameters:
toYear - Value.
Returns:
Builder instance.

toMonth

public ReportsSharedService.CreateBuilder toMonth(int toMonth)
Period end: month.

Parameters:
toMonth - Value.
Returns:
Builder instance.

toDay

public ReportsSharedService.CreateBuilder toDay(int toDay)
Period end: day.

Parameters:
toDay - Value.
Returns:
Builder instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.