Partager via


ProxyAgentSettings Class

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

Implements

public final class ProxyAgentSettings
implements JsonSerializable<ProxyAgentSettings>

Specifies ProxyAgent settings for the virtual machine or virtual machine scale set. 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.

HostEndpointSettings imds()

Get the imds property: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set.

Integer keyIncarnationId()

Get the keyIncarnationId property: Increase the value of this property allows users 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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HostEndpointSettings wireServer()

Get the wireServer property: Specifies the Wire Server endpoint settings while creating the virtual machine or virtual machine scale set.

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 withImds(HostEndpointSettings imds)

Set the imds property: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set.

ProxyAgentSettings withKeyIncarnationId(Integer keyIncarnationId)

Set the keyIncarnationId property: Increase the value of this property allows users 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.

ProxyAgentSettings withWireServer(HostEndpointSettings wireServer)

Set the wireServer property: Specifies the Wire Server endpoint settings while creating the virtual machine or virtual machine scale set.

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.

imds

public HostEndpointSettings imds()

Get the imds property: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01.

Returns:

the imds value.

keyIncarnationId

public Integer keyIncarnationId()

Get the keyIncarnationId property: Increase the value of this property allows users 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. Warning: this property has been deprecated, please specify 'mode' under particular hostendpoint setting.

Returns:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

wireServer

public HostEndpointSettings wireServer()

Get the wireServer property: Specifies the Wire Server endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01.

Returns:

the wireServer value.

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.

withImds

public ProxyAgentSettings withImds(HostEndpointSettings imds)

Set the imds property: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01.

Parameters:

imds - the imds 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 users 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. Warning: this property has been deprecated, please specify 'mode' under particular hostendpoint setting.

Parameters:

mode - the mode value to set.

Returns:

the ProxyAgentSettings object itself.

withWireServer

public ProxyAgentSettings withWireServer(HostEndpointSettings wireServer)

Set the wireServer property: Specifies the Wire Server endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01.

Parameters:

wireServer - the wireServer value to set.

Returns:

the ProxyAgentSettings object itself.

Applies to