of

Constructs a new BucketName instance from the given name if it is not null.

If the given name is null, an IllegalArgumentException will be thrown.

Return

New BucketName instance.

Parameters

name

Bucket name.

Throws

If the input value is null, or if the input string violates any of the rules outlined in this type's constructor documentation.