com.microsoft.azure.keyvault.models.SecretBundle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault Show documentation
Show all versions of azure-keyvault Show documentation
This package contains Microsoft Azure Key Vault SDK.
/**
* 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.keyvault.models;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A secret consisting of a value, id and its attributes.
*/
public class SecretBundle extends com.microsoft.azure.keyvault.models.custom.SecretBundle {
/**
* The secret value.
*/
@JsonProperty(value = "value")
private String value;
/**
* The secret id.
*/
@JsonProperty(value = "id")
private String id;
/**
* The content type of the secret.
*/
@JsonProperty(value = "contentType")
private String contentType;
/**
* The secret management attributes.
*/
@JsonProperty(value = "attributes")
private SecretAttributes attributes;
/**
* Application specific metadata in the form of key-value pairs.
*/
@JsonProperty(value = "tags")
private Map tags;
/**
* If this is a secret backing a KV certificate, then this field specifies
* the corresponding key backing the KV certificate.
*/
@JsonProperty(value = "kid", access = JsonProperty.Access.WRITE_ONLY)
private String kid;
/**
* True if the secret's lifetime is managed by key vault. If this is a
* secret backing a certificate, then managed will be true.
*/
@JsonProperty(value = "managed", access = JsonProperty.Access.WRITE_ONLY)
private Boolean managed;
/**
* Get the value value.
*
* @return the value value
*/
public String value() {
return this.value;
}
/**
* Set the value value.
*
* @param value the value value to set
* @return the SecretBundle object itself.
*/
public SecretBundle withValue(String value) {
this.value = value;
return this;
}
/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Set the id value.
*
* @param id the id value to set
* @return the SecretBundle object itself.
*/
public SecretBundle withId(String id) {
this.id = id;
return this;
}
/**
* Get the contentType value.
*
* @return the contentType value
*/
public String contentType() {
return this.contentType;
}
/**
* Set the contentType value.
*
* @param contentType the contentType value to set
* @return the SecretBundle object itself.
*/
public SecretBundle withContentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* Get the attributes value.
*
* @return the attributes value
*/
public SecretAttributes attributes() {
return this.attributes;
}
/**
* Set the attributes value.
*
* @param attributes the attributes value to set
* @return the SecretBundle object itself.
*/
public SecretBundle withAttributes(SecretAttributes attributes) {
this.attributes = attributes;
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 SecretBundle object itself.
*/
public SecretBundle withTags(Map tags) {
this.tags = tags;
return this;
}
/**
* Get the kid value.
*
* @return the kid value
*/
public String kid() {
return this.kid;
}
/**
* Get the managed value.
*
* @return the managed value
*/
public Boolean managed() {
return this.managed;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy