public static class AmazonContentId.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AmazonContentId |
build()
Converts the builder to an instance.
|
AmazonContentId.Builder |
id(java.lang.String id)
Sets the string identifier to be resolved under the associated namespace.
|
AmazonContentId.Builder |
namespace(java.lang.String namespace)
Sets the namespace for the ID.
|
public AmazonContentId.Builder id(java.lang.String id)
id
- String identifier.public AmazonContentId.Builder namespace(java.lang.String namespace)
AmazonContentId
for accepted values. This field is
always required.namespace
- namespace the ID should be resolved under.public AmazonContentId build() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if data is missing required fields or fails basic data validation.