public static final class ServiceKeyEntity.Builder extends Object
ServiceKeyEntity.
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 |
|---|---|
ServiceKeyEntity |
build()
Builds a new
ServiceKeyEntity. |
ServiceKeyEntity.Builder |
credential(Map.Entry<String,? extends Object> entry)
Put one entry to the
credentials map. |
ServiceKeyEntity.Builder |
credential(String key,
Object value)
Put one entry to the
credentials map. |
ServiceKeyEntity.Builder |
credentials(Map<String,? extends Object> entries)
Sets or replaces all mappings from the specified map as entries for the
credentials map. |
ServiceKeyEntity.Builder |
from(ServiceKeyEntity instance)
Fill a builder with attribute values from the provided
ServiceKeyEntity instance. |
ServiceKeyEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
ServiceKeyEntity.Builder |
putAllCredentials(Map<String,? extends Object> entries)
Put all mappings from the specified map as entries to
credentials map. |
ServiceKeyEntity.Builder |
serviceInstanceId(String serviceInstanceId)
Initializes the value for the
serviceInstanceId attribute. |
ServiceKeyEntity.Builder |
serviceInstanceUrl(String serviceInstanceUrl)
Initializes the value for the
serviceInstanceUrl attribute. |
ServiceKeyEntity.Builder |
serviceKeyParametersUrl(String serviceKeyParametersUrl)
Initializes the value for the
serviceKeyParametersUrl attribute. |
public final ServiceKeyEntity.Builder from(ServiceKeyEntity instance)
ServiceKeyEntity 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 ServiceKeyEntity.Builder credential(String key, Object value)
credentials map.key - The key in the credentials mapvalue - The associated value in the credentials mapthis builder for use in a chained invocationpublic final ServiceKeyEntity.Builder credential(Map.Entry<String,? extends Object> entry)
credentials map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ServiceKeyEntity.Builder credentials(Map<String,? extends Object> entries)
credentials map. Nulls are not permitted as keys or values, but parameter itself can be nullentries - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final ServiceKeyEntity.Builder putAllCredentials(Map<String,? extends Object> entries)
credentials map. Nulls are not permittedentries - The entries that will be added to the credentials mapthis builder for use in a chained invocationpublic final ServiceKeyEntity.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ServiceKeyEntity.Builder serviceInstanceId(String serviceInstanceId)
serviceInstanceId attribute.serviceInstanceId - The value for serviceInstanceId (can be null)this builder for use in a chained invocationpublic final ServiceKeyEntity.Builder serviceInstanceUrl(String serviceInstanceUrl)
serviceInstanceUrl attribute.serviceInstanceUrl - The value for serviceInstanceUrl (can be null)this builder for use in a chained invocationpublic final ServiceKeyEntity.Builder serviceKeyParametersUrl(String serviceKeyParametersUrl)
serviceKeyParametersUrl attribute.serviceKeyParametersUrl - The value for serviceKeyParametersUrl (can be null)this builder for use in a chained invocationpublic ServiceKeyEntity build()
ServiceKeyEntity.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.