### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.WinRMListener"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener"
name: "WinRMListener"
nameWithType: "WinRMListener"
summary: "Describes Protocol and thumbprint of Windows Remote Management listener."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **WinRMListener** implements <>"
constructors:
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.WinRMListener()"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.WinRMListener()"
name: "WinRMListener()"
nameWithType: "WinRMListener.WinRMListener()"
summary: "Creates an instance of WinRMListener class."
syntax: "public WinRMListener()"
desc: "Creates an instance of WinRMListener class."
methods:
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.certificateUrl()"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.certificateUrl()"
name: "certificateUrl()"
nameWithType: "WinRMListener.certificateUrl()"
summary: "Get the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret."
syntax: "public String certificateUrl()"
desc: "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:
\\{
\"data\":\"\",
\"dataType\":\"pfx\",
\"password\":\"\"
\\}
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:
description: "the certificateUrl value."
type: "String"
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "WinRMListener.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of WinRMListener from the JsonReader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: ""
syntax: "public static WinRMListener fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the WinRMListener."
type: "IOException"
desc: "Reads an instance of WinRMListener from the JsonReader."
returns:
description: "An instance of WinRMListener if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: ""
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.protocol()"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.protocol()"
name: "protocol()"
nameWithType: "WinRMListener.protocol()"
summary: "Get the protocol property: Specifies the protocol of WinRM listener."
syntax: "public ProtocolTypes protocol()"
desc: "Get the protocol property: Specifies the protocol of WinRM listener. Possible values are: \\*\\*http,\\*\\* \\*\\*https.\\*\\*."
returns:
description: "the protocol value."
type: ""
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "WinRMListener.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: ""
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "IOException"
returns:
type: ""
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.validate()"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.validate()"
name: "validate()"
nameWithType: "WinRMListener.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.withCertificateUrl(java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.withCertificateUrl(String certificateUrl)"
name: "withCertificateUrl(String certificateUrl)"
nameWithType: "WinRMListener.withCertificateUrl(String certificateUrl)"
summary: "Set the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret."
parameters:
- description: "the certificateUrl value to set."
name: "certificateUrl"
type: "String"
syntax: "public WinRMListener withCertificateUrl(String certificateUrl)"
desc: "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:
\\{
\"data\":\"\",
\"dataType\":\"pfx\",
\"password\":\"\"
\\}
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:
description: "the WinRMListener object itself."
type: ""
- uid: "com.azure.resourcemanager.compute.models.WinRMListener.withProtocol(com.azure.resourcemanager.compute.models.ProtocolTypes)"
fullName: "com.azure.resourcemanager.compute.models.WinRMListener.withProtocol(ProtocolTypes protocol)"
name: "withProtocol(ProtocolTypes protocol)"
nameWithType: "WinRMListener.withProtocol(ProtocolTypes protocol)"
summary: "Set the protocol property: Specifies the protocol of WinRM listener."
parameters:
- description: "the protocol value to set."
name: "protocol"
type: ""
syntax: "public WinRMListener withProtocol(ProtocolTypes protocol)"
desc: "Set the protocol property: Specifies the protocol of WinRM listener. Possible values are: \\*\\*http,\\*\\* \\*\\*https.\\*\\*."
returns:
description: "the WinRMListener object itself."
type: ""
type: "class"
desc: "Describes Protocol and thumbprint of Windows Remote Management listener."
implements:
- "<>"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.42.0