com.microsoft.azure.keyvault.requests.UpdateCertificateOperationRequest 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.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.requests;
/**
* The update certificate operation request class.
*/
public final class UpdateCertificateOperationRequest {
private final String vaultBaseUrl;
private final String certificateName;
private final Boolean cancellationRequested;
/**
* The {@link UpdateCertificateOperationRequest} builder.
*/
public static class Builder {
// Required parameters
private final String vaultBaseUrl;
private final String certificateName;
private final Boolean cancellationRequested;
// Optional parameters
/**
* The builder for constructing {@link CreateCertificateRequest} object.
*
* @param vaultBaseUrl
* The vault name, e.g. https://myvault.vault.azure.net.
* @param certificateName
* The name of the certificate in the given vault.
* @param cancellationRequested
* Indicates if cancellation was requested on the certificate operation.
*/
public Builder(String vaultBaseUrl, String certificateName, Boolean cancellationRequested) {
this.vaultBaseUrl = vaultBaseUrl;
this.certificateName = certificateName;
this.cancellationRequested = cancellationRequested;
}
/**
* builds the {@link UpdateCertificateOperationRequest} object.
*
* @return the {@link UpdateCertificateOperationRequest} object.
*/
public UpdateCertificateOperationRequest build() {
return new UpdateCertificateOperationRequest(this);
}
}
private UpdateCertificateOperationRequest(Builder builder) {
vaultBaseUrl = builder.vaultBaseUrl;
certificateName = builder.certificateName;
cancellationRequested = builder.cancellationRequested;
}
/**
* @return the vault base url
*/
public String vaultBaseUrl() {
return vaultBaseUrl;
}
/**
* @return the certificate name
*/
public String certificateName() {
return certificateName;
}
/**
* @return the certificate policy
*/
public Boolean cancellationRequested() {
return cancellationRequested;
}
}