ChannelAccount クラス

  • java.lang.Object
    • com.microsoft.bot.schema.ChannelAccount

public class ChannelAccount

メッセージをルーティングするために必要なチャネル アカウント情報。

コンストラクターの概要

コンストラクター 説明
ChannelAccount()

ChannelAccount クラスの新しいインスタンスを初期化します。

ChannelAccount(String withId)

ChannelAccount クラスの新しいインスタンスを初期化します。

ChannelAccount(String withId, String withName)

ChannelAccount クラスの新しいインスタンスを初期化します。

ChannelAccount(String withId, String withName, RoleTypes withRole)

ChannelAccount クラスの新しいインスタンスを初期化します。

ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId)

ChannelAccount クラスの新しいインスタンスを初期化します。

メソッドの概要

修飾子と型 メソッドと説明
static ChannelAccount clone(ChannelAccount channelAccount)

チャネルアカウントのディープ コピーを実行します。

static java.util.List<ChannelAccount> cloneList(List<ChannelAccount> channelAccounts)

チャネルアカウントの一覧のディープ コピーを実行します。

java.lang.String getAadObjectId()

Azure Active Directory (AAD) 内のこのアカウントのオブジェクト ID。

java.lang.String getId()

このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith。com、または @joesmith 123456)。

java.lang.String getName()

フレンドリ名を表示します。

java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getProperties()

オーバーフロー プロパティ。

RoleTypes getRole()

アカウントの背後にあるエンティティのロール (例: User、Bot など)。

void setAadObjectId(String withAadObjectId)

Azure Active Directory (AAD) 内のこのアカウントのオブジェクト ID。

void setId(String withId)

このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith。com、または @joesmith 123456)。

void setName(String withName)

フレンドリ名を表示します。

void setProperties(String key, JsonNode value)

オーバーフロー プロパティを設定します。

void setRole(RoleTypes withRole)

アカウントの背後にあるエンティティのロール (例: User、Bot など)。

メソッドの継承元: java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

コンストラクターの詳細

ChannelAccount

public ChannelAccount()

ChannelAccount クラスの新しいインスタンスを初期化します。

ChannelAccount

public ChannelAccount(String withId)

ChannelAccount クラスの新しいインスタンスを初期化します。

Parameters:

withId - このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith.com、、または @joesmith 123456)。

ChannelAccount

public ChannelAccount(String withId, String withName)

ChannelAccount クラスの新しいインスタンスを初期化します。

Parameters:

withId - このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith.com、、または @joesmith 123456)。
withName - フレンドリ名を表示します。

ChannelAccount

public ChannelAccount(String withId, String withName, RoleTypes withRole)

ChannelAccount クラスの新しいインスタンスを初期化します。

Parameters:

withId - このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith.com、、または @joesmith 123456)。
withName - フレンドリ名を表示します。
withRole - アカウントの背後にあるエンティティのロール (User、Bot など)。 使用可能な値は次のとおりです: 'user'、'bot'

ChannelAccount

public ChannelAccount(String withId, String withName, RoleTypes withRole, String withAadObjectId)

ChannelAccount クラスの新しいインスタンスを初期化します。

Parameters:

withId - このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith.com、、または @joesmith 123456)。
withName - フレンドリ名を表示します。
withRole - アカウントの背後にあるエンティティのロール (User、Bot など)。 使用可能な値は次のとおりです: 'user'、'bot'
withAadObjectId - Azure Active Directory (AAD) 内のこのアカウントのオブジェクト ID。

メソッドの詳細

clone

public static ChannelAccount clone(ChannelAccount channelAccount)

ChannelAccount のディープ コピーを実行します。

Parameters:

channelAccount - コピーする ChannelAccount。

Returns:

ChannelAccount の複製されたコピー。

cloneList

public static List cloneList(List channelAccounts)

ChannelAccounts のリストのディープ コピーを実行します。

Parameters:

channelAccounts - 複製するリスト。

Returns:

複製された ChannelAccounts のリスト。

getAadObjectId

public String getAadObjectId()

Azure Active Directory (AAD) 内のこのアカウントのオブジェクト ID。

Returns:

aadObjectId 値。

getId

public String getId()

このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith.com、、または @joesmith 123456)。

Returns:

id 値。

getName

public String getName()

フレンドリ名を表示します。

Returns:

名前の値。

getProperties

public Map getProperties()

オーバーフロー プロパティ。 オブジェクトのファースト クラス プロパティとしてモデル化されていないプロパティには、ここでアクセスできます。 注: プロパティ値は入れ子にすることができます。

Returns:

プロパティのKey-Value マップ

getRole

public RoleTypes getRole()

アカウントの背後にあるエンティティのロール (例: User、Bot など)。

Returns:

ロールの値。

setAadObjectId

public void setAadObjectId(String withAadObjectId)

Azure Active Directory (AAD) 内のこのアカウントのオブジェクト ID。

Parameters:

withAadObjectId - 設定する aadObjectId 値。

setId

public void setId(String withId)

このチャネルのユーザーまたはボットのチャネル ID (例: joe@smith.com、、または @joesmith 123456)。

Parameters:

withId - 設定する id 値。

setName

public void setName(String withName)

フレンドリ名を表示します。

Parameters:

withName - 設定する名前の値。

setProperties

public void setProperties(String key, JsonNode value)

オーバーフロー プロパティを設定します。

Parameters:

key - プロパティのキー
value - 値の JsonNode (入れ子にできます)

setRole

public void setRole(RoleTypes withRole)

アカウントの背後にあるエンティティのロール (例: User、Bot など)。

Parameters:

withRole - 設定するロール値。

適用対象