public static final class GetServicePlanResponse.Builder extends Object
GetServicePlanResponse.
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 |
|---|---|
GetServicePlanResponse.Builder |
addAllCosts(Iterable<? extends Cost> elements)
Adds elements to
costs list. |
GetServicePlanResponse.Builder |
available(Boolean available)
Initializes the value for the
available attribute. |
GetServicePlanResponse.Builder |
brokerCatalog(BrokerCatalog brokerCatalog)
Initializes the value for the
brokerCatalog attribute. |
GetServicePlanResponse |
build()
Builds a new
GetServicePlanResponse. |
GetServicePlanResponse.Builder |
cost(Cost element)
Adds one element to
costs list. |
GetServicePlanResponse.Builder |
costs(Cost... elements)
Adds elements to
costs list. |
GetServicePlanResponse.Builder |
costs(Iterable<? extends Cost> elements)
Sets or replaces all elements for
costs list. |
GetServicePlanResponse.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
GetServicePlanResponse.Builder |
description(String description)
Initializes the value for the
description attribute. |
GetServicePlanResponse.Builder |
free(Boolean free)
Initializes the value for the
free attribute. |
GetServicePlanResponse.Builder |
from(org.cloudfoundry.client.v3.serviceplans._GetServicePlanResponse instance)
Copy abstract value type
_GetServicePlanResponse instance into builder. |
GetServicePlanResponse.Builder |
from(GetServicePlanResponse instance)
Fill a builder with attribute values from the provided
GetServicePlanResponse instance. |
GetServicePlanResponse.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.Resource instance. |
GetServicePlanResponse.Builder |
from(ServicePlan instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v3.serviceplans.ServicePlan instance. |
GetServicePlanResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
GetServicePlanResponse.Builder |
link(Map.Entry<String,? extends Link> entry)
Put one entry to the
links map. |
GetServicePlanResponse.Builder |
link(String key,
Link value)
Put one entry to the
links map. |
GetServicePlanResponse.Builder |
links(Map<String,? extends Link> entries)
Sets or replaces all mappings from the specified map as entries for the
links map. |
GetServicePlanResponse.Builder |
maintenanceInfo(MaintenanceInfo maintenanceInfo)
Initializes the value for the
maintenanceInfo attribute. |
GetServicePlanResponse.Builder |
metadata(Metadata metadata)
Initializes the value for the
metadata attribute. |
GetServicePlanResponse.Builder |
name(String name)
Initializes the value for the
name attribute. |
GetServicePlanResponse.Builder |
putAllLinks(Map<String,? extends Link> entries)
Put all mappings from the specified map as entries to
links map. |
GetServicePlanResponse.Builder |
relationships(ServicePlanRelationships relationships)
Initializes the value for the
relationships attribute. |
GetServicePlanResponse.Builder |
schemas(Schemas schemas)
Initializes the value for the
schemas attribute. |
GetServicePlanResponse.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
GetServicePlanResponse.Builder |
visibilityType(Visibility visibilityType)
Initializes the value for the
visibilityType attribute. |
public final GetServicePlanResponse.Builder from(Resource instance)
org.cloudfoundry.client.v3.Resource instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder from(ServicePlan instance)
org.cloudfoundry.client.v3.serviceplans.ServicePlan instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder from(GetServicePlanResponse instance)
GetServicePlanResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder from(org.cloudfoundry.client.v3.serviceplans._GetServicePlanResponse instance)
_GetServicePlanResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAtthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder link(String key, Link value)
links map.key - The key in the links mapvalue - The associated value in the links mapthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder link(Map.Entry<String,? extends Link> entry)
links map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder links(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder putAllLinks(Map<String,? extends Link> entries)
links map. Nulls are not permittedentries - The entries that will be added to the links mapthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final GetServicePlanResponse.Builder available(Boolean available)
available attribute.available - The value for availablethis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder brokerCatalog(BrokerCatalog brokerCatalog)
brokerCatalog attribute.brokerCatalog - The value for brokerCatalogthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder cost(Cost element)
costs list.element - A costs elementthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder costs(Cost... elements)
costs list.elements - An array of costs elementsthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder costs(Iterable<? extends Cost> elements)
costs list.elements - An iterable of costs elementsthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder addAllCosts(Iterable<? extends Cost> elements)
costs list.elements - An iterable of costs elementsthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder description(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder free(Boolean free)
free attribute.free - The value for freethis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder maintenanceInfo(MaintenanceInfo maintenanceInfo)
maintenanceInfo attribute.maintenanceInfo - The value for maintenanceInfo (can be null)this builder for use in a chained invocationpublic final GetServicePlanResponse.Builder metadata(Metadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final GetServicePlanResponse.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder relationships(ServicePlanRelationships relationships)
relationships attribute.relationships - The value for relationshipsthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder schemas(Schemas schemas)
schemas attribute.schemas - The value for schemasthis builder for use in a chained invocationpublic final GetServicePlanResponse.Builder visibilityType(Visibility visibilityType)
visibilityType attribute.visibilityType - The value for visibilityTypethis builder for use in a chained invocationpublic GetServicePlanResponse build()
GetServicePlanResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.