/**
* 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;
/**
* Contains information about SSH certificate public key and the path on the
* Linux VM where the public key is placed.
*/
public class SshPublicKey {
/**
* Specifies the full path on the created VM where SSH public key is
* stored. If the file already exists, the specified key is appended to the
* file.
*/
@JsonProperty(value = "path")
private String path;
/**
* Certificate public key used to authenticate to the VM through SSH. The
* certificate must be in Pem format with or without headers.
*/
@JsonProperty(value = "keyData")
private String keyData;
/**
* Get the path value.
*
* @return the path value
*/
public String path() {
return this.path;
}
/**
* Set the path value.
*
* @param path the path value to set
* @return the SshPublicKey object itself.
*/
public SshPublicKey withPath(String path) {
this.path = path;
return this;
}
/**
* Get the keyData value.
*
* @return the keyData value
*/
public String keyData() {
return this.keyData;
}
/**
* Set the keyData value.
*
* @param keyData the keyData value to set
* @return the SshPublicKey object itself.
*/
public SshPublicKey withKeyData(String keyData) {
this.keyData = keyData;
return this;
}
}