public static final class BatchCreateClientsResponse.Builder extends Object
BatchCreateClientsResponse.
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 |
|---|---|
BatchCreateClientsResponse.Builder |
addAllClients(Iterable<? extends Client> elements)
Adds elements to
clients list. |
BatchCreateClientsResponse |
build()
Builds a new
BatchCreateClientsResponse. |
BatchCreateClientsResponse.Builder |
client(Client element)
Adds one element to
clients list. |
BatchCreateClientsResponse.Builder |
clients(Client... elements)
Adds elements to
clients list. |
BatchCreateClientsResponse.Builder |
clients(Iterable<? extends Client> elements)
Sets or replaces all elements for
clients list. |
BatchCreateClientsResponse.Builder |
from(BatchCreateClientsResponse instance)
Fill a builder with attribute values from the provided
BatchCreateClientsResponse instance. |
public final BatchCreateClientsResponse.Builder from(BatchCreateClientsResponse instance)
BatchCreateClientsResponse instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BatchCreateClientsResponse.Builder client(Client element)
clients list.element - A clients elementthis builder for use in a chained invocationpublic final BatchCreateClientsResponse.Builder clients(Client... elements)
clients list.elements - An array of clients elementsthis builder for use in a chained invocationpublic final BatchCreateClientsResponse.Builder clients(Iterable<? extends Client> elements)
clients list.elements - An iterable of clients elementsthis builder for use in a chained invocationpublic final BatchCreateClientsResponse.Builder addAllClients(Iterable<? extends Client> elements)
clients list.elements - An iterable of clients elementsthis builder for use in a chained invocationpublic BatchCreateClientsResponse build()
BatchCreateClientsResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.