public static final class FeatureFlagEntity.Builder extends Object
FeatureFlagEntity.
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 |
|---|---|
FeatureFlagEntity |
build()
Builds a new
FeatureFlagEntity. |
FeatureFlagEntity.Builder |
enabled(Boolean enabled)
Initializes the value for the
enabled attribute. |
FeatureFlagEntity.Builder |
errorMessage(String errorMessage)
Initializes the value for the
errorMessage attribute. |
FeatureFlagEntity.Builder |
from(AbstractFeatureFlag instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v2.featureflags.AbstractFeatureFlag instance. |
FeatureFlagEntity.Builder |
from(FeatureFlagEntity instance)
Fill a builder with attribute values from the provided
FeatureFlagEntity instance. |
FeatureFlagEntity.Builder |
name(String name)
Initializes the value for the
name attribute. |
FeatureFlagEntity.Builder |
url(String url)
Initializes the value for the
url attribute. |
public final FeatureFlagEntity.Builder from(AbstractFeatureFlag instance)
org.cloudfoundry.client.v2.featureflags.AbstractFeatureFlag instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final FeatureFlagEntity.Builder from(FeatureFlagEntity instance)
FeatureFlagEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final FeatureFlagEntity.Builder enabled(Boolean enabled)
enabled attribute.enabled - The value for enabled (can be null)this builder for use in a chained invocationpublic final FeatureFlagEntity.Builder errorMessage(String errorMessage)
errorMessage attribute.errorMessage - The value for errorMessage (can be null)this builder for use in a chained invocationpublic final FeatureFlagEntity.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final FeatureFlagEntity.Builder url(String url)
url attribute.url - The value for url (can be null)this builder for use in a chained invocationpublic FeatureFlagEntity build()
FeatureFlagEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.