TwilioSmsOutput Interface
Implements
public interface TwilioSmsOutput
implements java.lang.annotation.Annotation
Place this on a parameter whose value would be sent through twilio SMS. The parameter type should be OutputBinding, where T could be one of:
- Any native Java types such as int, String, byte[]
- Any POJO type
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
accountSid()
Defines the account SID of Twilio SMS to send. |
abstract java.lang.String |
authToken()
Defines the authorization token of Twilio SMS to send. |
abstract java.lang.String |
body()
Defines the content body of Twilio SMS to send. |
abstract java.lang.String |
dataType()
Defines how Functions runtime should treat the parameter value. |
abstract java.lang.String |
from()
Defines the source of Twilio SMS to send. |
abstract java.lang.String |
name()
The variable name used in function. |
abstract java.lang.String |
to()
Defines the target of Twilio SMS to send. |
Method Details
accountSid
public abstract String accountSid()
Defines the account SID of Twilio SMS to send.
Returns:
authToken
public abstract String authToken()
Defines the authorization token of Twilio SMS to send.
Returns:
body
public abstract String body()
Defines the content body of Twilio SMS to send.
Returns:
dataType
public abstract String dataType()
Defines how Functions runtime should treat the parameter value. Possible values are:
- "" or string: treat it as a string whose value is serialized from the parameter
- binary: treat it as a binary data whose value comes from for example OutputBinding<byte[]>
Returns:
from
public abstract String from()
Defines the source of Twilio SMS to send.
Returns:
name
public abstract String name()
The variable name used in function.json.
Returns:
to
public abstract String to()
Defines the target of Twilio SMS to send.
Returns: