HostEndpointSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. HostEndpointSettings
- com.
Implements
public final class HostEndpointSettings
implements JsonSerializable<HostEndpointSettings>
Specifies particular host endpoint settings.
Constructor Summary
| Constructor | Description |
|---|---|
| HostEndpointSettings() |
Creates an instance of Host |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Host |
fromJson(JsonReader jsonReader)
Reads an instance of Host |
| String |
inVMAccessControlProfileReferenceId()
Get the in |
| Modes |
mode()
Get the mode property: Specifies the execution mode. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Host |
withInVMAccessControlProfileReferenceId(String inVMAccessControlProfileReferenceId)
Set the in |
|
Host |
withMode(Modes mode)
Set the mode property: Specifies the execution mode. |
Methods inherited from java.lang.Object
Constructor Details
HostEndpointSettings
public HostEndpointSettings()
Creates an instance of HostEndpointSettings class.
Method Details
fromJson
public static HostEndpointSettings fromJson(JsonReader jsonReader)
Reads an instance of HostEndpointSettings from the JsonReader.
Parameters:
Returns:
Throws:
inVMAccessControlProfileReferenceId
public String 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:
mode
public Modes 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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withMode
public HostEndpointSettings withMode(Modes mode)
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:
Returns: