ProxyAgentSettings Class

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

Implements

public final class ProxyAgentSettings
implements JsonSerializable<ProxyAgentSettings>

Specifies ProxyAgent settings while creating the virtual machine.

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 Metadata Security Protocol 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: Settings for the IMDS endpoint.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HostEndpointSettings wireServer()

Get the wireServer property: Settings for the WireServer endpoint.

ProxyAgentSettings withEnabled(Boolean enabled)

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

ProxyAgentSettings withImds(HostEndpointSettings imds)

Set the imds property: Settings for the IMDS endpoint.

ProxyAgentSettings withWireServer(HostEndpointSettings wireServer)

Set the wireServer property: Settings for the WireServer endpoint.

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 Metadata Security Protocol feature should be enabled on the virtual machine or virtual machine scale set. Default is False.

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: Settings for the IMDS endpoint.

Returns:

the imds 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: Settings for the WireServer endpoint.

Returns:

the wireServer value.

withEnabled

public ProxyAgentSettings withEnabled(Boolean enabled)

Set the enabled property: Specifies whether Metadata Security Protocol feature should be enabled on the virtual machine or virtual machine scale set. Default is False.

Parameters:

enabled - the enabled value to set.

Returns:

the ProxyAgentSettings object itself.

withImds

public ProxyAgentSettings withImds(HostEndpointSettings imds)

Set the imds property: Settings for the IMDS endpoint.

Parameters:

imds - the imds value to set.

Returns:

the ProxyAgentSettings object itself.

withWireServer

public ProxyAgentSettings withWireServer(HostEndpointSettings wireServer)

Set the wireServer property: Settings for the WireServer endpoint.

Parameters:

wireServer - the wireServer value to set.

Returns:

the ProxyAgentSettings object itself.

Applies to