Class ObjectReference
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.ObjectReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ObjectReferenceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ObjectReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<ObjectReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ObjectReference references a PodMonitor, ServiceMonitor, Probe or PrometheusRule object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectReference()No args constructor for use in serializationObjectReference(String group, String name, String namespace, String resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectReferenceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetGroup()Group of the referent.StringgetName()Name of the referent.StringgetNamespace()Namespace of the referent.StringgetResource()Resource of the referent.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetGroup(String group)Group of the referent.voidsetName(String name)Name of the referent.voidsetNamespace(String namespace)Namespace of the referent.voidsetResource(String resource)Resource of the referent.ObjectReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getGroup
public String getGroup()
Group of the referent. When not specified, it defaults to `monitoring.coreos.com`
-
setGroup
public void setGroup(String group)
Group of the referent. When not specified, it defaults to `monitoring.coreos.com`
-
getName
public String getName()
Name of the referent. When not set, all resources in the namespace are matched.
-
setName
public void setName(String name)
Name of the referent. When not set, all resources in the namespace are matched.
-
getNamespace
public String getNamespace()
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
-
setNamespace
public void setNamespace(String namespace)
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
-
getResource
public String getResource()
Resource of the referent.
-
setResource
public void setResource(String resource)
Resource of the referent.
-
edit
public ObjectReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ObjectReferenceBuilder>
-
toBuilder
public ObjectReferenceBuilder toBuilder()
-
-