Class AdaptiveNetworkHardeningInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.security.fluent.models.AdaptiveNetworkHardeningInner
public final class AdaptiveNetworkHardeningInner
extends com.azure.core.management.ProxyResource
The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AdaptiveNetworkHardeningInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the effectiveNetworkSecurityGroups property: The Network Security Groups effective on the network interfaces of the protected resource.rules()
Get the rules property: The security rules which are recommended to be effective on the VM.Get the rulesCalculationTime property: The UTC time on which the rules were calculated.void
validate()
Validates the instance.withEffectiveNetworkSecurityGroups
(List<EffectiveNetworkSecurityGroups> effectiveNetworkSecurityGroups) Set the effectiveNetworkSecurityGroups property: The Network Security Groups effective on the network interfaces of the protected resource.Set the rules property: The security rules which are recommended to be effective on the VM.withRulesCalculationTime
(OffsetDateTime rulesCalculationTime) Set the rulesCalculationTime property: The UTC time on which the rules were calculated.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
AdaptiveNetworkHardeningInner
public AdaptiveNetworkHardeningInner()Creates an instance of AdaptiveNetworkHardeningInner class.
-
-
Method Details
-
rules
Get the rules property: The security rules which are recommended to be effective on the VM.- Returns:
- the rules value.
-
withRules
Set the rules property: The security rules which are recommended to be effective on the VM.- Parameters:
rules
- the rules value to set.- Returns:
- the AdaptiveNetworkHardeningInner object itself.
-
rulesCalculationTime
Get the rulesCalculationTime property: The UTC time on which the rules were calculated.- Returns:
- the rulesCalculationTime value.
-
withRulesCalculationTime
Set the rulesCalculationTime property: The UTC time on which the rules were calculated.- Parameters:
rulesCalculationTime
- the rulesCalculationTime value to set.- Returns:
- the AdaptiveNetworkHardeningInner object itself.
-
effectiveNetworkSecurityGroups
Get the effectiveNetworkSecurityGroups property: The Network Security Groups effective on the network interfaces of the protected resource.- Returns:
- the effectiveNetworkSecurityGroups value.
-
withEffectiveNetworkSecurityGroups
public AdaptiveNetworkHardeningInner withEffectiveNetworkSecurityGroups(List<EffectiveNetworkSecurityGroups> effectiveNetworkSecurityGroups) Set the effectiveNetworkSecurityGroups property: The Network Security Groups effective on the network interfaces of the protected resource.- Parameters:
effectiveNetworkSecurityGroups
- the effectiveNetworkSecurityGroups value to set.- Returns:
- the AdaptiveNetworkHardeningInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-