Class ClusterPoolResourcePropertiesNetworkProfile

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

public final class ClusterPoolResourcePropertiesNetworkProfile extends ClusterPoolNetworkProfile
Cluster pool network profile.
  • Constructor Details

    • ClusterPoolResourcePropertiesNetworkProfile

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

    • withSubnetId

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

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

      public ClusterPoolResourcePropertiesNetworkProfile 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.
      Overrides:
      withEnablePrivateApiServer in class ClusterPoolNetworkProfile
      Parameters:
      enablePrivateApiServer - the enablePrivateApiServer value to set.
      Returns:
      the ClusterPoolNetworkProfile object itself.
    • withApiServerAuthorizedIpRanges

      public ClusterPoolResourcePropertiesNetworkProfile 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.
      Overrides:
      withApiServerAuthorizedIpRanges in class ClusterPoolNetworkProfile
      Parameters:
      apiServerAuthorizedIpRanges - the apiServerAuthorizedIpRanges value to set.
      Returns:
      the ClusterPoolNetworkProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ClusterPoolNetworkProfile
      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>
      Overrides:
      toJson in class ClusterPoolNetworkProfile
      Throws:
      IOException
    • fromJson

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