ProxyAgentSettings Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. ProxyAgentSettings
- com.
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 Proxy |
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
Proxy |
fromJson(JsonReader jsonReader)
Reads an instance of Proxy |
|
Host |
imds()
Get the imds property: Settings for the IMDS endpoint. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Host |
wireServer()
Get the wire |
|
Proxy |
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. |
|
Proxy |
withImds(HostEndpointSettings imds)
Set the imds property: Settings for the IMDS endpoint. |
|
Proxy |
withWireServer(HostEndpointSettings wireServer)
Set the wire |
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:
fromJson
public static ProxyAgentSettings fromJson(JsonReader jsonReader)
Reads an instance of ProxyAgentSettings from the JsonReader.
Parameters:
Returns:
Throws:
imds
public HostEndpointSettings imds()
Get the imds property: Settings for the IMDS endpoint.
Returns:
toJson
validate
public void validate()
Validates the instance.
wireServer
public HostEndpointSettings wireServer()
Get the wireServer property: Settings for the WireServer endpoint.
Returns:
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:
Returns:
withImds
public ProxyAgentSettings withImds(HostEndpointSettings imds)
Set the imds property: Settings for the IMDS endpoint.
Parameters:
Returns:
withWireServer
public ProxyAgentSettings withWireServer(HostEndpointSettings wireServer)
Set the wireServer property: Settings for the WireServer endpoint.
Parameters:
Returns: