public static class ControllerConfigurationImpl.ControllerConfigurationBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ControllerConfigurationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ControllerConfiguration |
build()
Builds the
ControllerConfiguration. |
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withApiGroup(java.lang.String apiGroup)
Set the api group.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withApiListType(java.lang.Class<? extends io.kubernetes.client.common.KubernetesListObject> apiListType)
Set the api list ype.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withApiType(java.lang.Class<? extends io.kubernetes.client.common.KubernetesObject> apiType)
Set the api type.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withLabelSelector(java.lang.String labelSelector)
Set the label selector.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withName(java.lang.String name)
Set the operator name.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withNamespaces(java.util.Set<java.lang.String> namespaces)
Set the namespaces.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withOnAddFilter(java.util.function.Predicate<? extends io.kubernetes.client.common.KubernetesObject> onAddFilter)
Set the filter for added resources.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withOnDeleteFilter(java.util.function.BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,java.lang.Boolean> onDeleteFilter)
Set the filter for deleted resources.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withOnUpdateFilter(java.util.function.BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesObject> onUpdateFilter)
Set the filter for updated resources.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withResourcePlural(java.lang.String resourcePlural)
Set the resource plural.
|
ControllerConfigurationImpl.ControllerConfigurationBuilder |
withResyncCheckPeriod(java.lang.Long resyncCheckPeriod)
Set the resync check period.
|
public ControllerConfigurationImpl.ControllerConfigurationBuilder withName(java.lang.String name)
name - namepublic ControllerConfigurationImpl.ControllerConfigurationBuilder withApiType(java.lang.Class<? extends io.kubernetes.client.common.KubernetesObject> apiType)
apiType - api typepublic ControllerConfigurationImpl.ControllerConfigurationBuilder withApiListType(java.lang.Class<? extends io.kubernetes.client.common.KubernetesListObject> apiListType)
apiListType - api list typepublic ControllerConfigurationImpl.ControllerConfigurationBuilder withResourcePlural(java.lang.String resourcePlural)
resourcePlural - resource pluralpublic ControllerConfigurationImpl.ControllerConfigurationBuilder withApiGroup(java.lang.String apiGroup)
apiGroup - api grouppublic ControllerConfigurationImpl.ControllerConfigurationBuilder withNamespaces(java.util.Set<java.lang.String> namespaces)
namespaces - namespacespublic ControllerConfigurationImpl.ControllerConfigurationBuilder withLabelSelector(java.lang.String labelSelector)
labelSelector - label selectorpublic ControllerConfigurationImpl.ControllerConfigurationBuilder withOnAddFilter(java.util.function.Predicate<? extends io.kubernetes.client.common.KubernetesObject> onAddFilter)
onAddFilter - on add predicatepublic ControllerConfigurationImpl.ControllerConfigurationBuilder withOnUpdateFilter(java.util.function.BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesObject> onUpdateFilter)
onUpdateFilter - on update predicatepublic ControllerConfigurationImpl.ControllerConfigurationBuilder withOnDeleteFilter(java.util.function.BiPredicate<? extends io.kubernetes.client.common.KubernetesObject,java.lang.Boolean> onDeleteFilter)
onDeleteFilter - on delete predicatepublic ControllerConfigurationImpl.ControllerConfigurationBuilder withResyncCheckPeriod(java.lang.Long resyncCheckPeriod)
resyncCheckPeriod - resynch check periodpublic ControllerConfiguration build()
ControllerConfiguration.