public abstract class NamedResourceDecorator<T> extends Decorator<io.fabric8.kubernetes.api.builder.VisitableBuilder>
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY
For resource name null acts as a wildcards.
|
protected String |
kind |
protected String |
name |
| Constructor and Description |
|---|
NamedResourceDecorator() |
NamedResourceDecorator(String name) |
NamedResourceDecorator(String kind,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Decorator>[] |
after() |
abstract void |
andThenVisit(T item,
io.fabric8.kubernetes.api.model.ObjectMeta resourceMeta)
Visit a part of a Resource.
|
void |
andThenVisit(T item,
String kind,
io.fabric8.kubernetes.api.model.ObjectMeta resourceMeta)
Visit a part of a Resource.
|
String |
getKind() |
String |
getName() |
void |
visit(io.fabric8.kubernetes.api.builder.VisitableBuilder builder) |
public static final String ANY
protected final String kind
protected final String name
public NamedResourceDecorator()
public NamedResourceDecorator(String name)
public String getKind()
public String getName()
public void visit(io.fabric8.kubernetes.api.builder.VisitableBuilder builder)
public abstract void andThenVisit(T item, io.fabric8.kubernetes.api.model.ObjectMeta resourceMeta)
item - the visited itemresourceMeta - the ObjectMeta of the current resource.public void andThenVisit(T item, String kind, io.fabric8.kubernetes.api.model.ObjectMeta resourceMeta)
item - the visited itemkind - the resource kindresourceMeta - the ObjectMeta of the current resource.Copyright © 2015–2023 Red Hat. All rights reserved.