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; import com.microsoft.rest.serializer.JsonFlatten;
Specifies information about the SSH public key.
/** * Specifies information about the SSH public key. */
@JsonFlatten public class SshPublicKeyUpdateResource extends UpdateResource {
SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.
/** * SSH public key used to authenticate to a virtual machine through ssh. If * this property is not initially provided when the resource is created, * the publicKey property will be populated when generateKeyPair is called. * If the public key is provided upon resource creation, the provided * public key needs to be at least 2048-bit and in ssh-rsa format. */
@JsonProperty(value = "properties.publicKey") private String publicKey;
Get sSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.
Returns:the publicKey value
/** * Get sSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. * * @return the publicKey value */
public String publicKey() { return this.publicKey; }
Set sSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.
Params:
  • publicKey – the publicKey value to set
Returns:the SshPublicKeyUpdateResource object itself.
/** * Set sSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. * * @param publicKey the publicKey value to set * @return the SshPublicKeyUpdateResource object itself. */
public SshPublicKeyUpdateResource withPublicKey(String publicKey) { this.publicKey = publicKey; return this; } }