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 Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterPoolNetworkProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the apiServerAuthorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29.Get the enablePrivateApiServer property: ClusterPool is based on AKS cluster.static ClusterPoolNetworkProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterPoolNetworkProfile from the JsonReader.Get the outboundType property: This can only be set at cluster pool creation time and cannot be changed later.subnetId()Get the subnetId property: Cluster pool subnet resource id.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 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
-
ClusterPoolNetworkProfile
public ClusterPoolNetworkProfile()Creates an instance of ClusterPoolNetworkProfile class.
-
-
Method Details
-
subnetId
Get the subnetId property: Cluster pool subnet resource id.- Returns:
- the subnetId value.
-
withSubnetId
Set the subnetId property: Cluster pool subnet resource id.- Parameters:
subnetId- the subnetId value to set.- Returns:
- the ClusterPoolNetworkProfile object itself.
-
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
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-