Class KubernetesContext.KubernetesContextBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder<KubernetesContext,KubernetesContext.KubernetesContextBuilder>
org.springframework.cloud.servicebroker.model.KubernetesContext.KubernetesContextBuilder
- Enclosing class:
- KubernetesContext
public static final class KubernetesContext.KubernetesContextBuilder
extends Context.ContextBaseBuilder<KubernetesContext,KubernetesContext.KubernetesContextBuilder>
Builder class for KubernetesContext.
-
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder
platform, properties -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct an implementingContext.ContextBaseBuilder.Set the kubernetes clusterid.Construct a builder.instanceAnnotations(Map<String, Object> instanceAnnotations) Set the instance annotations.instanceName(String instanceName) Set the kubernetes instance name.Set the kubernetes namespace.namespaceAnnotations(Map<String, Object> namespaceAnnotations) Set the namespace annotations.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<KubernetesContext,KubernetesContext.KubernetesContextBuilder> - Returns:
- the builder
-
namespace
Set the kubernetes namespace.- Parameters:
namespace- the namespace- Returns:
- the builder
-
clusterid
Set the kubernetes clusterid.- Parameters:
clusterid- the clusterid- Returns:
- the builder
-
instanceName
Set the kubernetes instance name.- Parameters:
instanceName- the clusterid- Returns:
- the builder
-
namespaceAnnotations
public KubernetesContext.KubernetesContextBuilder namespaceAnnotations(Map<String, Object> namespaceAnnotations) Set the namespace annotations.- Parameters:
namespaceAnnotations- the namespace annotations- Returns:
- the builder
-
instanceAnnotations
public KubernetesContext.KubernetesContextBuilder instanceAnnotations(Map<String, Object> instanceAnnotations) Set the instance annotations.- Parameters:
instanceAnnotations- the instance annotations- Returns:
- the builder
-
build
Description copied from class:Context.ContextBaseBuilderConstruct an implementingContext.ContextBaseBuilder.- Specified by:
buildin classContext.ContextBaseBuilder<KubernetesContext,KubernetesContext.KubernetesContextBuilder> - Returns:
- the newly constructed
Contextimplementation
-