Share via


SendGridOutput インターフェイス

public interface SendGridOutput

この値を SendGrid に書き込むパラメーターに配置します。 パラメーターの型は OutputBinding<T> である必要があります。T は次のいずれかになります。

    <li>
    
      <p>Any native Java types such as int, String, byte[] </p>
    
    </li>
    
    <li>
    
      <p>Any POJO type </p>
    
    </li>
    

メソッドの概要

修飾子と型 メソッドと説明
String apiKey()

書き込む SendGrid の API キーを定義します。

String dataType()

Functions ランタイムがパラメーター値をどのように扱うかを定義します。 次のいずれかの値になります。

    <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()

書き込む SendGrid の 'FROM' 名を定義します。

String name()

function.json で使用される変数名。

String subject()

書き込む SendGrid 電子メールの件名を定義します。

String text()

書き込む SendGrid メールのコンテンツ テキストを定義します。

String to()

書き込む SendGrid の 'TO' メールを定義します。

メソッドの詳細

apiKey

public String apiKey()

書き込む SendGrid の API キーを定義します。

Returns:

SendGrid API キー文字列。

dataType

public String dataType() default ""

Functions ランタイムがパラメーター値をどのように扱うかを定義します。 次のいずれかの値になります。

    <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:

Functions ランタイムによって使用される dataType。

from

public String from()

書き込む SendGrid の 'FROM' 名を定義します。

Returns:

SendGrid 'FROM' の名前文字列。

name

public String name()

function.json で使用される変数名。

Returns:

function.json で使用される変数名。

subject

public String subject()

書き込む SendGrid 電子メールの件名を定義します。

Returns:

SendGrid 電子メールの件名文字列。

text

public String text()

書き込む SendGrid メールのコンテンツ テキストを定義します。

Returns:

SendGrid 電子メール コンテンツ文字列。

to

public String to()

書き込む SendGrid の 'TO' メールを定義します。

Returns:

SendGrid 'TO' 電子メール文字列。

適用対象