ProxyAgentSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ProxyAgentSettings
- com.
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 Proxy |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Specifies whether Proxy |
static
Proxy |
fromJson(JsonReader jsonReader)
Reads an instance of Proxy |
Host |
imds()
Get the imds property: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. |
Integer |
keyIncarnationId()
Get the key |
Mode |
mode()
Get the mode property: Specifies the mode that Proxy |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Host |
wireServer()
Get the wire |
Proxy |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether Proxy |
Proxy |
withImds(HostEndpointSettings imds)
Set the imds property: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. |
Proxy |
withKeyIncarnationId(Integer keyIncarnationId)
Set the key |
Proxy |
withMode(Mode mode)
Set the mode property: Specifies the mode that Proxy |
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 ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
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: Specifies the IMDS endpoint settings while creating the virtual machine or virtual machine scale set. Minimum api-version: 2024-03-01.
Returns:
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:
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:
toJson
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:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java