Class ObjectReferenceDefinition
- java.lang.Object
-
- com.azure.resourcemanager.kubernetesconfiguration.models.ObjectReferenceDefinition
-
public final class ObjectReferenceDefinition extends Object
Object reference to a Kubernetes object on a cluster.
-
-
Constructor Summary
Constructors Constructor Description ObjectReferenceDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Name of the object.String
namespace()
Get the namespace property: Namespace of the object.void
validate()
Validates the instance.ObjectReferenceDefinition
withName(String name)
Set the name property: Name of the object.ObjectReferenceDefinition
withNamespace(String namespace)
Set the namespace property: Namespace of the object.
-
-
-
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.
-
-