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