as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

IContentRatingBuilder

Builder for IContentRating objects; raises InvalidRatingsIdentifierError if the combination of ratings system, rating, and content descriptors is invalid.

Methods

build()

build(): Promise<IContentRating>

Builds an IContentRating object.

Returns

Promise<IContentRating>

Throws

InvalidRatingsIdentifierError if the passed parameters do not correspond to a valid standardized rating-in-rating-system coordinate or if one or more content descriptors is invalid.

Throws

InvalidArgumentError if a required builder property (such as ratingsSystem) is missing.


contentDescriptors()

contentDescriptors(contentDescriptors): IContentRatingBuilder

Set optionally specified content descriptors for the rating to be built. The default (if this method is not called) is an empty array.

Parameters

contentDescriptors

string[]

a unordered array of 0 or more content descriptor identifiers. Duplicates are removed in the built IContentRating

Returns

IContentRatingBuilder


rating()

rating(rating): IContentRatingBuilder

Set required rating property for the rating to be built.

Parameters

rating

string

the string identifier for the particular rating within the IContentRating to be built's ratingSystem.

Returns

IContentRatingBuilder


ratingsSystem()

ratingsSystem(ratingsSystem): IContentRatingBuilder

Set required ratingsSystem property for the rating to be built.

Parameters

ratingsSystem

string

the unique string identifier for the ratings system

Returns

IContentRatingBuilder


Last updated: Oct 02, 2025