public static final class CreateRoleRequest.Builder extends Object
CreateRoleRequest.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
CreateRoleRequest |
build()
Builds a new
CreateRoleRequest. |
CreateRoleRequest.Builder |
from(CreateRoleRequest instance)
Fill a builder with attribute values from the provided
CreateRoleRequest instance. |
CreateRoleRequest.Builder |
relationships(RoleRelationships relationships)
Initializes the value for the
relationships attribute. |
CreateRoleRequest.Builder |
type(RoleType type)
Initializes the value for the
type attribute. |
public final CreateRoleRequest.Builder from(CreateRoleRequest instance)
CreateRoleRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateRoleRequest.Builder relationships(RoleRelationships relationships)
relationships attribute.relationships - The value for relationshipsthis builder for use in a chained invocationpublic final CreateRoleRequest.Builder type(RoleType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic CreateRoleRequest build()
CreateRoleRequest.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.