com.microsoft.azure.keyvault.models.SasDefinitionCreateParameters 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 library has been replaced by new Azure SDKs, you can read about them at https://aka.ms/azsdkvalueprop. The latest libraries to interact with the Azure Key Vault service are:
(1) https://search.maven.org/artifact/com.azure/azure-security-keyvault-keys.
(2) https://search.maven.org/artifact/com.azure/azure-security-keyvault-secrets.
(3) https://search.maven.org/artifact/com.azure/azure-security-keyvault-certificates.
It is recommended that you move to the new package.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator
package com.microsoft.azure.keyvault.models;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The SAS definition create parameters.
*/
public class SasDefinitionCreateParameters {
/**
* The SAS definition token template signed with an arbitrary key. Tokens
* created according to the SAS definition will have the same properties as
* the template.
*/
@JsonProperty(value = "templateUri", required = true)
private String templateUri;
/**
* The type of SAS token the SAS definition will create. Possible values
* include: 'account', 'service'.
*/
@JsonProperty(value = "sasType", required = true)
private SasTokenType sasType;
/**
* The validity period of SAS tokens created according to the SAS
* definition.
*/
@JsonProperty(value = "validityPeriod", required = true)
private String validityPeriod;
/**
* The attributes of the SAS definition.
*/
@JsonProperty(value = "attributes")
private SasDefinitionAttributes sasDefinitionAttributes;
/**
* Application specific metadata in the form of key-value pairs.
*/
@JsonProperty(value = "tags")
private Map tags;
/**
* Get the templateUri value.
*
* @return the templateUri value
*/
public String templateUri() {
return this.templateUri;
}
/**
* Set the templateUri value.
*
* @param templateUri the templateUri value to set
* @return the SasDefinitionCreateParameters object itself.
*/
public SasDefinitionCreateParameters withTemplateUri(String templateUri) {
this.templateUri = templateUri;
return this;
}
/**
* Get the sasType value.
*
* @return the sasType value
*/
public SasTokenType sasType() {
return this.sasType;
}
/**
* Set the sasType value.
*
* @param sasType the sasType value to set
* @return the SasDefinitionCreateParameters object itself.
*/
public SasDefinitionCreateParameters withSasType(SasTokenType sasType) {
this.sasType = sasType;
return this;
}
/**
* Get the validityPeriod value.
*
* @return the validityPeriod value
*/
public String validityPeriod() {
return this.validityPeriod;
}
/**
* Set the validityPeriod value.
*
* @param validityPeriod the validityPeriod value to set
* @return the SasDefinitionCreateParameters object itself.
*/
public SasDefinitionCreateParameters withValidityPeriod(String validityPeriod) {
this.validityPeriod = validityPeriod;
return this;
}
/**
* Get the sasDefinitionAttributes value.
*
* @return the sasDefinitionAttributes value
*/
public SasDefinitionAttributes sasDefinitionAttributes() {
return this.sasDefinitionAttributes;
}
/**
* Set the sasDefinitionAttributes value.
*
* @param sasDefinitionAttributes the sasDefinitionAttributes value to set
* @return the SasDefinitionCreateParameters object itself.
*/
public SasDefinitionCreateParameters withSasDefinitionAttributes(SasDefinitionAttributes sasDefinitionAttributes) {
this.sasDefinitionAttributes = sasDefinitionAttributes;
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 SasDefinitionCreateParameters object itself.
*/
public SasDefinitionCreateParameters withTags(Map tags) {
this.tags = tags;
return this;
}
}