com.jakewharton.pingdom.services
Class ReportsEmailService

java.lang.Object
  extended by com.jakewharton.apibuilder.ApiService
      extended by com.jakewharton.pingdom.PingdomApiService
          extended by com.jakewharton.pingdom.services.ReportsEmailService

public class ReportsEmailService
extends PingdomApiService

Represents Pingdom's remote email reports service.


Nested Class Summary
static class ReportsEmailService.CreateBuilder
          Request builder for create(String).
static class ReportsEmailService.DeleteBuilder
          Request builder for delete(int).
static class ReportsEmailService.ListBuilder
          Request builder for list().
static class ReportsEmailService.ModifyBuilder
          Request builder for modify(int).
 
Field Summary
 
Fields inherited from class com.jakewharton.apibuilder.ApiService
CONTENT_ENCODING
 
Constructor Summary
ReportsEmailService()
           
 
Method Summary
 ReportsEmailService.CreateBuilder create(String name)
          Creates a new email report.
 ReportsEmailService.DeleteBuilder delete(int reportId)
          Delete an email report.
 ReportsEmailService.ListBuilder list()
          Returns a list of email report subscriptions.
 ReportsEmailService.ModifyBuilder modify(int reportId)
          Modify an email report.
 
Methods inherited from class com.jakewharton.pingdom.PingdomApiService
delete, get, post, put, setApiVersion, setAppKey, setAuthentication, unmarshall, unmarshall
 
Methods inherited from class com.jakewharton.apibuilder.ApiService
acceptGzip, addRequestHeader, closeConnection, closeStream, convertStreamToString, executeDelete, executeDelete, executeGet, executeGet, executeMethod, executePost, executePost, getConnectTimeout, getParametersString, getReadTimeout, getWrappedInputStream, removeRequestHeader, setConnectTimeout, setReadTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportsEmailService

public ReportsEmailService()
Method Detail

list

public ReportsEmailService.ListBuilder list()
Returns a list of email report subscriptions.

Returns:
Builder instance.

create

public ReportsEmailService.CreateBuilder create(String name)
Creates a new email report.

Parameters:
name - Name.
Returns:
Builder instance.
Since:
2.0

modify

public ReportsEmailService.ModifyBuilder modify(int reportId)
Modify an email report.

Parameters:
reportId - Report ID.
Returns:
Builder instance.
Since:
2.0

delete

public ReportsEmailService.DeleteBuilder delete(int reportId)
Delete an email report.

Parameters:
reportId - Report ID.
Returns:
Builder instance.
Since:
2.0


Copyright © 2011 Jake Wharton. All Rights Reserved.