@NotThreadSafe public static final class ImmutableVCloudEntityInfo.Builder extends Object
ImmutableVCloudEntityInfo
.
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 |
---|---|
ImmutableVCloudEntityInfo |
build()
Builds a new
ImmutableVCloudEntityInfo . |
ImmutableVCloudEntityInfo.Builder |
entityName(String entityName)
Initializes the value for the
entityName attribute. |
ImmutableVCloudEntityInfo.Builder |
entityUuid(VCloudUuid entityUuid)
Initializes the value for the
entityUuid attribute. |
ImmutableVCloudEntityInfo.Builder |
from(VCloudEntityInfo instance)
Fill a builder with attribute values from the provided
VCloudEntityInfo instance. |
ImmutableVCloudEntityInfo.Builder |
sourceType(VCloudProtectionSourceType sourceType)
Initializes the value for the
sourceType attribute. |
public final ImmutableVCloudEntityInfo.Builder from(VCloudEntityInfo instance)
VCloudEntityInfo
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 ImmutableVCloudEntityInfo.Builder entityName(String entityName)
entityName
attribute.entityName
- The value for entityNamethis
builder for use in a chained invocationpublic final ImmutableVCloudEntityInfo.Builder entityUuid(VCloudUuid entityUuid)
entityUuid
attribute.entityUuid
- The value for entityUuidthis
builder for use in a chained invocationpublic final ImmutableVCloudEntityInfo.Builder sourceType(VCloudProtectionSourceType sourceType)
sourceType
attribute.sourceType
- The value for sourceTypethis
builder for use in a chained invocationpublic ImmutableVCloudEntityInfo build()
ImmutableVCloudEntityInfo
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.