All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.storage.models.SshPublicKey Maven / Gradle / Ivy

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storage.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The SshPublicKey model.
 */
@Fluent
public final class SshPublicKey {
    /*
     * Optional. It is used to store the function/usage of the key
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB
     */
    @JsonProperty(value = "key")
    private String key;

    /**
     * Creates an instance of SshPublicKey class.
     */
    public SshPublicKey() {
    }

    /**
     * Get the description property: Optional. It is used to store the function/usage of the key.
     * 
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Optional. It is used to store the function/usage of the key.
     * 
     * @param description the description value to set.
     * @return the SshPublicKey object itself.
     */
    public SshPublicKey withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the key property: Ssh public key base64 encoded. The format should be: '<keyType> <keyData>',
     * e.g. ssh-rsa AAAABBBB.
     * 
     * @return the key value.
     */
    public String key() {
        return this.key;
    }

    /**
     * Set the key property: Ssh public key base64 encoded. The format should be: '<keyType> <keyData>',
     * e.g. ssh-rsa AAAABBBB.
     * 
     * @param key the key value to set.
     * @return the SshPublicKey object itself.
     */
    public SshPublicKey withKey(String key) {
        this.key = key;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy