Class Scope


  • public final class Scope
    extends Object
    Scope of the extension. It can be either Cluster or Namespace; but not both.
    • Constructor Detail

      • Scope

        public Scope()
    • Method Detail

      • cluster

        public ScopeCluster cluster()
        Get the cluster property: Specifies that the scope of the extension is Cluster.
        Returns:
        the cluster value.
      • withCluster

        public Scope withCluster​(ScopeCluster cluster)
        Set the cluster property: Specifies that the scope of the extension is Cluster.
        Parameters:
        cluster - the cluster value to set.
        Returns:
        the Scope object itself.
      • namespace

        public ScopeNamespace namespace()
        Get the namespace property: Specifies that the scope of the extension is Namespace.
        Returns:
        the namespace value.
      • withNamespace

        public Scope withNamespace​(ScopeNamespace namespace)
        Set the namespace property: Specifies that the scope of the extension is Namespace.
        Parameters:
        namespace - the namespace value to set.
        Returns:
        the Scope object itself.
      • validate

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