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