Class ClusterPoolNetworkProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolNetworkProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolNetworkProfile>
Direct Known Subclasses:
ClusterPoolResourcePropertiesNetworkProfile

public class ClusterPoolNetworkProfile extends Object implements com.azure.json.JsonSerializable<ClusterPoolNetworkProfile>
Cluster pool networking configuration.
  • Constructor Details

    • ClusterPoolNetworkProfile

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

    • subnetId

      public String subnetId()
      Get the subnetId property: Cluster pool subnet resource id.
      Returns:
      the subnetId value.
    • withSubnetId

      public ClusterPoolNetworkProfile withSubnetId(String subnetId)
      Set the subnetId property: Cluster pool subnet resource id.
      Parameters:
      subnetId - the subnetId value to set.
      Returns:
      the ClusterPoolNetworkProfile object itself.
    • outboundType

      public OutboundType outboundType()
      Get the outboundType property: This can only be set at cluster pool creation time and cannot be changed later.
      Returns:
      the outboundType value.
    • withOutboundType

      public ClusterPoolNetworkProfile withOutboundType(OutboundType outboundType)
      Set the outboundType property: This can only be set at cluster pool creation time and cannot be changed later.
      Parameters:
      outboundType - the outboundType value to set.
      Returns:
      the ClusterPoolNetworkProfile object itself.
    • enablePrivateApiServer

      public Boolean enablePrivateApiServer()
      Get the enablePrivateApiServer property: ClusterPool is based on AKS cluster. AKS cluster exposes the API server to public internet by default. If you set this property to true, a private AKS cluster will be created, and it will use private apiserver, which is not exposed to public internet.
      Returns:
      the enablePrivateApiServer value.
    • withEnablePrivateApiServer

      public ClusterPoolNetworkProfile withEnablePrivateApiServer(Boolean enablePrivateApiServer)
      Set the enablePrivateApiServer property: ClusterPool is based on AKS cluster. AKS cluster exposes the API server to public internet by default. If you set this property to true, a private AKS cluster will be created, and it will use private apiserver, which is not exposed to public internet.
      Parameters:
      enablePrivateApiServer - the enablePrivateApiServer value to set.
      Returns:
      the ClusterPoolNetworkProfile object itself.
    • apiServerAuthorizedIpRanges

      public List<String> apiServerAuthorizedIpRanges()
      Get the apiServerAuthorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with private AKS clusters. So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time. Currently, this property is not supported and please don't use it.
      Returns:
      the apiServerAuthorizedIpRanges value.
    • withApiServerAuthorizedIpRanges

      public ClusterPoolNetworkProfile withApiServerAuthorizedIpRanges(List<String> apiServerAuthorizedIpRanges)
      Set the apiServerAuthorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with private AKS clusters. So you cannot set enablePrivateApiServer to true and apiServerAuthorizedIpRanges at the same time. Currently, this property is not supported and please don't use it.
      Parameters:
      apiServerAuthorizedIpRanges - the apiServerAuthorizedIpRanges value to set.
      Returns:
      the ClusterPoolNetworkProfile 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<ClusterPoolNetworkProfile>
      Throws:
      IOException
    • fromJson

      public static ClusterPoolNetworkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClusterPoolNetworkProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClusterPoolNetworkProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ClusterPoolNetworkProfile.