public static final class ShareDomainRequest.Builder extends Object
ShareDomainRequest.
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 |
|---|---|
ShareDomainRequest.Builder |
addAllData(Iterable<? extends Relationship> elements)
Adds elements to
data list. |
ShareDomainRequest |
build()
Builds a new
ShareDomainRequest. |
ShareDomainRequest.Builder |
data(Iterable<? extends Relationship> elements)
Sets or replaces all elements for
data list. |
ShareDomainRequest.Builder |
data(Relationship... elements)
Adds elements to
data list. |
ShareDomainRequest.Builder |
data(Relationship element)
Adds one element to
data list. |
ShareDomainRequest.Builder |
domainId(String domainId)
Initializes the value for the
domainId attribute. |
ShareDomainRequest.Builder |
from(ShareDomainRequest instance)
Fill a builder with attribute values from the provided
ShareDomainRequest instance. |
public final ShareDomainRequest.Builder from(ShareDomainRequest instance)
ShareDomainRequest 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 ShareDomainRequest.Builder data(Relationship element)
data list.element - A data elementthis builder for use in a chained invocationpublic final ShareDomainRequest.Builder data(Relationship... elements)
data list.elements - An array of data elementsthis builder for use in a chained invocationpublic final ShareDomainRequest.Builder data(Iterable<? extends Relationship> elements)
data list.elements - An iterable of data elementsthis builder for use in a chained invocationpublic final ShareDomainRequest.Builder addAllData(Iterable<? extends Relationship> elements)
data list.elements - An iterable of data elementsthis builder for use in a chained invocationpublic final ShareDomainRequest.Builder domainId(String domainId)
domainId attribute.domainId - The value for domainIdthis builder for use in a chained invocationpublic ShareDomainRequest build()
ShareDomainRequest.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.