001 002/* 003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.twilio.restapi; 009 010import java.net.URI; 011 012import org.dellroad.jibxbindings.twilio.Method; 013 014/** 015 * Represents a <code><TwilioSandbox></code> element. 016 */ 017public class TwilioSandbox extends AccountResource implements TwilioResponseContent { 018 019 private String pin; 020 private String phoneNumber; 021 private URI voiceURL; 022 private Method voiceMethod; 023 private URI smsURL; 024 private Method smsMethod; 025 private APIVersion apiVersion; 026 027 /** 028 * An 8 digit number that gives access to this sandbox. 029 */ 030 public String getPin() { 031 return this.pin; 032 } 033 public void setPin(String pin) { 034 this.pin = pin; 035 } 036 037 /** 038 * The phone number of the sandbox. 039 */ 040 public String getPhoneNumber() { 041 return this.phoneNumber; 042 } 043 public void setPhoneNumber(String phoneNumber) { 044 this.phoneNumber = phoneNumber; 045 } 046 047 /** 048 * The URL Twilio will request when the sandbox number is called. 049 */ 050 public URI getVoiceURL() { 051 return this.voiceURL; 052 } 053 public void setVoiceURL(URI voiceURL) { 054 this.voiceURL = voiceURL; 055 } 056 057 /** 058 * The HTTP method to use when requesting the {@link #getVoiceURL voice URL}. 059 */ 060 public Method getVoiceMethod() { 061 return this.voiceMethod; 062 } 063 public void setVoiceMethod(Method voiceMethod) { 064 this.voiceMethod = voiceMethod; 065 } 066 067 /** 068 * The URL Twilio will request when receiving an incoming SMS message to the sandbox number. 069 */ 070 public URI getSMSURL() { 071 return this.smsURL; 072 } 073 public void setSMSURL(URI smsURL) { 074 this.smsURL = smsURL; 075 } 076 077 /** 078 * The HTTP method to use when requesting the {@link #getSMSURL SMS URL}. 079 */ 080 public Method getSMSMethod() { 081 return this.smsMethod; 082 } 083 public void setSMSMethod(Method smsMethod) { 084 this.smsMethod = smsMethod; 085 } 086 087 public APIVersion getAPIVersion() { 088 return this.apiVersion; 089 } 090 public void setAPIVersion(APIVersion apiVersion) { 091 this.apiVersion = apiVersion; 092 } 093} 094