public static final class ImmutableCloudPackage.Builder extends Object
ImmutableCloudPackage.
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 |
|---|---|
ImmutableCloudPackage |
build()
Builds a new
ImmutableCloudPackage. |
ImmutableCloudPackage.Builder |
data(CloudPackage.Data data)
Initializes the value for the
data attribute. |
ImmutableCloudPackage.Builder |
from(CloudEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.lib.domain.CloudEntity instance. |
ImmutableCloudPackage.Builder |
from(CloudPackage instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.lib.domain.CloudPackage instance. |
ImmutableCloudPackage.Builder |
metadata(CloudMetadata metadata)
Initializes the value for the
metadata attribute. |
ImmutableCloudPackage.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableCloudPackage.Builder |
status(Status status)
Initializes the value for the
status attribute. |
ImmutableCloudPackage.Builder |
type(CloudPackage.Type type)
Initializes the value for the
type attribute. |
ImmutableCloudPackage.Builder |
v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
Initializes the value for the
v3Metadata attribute. |
public final ImmutableCloudPackage.Builder from(CloudEntity instance)
org.cloudfoundry.client.lib.domain.CloudEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder from(CloudPackage instance)
org.cloudfoundry.client.lib.domain.CloudPackage instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder metadata(CloudMetadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
v3Metadata attribute.v3Metadata - The value for v3Metadata (can be null)this builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder type(CloudPackage.Type type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder data(CloudPackage.Data data)
data attribute.data - The value for data (can be null)this builder for use in a chained invocationpublic final ImmutableCloudPackage.Builder status(Status status)
status attribute.status - The value for status (can be null)this builder for use in a chained invocationpublic ImmutableCloudPackage build()
ImmutableCloudPackage.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.