Partilhar via


ProxyAgentSettings Class

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

Implements

public final class ProxyAgentSettings
implements JsonSerializable<ProxyAgentSettings>

Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.

Constructor Summary

Constructor Description
ProxyAgentSettings()

Creates an instance of ProxyAgentSettings class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.

static ProxyAgentSettings fromJson(JsonReader jsonReader)

Reads an instance of ProxyAgentSettings from the JsonReader.

Integer keyIncarnationId()

Get the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.

Mode mode()

Get the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProxyAgentSettings withEnabled(Boolean enabled)

Set the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.

ProxyAgentSettings withKeyIncarnationId(Integer keyIncarnationId)

Set the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.

ProxyAgentSettings withMode(Mode mode)

Set the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled.

Methods inherited from java.lang.Object

Constructor Details

ProxyAgentSettings

public ProxyAgentSettings()

Creates an instance of ProxyAgentSettings class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.

Returns:

the enabled value.

fromJson

public static ProxyAgentSettings fromJson(JsonReader jsonReader)

Reads an instance of ProxyAgentSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProxyAgentSettings 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 ProxyAgentSettings.

keyIncarnationId

public Integer keyIncarnationId()

Get the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.

Returns:

the keyIncarnationId value.

mode

public Mode mode()

Get the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.

Returns:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ProxyAgentSettings withEnabled(Boolean enabled)

Set the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.

Parameters:

enabled - the enabled value to set.

Returns:

the ProxyAgentSettings object itself.

withKeyIncarnationId

public ProxyAgentSettings withKeyIncarnationId(Integer keyIncarnationId)

Set the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.

Parameters:

keyIncarnationId - the keyIncarnationId value to set.

Returns:

the ProxyAgentSettings object itself.

withMode

public ProxyAgentSettings withMode(Mode mode)

Set the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.

Parameters:

mode - the mode value to set.

Returns:

the ProxyAgentSettings object itself.

Applies to