Class CloudFoundryContext.CloudFoundryContextBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder<CloudFoundryContext,CloudFoundryContext.CloudFoundryContextBuilder>
org.springframework.cloud.servicebroker.model.CloudFoundryContext.CloudFoundryContextBuilder
- Enclosing class:
- CloudFoundryContext
public static final class CloudFoundryContext.CloudFoundryContextBuilder
extends Context.ContextBaseBuilder<CloudFoundryContext,CloudFoundryContext.CloudFoundryContextBuilder>
Provides a fluent API for constructing a
CloudFoundryContext.-
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder
platform, properties -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct an implementingContext.ContextBaseBuilder.Construct a builder.instanceName(String instanceName) Set the instance name.organizationAnnotations(Map<String, Object> organizationAnnotations) Set the organization annotations.organizationGuid(String organizationGuid) Set the organization GUID.organizationName(String organizationName) Set the organization name.spaceAnnotations(Map<String, Object> spaceAnnotations) Set the space annotations.Set the space GUID.Set the space name.Methods inherited from class org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder
platform, properties, property
-
Method Details
-
createBuilder
Description copied from class:Context.ContextBaseBuilderConstruct a builder.- Specified by:
createBuilderin classContext.ContextBaseBuilder<CloudFoundryContext,CloudFoundryContext.CloudFoundryContextBuilder> - Returns:
- the builder
-
organizationGuid
Set the organization GUID.- Parameters:
organizationGuid- the organization GUID- Returns:
- the builder
-
organizationName
Set the organization name.- Parameters:
organizationName- the organization name- Returns:
- the builder
-
organizationAnnotations
public CloudFoundryContext.CloudFoundryContextBuilder organizationAnnotations(Map<String, Object> organizationAnnotations) Set the organization annotations.- Parameters:
organizationAnnotations- the organization annotations- Returns:
- the builder
-
spaceGuid
Set the space GUID.- Parameters:
spaceGuid- the space GUID- Returns:
- the builder
-
spaceName
Set the space name.- Parameters:
spaceName- the space name- Returns:
- the builder
-
spaceAnnotations
public CloudFoundryContext.CloudFoundryContextBuilder spaceAnnotations(Map<String, Object> spaceAnnotations) Set the space annotations.- Parameters:
spaceAnnotations- the space annotations- Returns:
- the builder
-
instanceName
Set the instance name.- Parameters:
instanceName- the instance name- Returns:
- the builder
-
build
Description copied from class:Context.ContextBaseBuilderConstruct an implementingContext.ContextBaseBuilder.- Specified by:
buildin classContext.ContextBaseBuilder<CloudFoundryContext,CloudFoundryContext.CloudFoundryContextBuilder> - Returns:
- the newly constructed
Contextimplementation
-