Class WinRMListener
java.lang.Object
com.azure.resourcemanager.compute.models.WinRMListener
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WinRMListener>
public final class WinRMListener
extends Object
implements com.azure.json.JsonSerializable<WinRMListener>
Describes Protocol and thumbprint of Windows Remote Management listener.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret.static WinRMListenerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WinRMListener from the JsonReader.protocol()Get the protocol property: Specifies the protocol of WinRM listener.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCertificateUrl(String certificateUrl) Set the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret.withProtocol(ProtocolTypes protocol) Set the protocol property: Specifies the protocol of WinRM listener.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WinRMListener
public WinRMListener()Creates an instance of WinRMListener class.
-
-
Method Details
-
protocol
Get the protocol property: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**.- Parameters:
protocol- the protocol value to set.- Returns:
- the WinRMListener object itself.
-
certificateUrl
Get the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).- Returns:
- the certificateUrl value.
-
withCertificateUrl
Set the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).- Parameters:
certificateUrl- the certificateUrl value to set.- Returns:
- the WinRMListener object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WinRMListener>- Throws:
IOException
-
fromJson
Reads an instance of WinRMListener from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WinRMListener 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 WinRMListener.
-