ProxyAgentSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ProxyAgentSettings
- com.
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 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 |
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. |
Proxy |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether Proxy |
Proxy |
withKeyIncarnationId(Integer keyIncarnationId)
Set the key |
Proxy |
withMode(Mode mode)
Set the mode property: Specifies the mode that Proxy |
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:
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:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java