Class ManagedNamespaceInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.containerservice.fluent.models.ManagedNamespaceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ManagedNamespaceInner
extends com.azure.core.management.SubResource
Namespace managed by ARM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: Unique read-only string used to implement optimistic concurrency.static ManagedNamespaceInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedNamespaceInner from the JsonReader.location()Get the location property: The location of the namespace.name()Get the name property: The name of the resource that is unique within a resource group.Get the properties property: Properties of a namespace.com.azure.core.management.SystemDataGet the systemData property: The system metadata relating to this resource.tags()Get the tags property: The tags to be persisted on the managed cluster namespace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.voidvalidate()Validates the instance.withLocation(String location) Set the location property: The location of the namespace.withProperties(NamespaceProperties properties) Set the properties property: Properties of a namespace.Set the tags property: The tags to be persisted on the managed cluster namespace.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedNamespaceInner
public ManagedNamespaceInner()Creates an instance of ManagedNamespaceInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system metadata relating to this resource.- Returns:
- the systemData value.
-
tags
-
withTags
Set the tags property: The tags to be persisted on the managed cluster namespace.- Parameters:
tags- the tags value to set.- Returns:
- the ManagedNamespaceInner object itself.
-
etag
Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal eTag convention.- Returns:
- the etag value.
-
location
Get the location property: The location of the namespace.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the namespace.- Parameters:
location- the location value to set.- Returns:
- the ManagedNamespaceInner object itself.
-
properties
Get the properties property: Properties of a namespace.- Returns:
- the properties value.
-
withProperties
Set the properties property: Properties of a namespace.- Parameters:
properties- the properties value to set.- Returns:
- the ManagedNamespaceInner object itself.
-
name
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Returns:
- the name value.
-
type
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ManagedNamespaceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedNamespaceInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedNamespaceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedNamespaceInner.
-