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 clusteridConstruct a builderinstanceAnnotations
(Map<String, Object> instanceAnnotations) Set the instance annotationsinstanceName
(String instanceName) Set the kubernetes instance nameSet the kubernetes namespacenamespaceAnnotations
(Map<String, Object> namespaceAnnotations) Set the namespace annotationsMethods inherited from class org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder
platform, properties, property
-
Method Details
-
createBuilder
Description copied from class:Context.ContextBaseBuilder
Construct a builder- Specified by:
createBuilder
in 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.ContextBaseBuilder
Construct an implementingContext.ContextBaseBuilder
- Specified by:
build
in classContext.ContextBaseBuilder<KubernetesContext,
KubernetesContext.KubernetesContextBuilder> - Returns:
- the newly constructed
Context
implementation
-