Class ObjectReferenceDefinition


  • public final class ObjectReferenceDefinition
    extends Object
    Object reference to a Kubernetes object on a cluster.
    • Constructor Detail

      • ObjectReferenceDefinition

        public ObjectReferenceDefinition()
    • Method Detail

      • name

        public String name()
        Get the name property: Name of the object.
        Returns:
        the name value.
      • withName

        public ObjectReferenceDefinition withName​(String name)
        Set the name property: Name of the object.
        Parameters:
        name - the name value to set.
        Returns:
        the ObjectReferenceDefinition object itself.
      • namespace

        public String namespace()
        Get the namespace property: Namespace of the object.
        Returns:
        the namespace value.
      • withNamespace

        public ObjectReferenceDefinition withNamespace​(String namespace)
        Set the namespace property: Namespace of the object.
        Parameters:
        namespace - the namespace value to set.
        Returns:
        the ObjectReferenceDefinition object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.