TwilioSmsOutput Interface

Implements

java.lang.annotation.Annotation

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.json.

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:

The Twilio SMS account SID string.

authToken

public abstract String authToken()

Defines the authorization token of Twilio SMS to send.

Returns:

The Twilio SMS authorization token string.

body

public abstract String body()

Defines the content body of Twilio SMS to send.

Returns:

The Twilio SMS content body string.

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:

The dataType which will be used by the Functions runtime.

from

public abstract String from()

Defines the source of Twilio SMS to send.

Returns:

The Twilio SMS source string.

name

public abstract String name()

The variable name used in function.json.

Returns:

The variable name used in function.json.

to

public abstract String to()

Defines the target of Twilio SMS to send.

Returns:

The Twilio SMS target string.

Applies to