Class Scope
- java.lang.Object
-
- com.azure.resourcemanager.kubernetesconfiguration.models.Scope
-
public final class Scope extends Object
Scope of the extension. It can be either Cluster or Namespace; but not both.
-
-
Constructor Summary
Constructors Constructor Description Scope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopeCluster
cluster()
Get the cluster property: Specifies that the scope of the extension is Cluster.ScopeNamespace
namespace()
Get the namespace property: Specifies that the scope of the extension is Namespace.void
validate()
Validates the instance.Scope
withCluster(ScopeCluster cluster)
Set the cluster property: Specifies that the scope of the extension is Cluster.Scope
withNamespace(ScopeNamespace namespace)
Set the namespace property: Specifies that the scope of the extension is Namespace.
-
-
-
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.
-
-