Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.compute;
import com.fasterxml.jackson.annotation.JsonProperty;
Describes Protocol and thumbprint of Windows Remote Management listener.
/**
* Describes Protocol and thumbprint of Windows Remote Management listener.
*/
public class WinRMListener {
Specifies the protocol of WinRM listener. <br><br> Possible
values are: <br>**http** <br><br> **https**. Possible
values include: 'Http', 'Https'.
/**
* Specifies the protocol of WinRM listener. <br><br> Possible
* values are: <br>**http** <br><br> **https**. Possible
* values include: 'Http', 'Https'.
*/
@JsonProperty(value = "protocol")
private ProtocolTypes protocol;
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 It is 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>}.
/**
* 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 It is 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>}.
*/
@JsonProperty(value = "certificateUrl")
private String certificateUrl;
Get specifies the protocol of WinRM listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'.
Returns: the protocol value
/**
* Get specifies the protocol of WinRM listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'.
*
* @return the protocol value
*/
public ProtocolTypes protocol() {
return this.protocol;
}
Set specifies the protocol of WinRM listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'.
Params: - protocol – the protocol value to set
Returns: the WinRMListener object itself.
/**
* Set specifies the protocol of WinRM listener. <br><br> Possible values are: <br>**http** <br><br> **https**. Possible values include: 'Http', 'Https'.
*
* @param protocol the protocol value to set
* @return the WinRMListener object itself.
*/
public WinRMListener withProtocol(ProtocolTypes protocol) {
this.protocol = protocol;
return this;
}
Get 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 It is 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>}.
Returns: the certificateUrl value
/**
* Get 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 It is 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>}.
*
* @return the certificateUrl value
*/
public String certificateUrl() {
return this.certificateUrl;
}
Set 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 It is 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>}.
Params: - certificateUrl – the certificateUrl value to set
Returns: the WinRMListener object itself.
/**
* Set 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 It is 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>}.
*
* @param certificateUrl the certificateUrl value to set
* @return the WinRMListener object itself.
*/
public WinRMListener withCertificateUrl(String certificateUrl) {
this.certificateUrl = certificateUrl;
return this;
}
}