ProfileIdBuilder
用于创建ProfileId对象的构建器。
构造函数
new ProfileIdBuilder()
new ProfileIdBuilder(): ProfileIdBuilder
返回值
方法
build()
build():
ProfileId
使用在构建器上设置的字段构建ProfileId对象。
抛出
InvalidArgumentError如果未设置必填字段。
返回值
ProfileId
ProfileId 创建的ProfileId对象。
id()
id(id:
string): ProfileIdBuilder
设置要在关联命名空间下解析的ID。这是必填字段。如果未设置此字段,build() 将失败。
参数
id
string
可在关联的命名空间下解析的ID。
返回值
ProfileIdBuilder 当前的ProfileIdBuilder对象。
idNamespace()
idNamespace(idNamespace:
string): ProfileIdBuilder
设置应在其下解析ID的命名空间。有关可接受的值,请参阅ProfileIdNamespaces。这是必填字段。如果未设置此字段,build() 将失败。
参数
idNamespace
string
用于在其下解析ID的命名空间。
返回值
ProfileIdBuilder 当前的ProfileIdBuilder对象。
Last updated: 2026年8月2日

