다음을 통해 공유


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:

    <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&lt;byte[]&gt; </p>
    
    </li>
    

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:

The Twilio SMS account SID string.

authToken

public String authToken()

Defines the authorization token of Twilio SMS to send.

Returns:

The Twilio SMS authorization token string.

body

public String body()

Defines the content body of Twilio SMS to send.

Returns:

The Twilio SMS content body string.

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&lt;byte[]&gt; </p>
    
    </li>
    

Returns:

The dataType which will be used by the Functions runtime.

from

public String from()

Defines the source of Twilio SMS to send.

Returns:

The Twilio SMS source string.

name

public String name()

The variable name used in function.json.

Returns:

The variable name used in function.json.

to

public String to()

Defines the target of Twilio SMS to send.

Returns:

The Twilio SMS target string.

Applies to