com.jakewharton.pingdom.services
Class ContactService.ModifyBuilder

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

public static final class ContactService.ModifyBuilder
extends PingdomApiBuilder<Message>

Request builder for ContactService.modify(int).


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
 ContactService.ModifyBuilder cellPhone(String cellPhone)
          Cellphone number, without the country code part.
 ContactService.ModifyBuilder countryCode(String countryCode)
          Cellphone country code (Requires cellphone and countryiso).
 ContactService.ModifyBuilder countryIso(String countryIso)
          Cellphone country ISO code.
 ContactService.ModifyBuilder defaultSmsProvider(String defaultSmsProvider)
          Default SMS provider.
 ContactService.ModifyBuilder directTwitter(boolean directTwitter)
          Send twitter messages as Direct Messages.
 ContactService.ModifyBuilder email(String email)
          Email.
 ContactService.ModifyBuilder name(String name)
          Name.
 ContactService.ModifyBuilder twitterUser(String twitterUser)
          Twitter user.
 
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

name

public ContactService.ModifyBuilder name(String name)
Name.

Parameters:
name - Value.
Returns:
Builder instance.

email

public ContactService.ModifyBuilder email(String email)
Email.

Parameters:
email - Value.
Returns:
Builder instance.

cellPhone

public ContactService.ModifyBuilder cellPhone(String cellPhone)
Cellphone number, without the country code part. In some countries you are supposed to exclude leading zeroes. (Requires countrycode and countryiso).

Parameters:
cellPhone - Value.
Returns:
Builder instance.

countryCode

public ContactService.ModifyBuilder countryCode(String countryCode)
Cellphone country code (Requires cellphone and countryiso).

Parameters:
countryCode - Value.
Returns:
Builder instance.

countryIso

public ContactService.ModifyBuilder countryIso(String countryIso)
Cellphone country ISO code. (Requires cellphone and countrycode).

Parameters:
countryIso - Value (example: US (USA), GB (Britain) or SE (Sweden)).
Returns:
Builder instance.

defaultSmsProvider

public ContactService.ModifyBuilder defaultSmsProvider(String defaultSmsProvider)
Default SMS provider.

Parameters:
defaultSmsProvider - Value.
Returns:
Builder instance.

directTwitter

public ContactService.ModifyBuilder directTwitter(boolean directTwitter)
Send twitter messages as Direct Messages.

Parameters:
directTwitter - Value.
Returns:
Builder instance.

twitterUser

public ContactService.ModifyBuilder twitterUser(String twitterUser)
Twitter user.

Parameters:
twitterUser - Value.
Returns:
Builder instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.