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>
Cluster pool network profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolResourcePropertiesNetworkProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolResourcePropertiesNetworkProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApiServerAuthorizedIpRanges(List<String> apiServerAuthorizedIpRanges) Set the apiServerAuthorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29.withEnablePrivateApiServer(Boolean enablePrivateApiServer) Set the enablePrivateApiServer property: ClusterPool is based on AKS cluster.withOutboundType(OutboundType outboundType) Set the outboundType property: This can only be set at cluster pool creation time and cannot be changed later.withSubnetId(String subnetId) Set the subnetId property: Cluster pool subnet resource id.Methods inherited from class ClusterPoolNetworkProfile
apiServerAuthorizedIpRanges, enablePrivateApiServer, outboundType, subnetIdMethods 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
-
ClusterPoolResourcePropertiesNetworkProfile
public ClusterPoolResourcePropertiesNetworkProfile()Creates an instance of ClusterPoolResourcePropertiesNetworkProfile class.
-
-
Method Details
-
withSubnetId
Set the subnetId property: Cluster pool subnet resource id.- Overrides:
withSubnetIdin classClusterPoolNetworkProfile- Parameters:
subnetId- the subnetId value to set.- Returns:
- the ClusterPoolNetworkProfile object itself.
-
withOutboundType
Set the outboundType property: This can only be set at cluster pool creation time and cannot be changed later.- Overrides:
withOutboundTypein classClusterPoolNetworkProfile- 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:
withEnablePrivateApiServerin classClusterPoolNetworkProfile- 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:
withApiServerAuthorizedIpRangesin classClusterPoolNetworkProfile- Parameters:
apiServerAuthorizedIpRanges- the apiServerAuthorizedIpRanges value to set.- Returns:
- the ClusterPoolNetworkProfile object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterPoolNetworkProfile- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterPoolNetworkProfile>- Overrides:
toJsonin classClusterPoolNetworkProfile- 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.
-