
com.azure.security.keyvault.keys.KeyImportRequestParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault-keys Show documentation
Show all versions of azure-keyvault-keys Show documentation
This module contains client library for Microsoft Azure KeyVault Keys.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys;
import com.azure.security.keyvault.keys.models.webkey.JsonWebKey;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
class KeyImportRequestParameters {
/**
* Whether to import as a hardware key (HSM) or software key.
*/
@JsonProperty(value = "Hsm")
private Boolean hsm;
/**
* The Json web key.
*/
@JsonProperty(value = "key", required = true)
private JsonWebKey key;
/**
* The keyAttributes property.
*/
@JsonProperty(value = "attributes")
private KeyRequestAttributes keyAttributes;
/**
* Application specific metadata in the form of key-value pairs.
*/
@JsonProperty(value = "tags")
private Map tags;
/**
* Get the keyAttributes value.
*
* @return the keyAttributes value
*/
public KeyRequestAttributes keyAttributes() {
return this.keyAttributes;
}
/**
* Set the keyAttributes value.
*
* @param keyAttributes the keyAttributes value to set
* @return the KeyRequestParameters object itself.
*/
public KeyImportRequestParameters keyAttributes(KeyRequestAttributes keyAttributes) {
this.keyAttributes = keyAttributes;
return this;
}
/**
* Get the tags value.
*
* @return the tags value
*/
public Map tags() {
return this.tags;
}
/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the KeyRequestParameters object itself.
*/
public KeyImportRequestParameters tags(Map tags) {
this.tags = tags;
return this;
}
/**
* Set the hsm value.
*
* @param hsm the hsm value to set
* @return the KeyImportParameters object itself.
*/
public KeyImportRequestParameters hsm(Boolean hsm) {
this.hsm = hsm;
return this;
}
/**
* Get the hsm value.
*
* @return the hsm value
*/
public Boolean hsm() {
return this.hsm;
}
/**
* Get the key value.
*
* @return the key value
*/
public JsonWebKey key() {
return this.key;
}
/**
* Set the key value.
*
* @param key the key value to set
* @return the KeyImportParameters object itself.
*/
public KeyImportRequestParameters key(JsonWebKey key) {
this.key = key;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy