Class NamespaceProperties

java.lang.Object
com.azure.resourcemanager.containerservice.models.NamespaceProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<NamespaceProperties>

public final class NamespaceProperties extends Object implements com.azure.json.JsonSerializable<NamespaceProperties>
Properties of a namespace managed by ARM.
  • Constructor Details

    • NamespaceProperties

      public NamespaceProperties()
      Creates an instance of NamespaceProperties class.
  • Method Details

    • provisioningState

      public NamespaceProvisioningState provisioningState()
      Get the provisioningState property: The current provisioning state of the namespace.
      Returns:
      the provisioningState value.
    • labels

      public Map<String,String> labels()
      Get the labels property: The labels of managed namespace.
      Returns:
      the labels value.
    • withLabels

      public NamespaceProperties withLabels(Map<String,String> labels)
      Set the labels property: The labels of managed namespace.
      Parameters:
      labels - the labels value to set.
      Returns:
      the NamespaceProperties object itself.
    • annotations

      public Map<String,String> annotations()
      Get the annotations property: The annotations of managed namespace.
      Returns:
      the annotations value.
    • withAnnotations

      public NamespaceProperties withAnnotations(Map<String,String> annotations)
      Set the annotations property: The annotations of managed namespace.
      Parameters:
      annotations - the annotations value to set.
      Returns:
      the NamespaceProperties object itself.
    • portalFqdn

      public String portalFqdn()
      Get the portalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster. This FQDN is for use only by the Azure Portal and should not be used by other clients. The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal to function properly.
      Returns:
      the portalFqdn value.
    • defaultResourceQuota

      public ResourceQuota defaultResourceQuota()
      Get the defaultResourceQuota property: The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. Resource quotas are additive; if multiple resource quotas are applied to a given namespace, then the effective limit will be one such that all quotas on the namespace can be satisfied.
      Returns:
      the defaultResourceQuota value.
    • withDefaultResourceQuota

      public NamespaceProperties withDefaultResourceQuota(ResourceQuota defaultResourceQuota)
      Set the defaultResourceQuota property: The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. Resource quotas are additive; if multiple resource quotas are applied to a given namespace, then the effective limit will be one such that all quotas on the namespace can be satisfied.
      Parameters:
      defaultResourceQuota - the defaultResourceQuota value to set.
      Returns:
      the NamespaceProperties object itself.
    • defaultNetworkPolicy

      public NetworkPolicies defaultNetworkPolicy()
      Get the defaultNetworkPolicy property: The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. Network policies are additive; if a policy or policies apply to a given pod for a given direction, the connections allowed in that direction for the pod is the union of what all applicable policies allow.
      Returns:
      the defaultNetworkPolicy value.
    • withDefaultNetworkPolicy

      public NamespaceProperties withDefaultNetworkPolicy(NetworkPolicies defaultNetworkPolicy)
      Set the defaultNetworkPolicy property: The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. Network policies are additive; if a policy or policies apply to a given pod for a given direction, the connections allowed in that direction for the pod is the union of what all applicable policies allow.
      Parameters:
      defaultNetworkPolicy - the defaultNetworkPolicy value to set.
      Returns:
      the NamespaceProperties object itself.
    • adoptionPolicy

      public AdoptionPolicy adoptionPolicy()
      Get the adoptionPolicy property: Action if Kubernetes namespace with same name already exists.
      Returns:
      the adoptionPolicy value.
    • withAdoptionPolicy

      public NamespaceProperties withAdoptionPolicy(AdoptionPolicy adoptionPolicy)
      Set the adoptionPolicy property: Action if Kubernetes namespace with same name already exists.
      Parameters:
      adoptionPolicy - the adoptionPolicy value to set.
      Returns:
      the NamespaceProperties object itself.
    • deletePolicy

      public DeletePolicy deletePolicy()
      Get the deletePolicy property: Delete options of a namespace.
      Returns:
      the deletePolicy value.
    • withDeletePolicy

      public NamespaceProperties withDeletePolicy(DeletePolicy deletePolicy)
      Set the deletePolicy property: Delete options of a namespace.
      Parameters:
      deletePolicy - the deletePolicy value to set.
      Returns:
      the NamespaceProperties object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NamespaceProperties>
      Throws:
      IOException
    • fromJson

      public static NamespaceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NamespaceProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NamespaceProperties 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 NamespaceProperties.