Condividi tramite


HostEndpointSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.HostEndpointSettings

Implements

public final class HostEndpointSettings
implements JsonSerializable<HostEndpointSettings>

Specifies particular host endpoint settings.

Constructor Summary

Constructor Description
HostEndpointSettings()

Creates an instance of HostEndpointSettings class.

Method Summary

Modifier and Type Method and Description
static HostEndpointSettings fromJson(JsonReader jsonReader)

Reads an instance of HostEndpointSettings from the JsonReader.

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}.

Modes mode()

Get the mode property: Specifies the execution mode.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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}.

HostEndpointSettings 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:

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.

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:

the inVMAccessControlProfileReferenceId value.

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:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

inVMAccessControlProfileReferenceId - the inVMAccessControlProfileReferenceId value to set.

Returns:

the HostEndpointSettings object itself.

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:

mode - the mode value to set.

Returns:

the HostEndpointSettings object itself.

Applies to