public static final class ShareServiceInstanceResponse.Builder extends Object
ShareServiceInstanceResponse.
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 |
|---|---|
ShareServiceInstanceResponse.Builder |
addAllData(Iterable<? extends Relationship> elements)
Adds elements to
data list. |
ShareServiceInstanceResponse |
build()
Builds a new
ShareServiceInstanceResponse. |
ShareServiceInstanceResponse.Builder |
data(Iterable<? extends Relationship> elements)
Sets or replaces all elements for
data list. |
ShareServiceInstanceResponse.Builder |
data(Relationship... elements)
Adds elements to
data list. |
ShareServiceInstanceResponse.Builder |
data(Relationship element)
Adds one element to
data list. |
ShareServiceInstanceResponse.Builder |
from(ShareServiceInstanceResponse instance)
Fill a builder with attribute values from the provided
ShareServiceInstanceResponse instance. |
ShareServiceInstanceResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
ShareServiceInstanceResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
ShareServiceInstanceResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
ShareServiceInstanceResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
public final ShareServiceInstanceResponse.Builder from(ShareServiceInstanceResponse instance)
ShareServiceInstanceResponse 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 ShareServiceInstanceResponse.Builder data(Relationship element)
data list.element - A data elementthis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder data(Relationship... elements)
data list.elements - An array of data elementsthis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder data(Iterable<? extends Relationship> elements)
data list.elements - An iterable of data elementsthis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder addAllData(Iterable<? extends Relationship> elements)
data list.elements - An iterable of data elementsthis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder link(String key, Link value)
links map.key - The key in the links mapvalue - The associated value in the links mapthis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder link(Map.Entry<String,? extends Link> entry)
links map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder links(Map<String,? extends Link> entries)
links map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final ShareServiceInstanceResponse.Builder putAllLinks(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic ShareServiceInstanceResponse build()
ShareServiceInstanceResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.