as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Builder to create a ProfileId object.

Constructors

new ProfileIdBuilder()

new ProfileIdBuilder(): ProfileIdBuilder

Returns

ProfileIdBuilder

Methods

build()

build(): ProfileId
Builds a ProfileId object with the fields set on the builder.

Throws

  • InvalidArgumentError if required fields are not set.

Returns

ProfileId ProfileId The ProfileId object created.

id()

id(id: string): ProfileIdBuilder
Sets the ID to be resolved under the associated namespace. This is a required field. build() will fail if this field is not set.

Parameters

id
string ID resolvable under the associated namespace.

Returns

ProfileIdBuilder ProfileIdBuilder The current ProfileIdBuilder object.

idNamespace()

idNamespace(idNamespace: string): ProfileIdBuilder
Sets the namespace the ID should be resolved under. See ProfileIdNamespaces for accepted values. This is a required field. build() will fail if this field is not set.

Parameters

idNamespace
string The namespace to resolved the ID under.

Returns

ProfileIdBuilder ProfileIdBuilder The current ProfileIdBuilder object.
最后修改于 2026年8月25日