Class PartialOnlineEndpoint
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.PartialOnlineEndpoint
-
public final class PartialOnlineEndpoint extends Object
Mutable online endpoint configuration.
-
-
Constructor Summary
Constructors Constructor Description PartialOnlineEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Integer>
mirrorTraffic()
Get the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring.PublicNetworkAccessType
publicNetworkAccess()
Get the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.Map<String,Integer>
traffic()
Get the traffic property: Percentage of traffic from endpoint to divert to each deployment.void
validate()
Validates the instance.PartialOnlineEndpoint
withMirrorTraffic(Map<String,Integer> mirrorTraffic)
Set the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring.PartialOnlineEndpoint
withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess)
Set the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.PartialOnlineEndpoint
withTraffic(Map<String,Integer> traffic)
Set the traffic property: Percentage of traffic from endpoint to divert to each deployment.
-
-
-
Method Detail
-
mirrorTraffic
public Map<String,Integer> mirrorTraffic()
Get the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50.- Returns:
- the mirrorTraffic value.
-
withMirrorTraffic
public PartialOnlineEndpoint withMirrorTraffic(Map<String,Integer> mirrorTraffic)
Set the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50.- Parameters:
mirrorTraffic
- the mirrorTraffic value to set.- Returns:
- the PartialOnlineEndpoint object itself.
-
publicNetworkAccess
public PublicNetworkAccessType publicNetworkAccess()
Get the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public PartialOnlineEndpoint withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess)
Set the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.- Parameters:
publicNetworkAccess
- the publicNetworkAccess value to set.- Returns:
- the PartialOnlineEndpoint object itself.
-
traffic
public Map<String,Integer> traffic()
Get the traffic property: Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.- Returns:
- the traffic value.
-
withTraffic
public PartialOnlineEndpoint withTraffic(Map<String,Integer> traffic)
Set the traffic property: Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.- Parameters:
traffic
- the traffic value to set.- Returns:
- the PartialOnlineEndpoint object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-