Class HostEndpointSettings
java.lang.Object
com.azure.resourcemanager.compute.models.HostEndpointSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HostEndpointSettings>
public final class HostEndpointSettings
extends Object
implements com.azure.json.JsonSerializable<HostEndpointSettings>
Specifies particular host endpoint settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HostEndpointSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HostEndpointSettings from the JsonReader.Get the inVMAccessControlProfileReferenceId property: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.mode()Get the mode property: Specifies the execution mode.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInVMAccessControlProfileReferenceId(String inVMAccessControlProfileReferenceId) Set the inVMAccessControlProfileReferenceId property: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.Set the mode property: Specifies the execution mode.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
-
HostEndpointSettings
public HostEndpointSettings()Creates an instance of HostEndpointSettings class.
-
-
Method Details
-
mode
Get the mode property: Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.- Returns:
- the mode value.
-
withMode
Set the mode property: Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access control policy, including emitting access denial entries in the logs but it does not actually deny any requests to host endpoints. In Enforce mode, the system will enforce the access control and it is the recommended mode of operation.- Parameters:
mode- the mode value to set.- Returns:
- the HostEndpointSettings object itself.
-
inVMAccessControlProfileReferenceId
Get the inVMAccessControlProfileReferenceId property: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.- Returns:
- the inVMAccessControlProfileReferenceId value.
-
withInVMAccessControlProfileReferenceId
public HostEndpointSettings withInVMAccessControlProfileReferenceId(String inVMAccessControlProfileReferenceId) Set the inVMAccessControlProfileReferenceId property: Specifies the InVMAccessControlProfileVersion resource id in the format of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}.- Parameters:
inVMAccessControlProfileReferenceId- the inVMAccessControlProfileReferenceId value to set.- Returns:
- the HostEndpointSettings 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<HostEndpointSettings>- Throws:
IOException
-
fromJson
public static HostEndpointSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HostEndpointSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of HostEndpointSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the HostEndpointSettings.
-