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.
/** * 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.management.cdn; import com.fasterxml.jackson.annotation.JsonProperty;
Describes the parameters for using a user's KeyVault certificate for securing custom domain.
/** * Describes the parameters for using a user's KeyVault certificate for * securing custom domain. */
public class KeyVaultCertificateSourceParameters {
The odatatype property.
/** * The odatatype property. */
@JsonProperty(value = "@odata\\.type", required = true) private String odatatype;
Subscription Id of the user's Key Vault containing the SSL certificate.
/** * Subscription Id of the user's Key Vault containing the SSL certificate. */
@JsonProperty(value = "subscriptionId", required = true) private String subscriptionId;
Resource group of the user's Key Vault containing the SSL certificate.
/** * Resource group of the user's Key Vault containing the SSL certificate. */
@JsonProperty(value = "resourceGroupName", required = true) private String resourceGroupName;
The name of the user's Key Vault containing the SSL certificate.
/** * The name of the user's Key Vault containing the SSL certificate. */
@JsonProperty(value = "vaultName", required = true) private String vaultName;
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
/** * The name of Key Vault Secret (representing the full certificate PFX) in * Key Vault. */
@JsonProperty(value = "secretName", required = true) private String secretName;
The version(GUID) of Key Vault Secret in Key Vault.
/** * The version(GUID) of Key Vault Secret in Key Vault. */
@JsonProperty(value = "secretVersion") private String secretVersion;
Describes the action that shall be taken when the certificate is updated in Key Vault.
/** * Describes the action that shall be taken when the certificate is updated * in Key Vault. */
@JsonProperty(value = "updateRule", required = true) private String updateRule;
Describes the action that shall be taken when the certificate is removed from Key Vault.
/** * Describes the action that shall be taken when the certificate is removed * from Key Vault. */
@JsonProperty(value = "deleteRule", required = true) private String deleteRule;
Creates an instance of KeyVaultCertificateSourceParameters class.
/** * Creates an instance of KeyVaultCertificateSourceParameters class. */
public KeyVaultCertificateSourceParameters() { odatatype = "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"; updateRule = "NoAction"; deleteRule = "NoAction"; }
Get the odatatype value.
Returns:the odatatype value
/** * Get the odatatype value. * * @return the odatatype value */
public String odatatype() { return this.odatatype; }
Set the odatatype value.
Params:
  • odatatype – the odatatype value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set the odatatype value. * * @param odatatype the odatatype value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withOdatatype(String odatatype) { this.odatatype = odatatype; return this; }
Get subscription Id of the user's Key Vault containing the SSL certificate.
Returns:the subscriptionId value
/** * Get subscription Id of the user's Key Vault containing the SSL certificate. * * @return the subscriptionId value */
public String subscriptionId() { return this.subscriptionId; }
Set subscription Id of the user's Key Vault containing the SSL certificate.
Params:
  • subscriptionId – the subscriptionId value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set subscription Id of the user's Key Vault containing the SSL certificate. * * @param subscriptionId the subscriptionId value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; }
Get resource group of the user's Key Vault containing the SSL certificate.
Returns:the resourceGroupName value
/** * Get resource group of the user's Key Vault containing the SSL certificate. * * @return the resourceGroupName value */
public String resourceGroupName() { return this.resourceGroupName; }
Set resource group of the user's Key Vault containing the SSL certificate.
Params:
  • resourceGroupName – the resourceGroupName value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set resource group of the user's Key Vault containing the SSL certificate. * * @param resourceGroupName the resourceGroupName value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withResourceGroupName(String resourceGroupName) { this.resourceGroupName = resourceGroupName; return this; }
Get the name of the user's Key Vault containing the SSL certificate.
Returns:the vaultName value
/** * Get the name of the user's Key Vault containing the SSL certificate. * * @return the vaultName value */
public String vaultName() { return this.vaultName; }
Set the name of the user's Key Vault containing the SSL certificate.
Params:
  • vaultName – the vaultName value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set the name of the user's Key Vault containing the SSL certificate. * * @param vaultName the vaultName value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withVaultName(String vaultName) { this.vaultName = vaultName; return this; }
Get the name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
Returns:the secretName value
/** * Get the name of Key Vault Secret (representing the full certificate PFX) in Key Vault. * * @return the secretName value */
public String secretName() { return this.secretName; }
Set the name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
Params:
  • secretName – the secretName value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set the name of Key Vault Secret (representing the full certificate PFX) in Key Vault. * * @param secretName the secretName value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withSecretName(String secretName) { this.secretName = secretName; return this; }
Get the version(GUID) of Key Vault Secret in Key Vault.
Returns:the secretVersion value
/** * Get the version(GUID) of Key Vault Secret in Key Vault. * * @return the secretVersion value */
public String secretVersion() { return this.secretVersion; }
Set the version(GUID) of Key Vault Secret in Key Vault.
Params:
  • secretVersion – the secretVersion value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set the version(GUID) of Key Vault Secret in Key Vault. * * @param secretVersion the secretVersion value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withSecretVersion(String secretVersion) { this.secretVersion = secretVersion; return this; }
Get describes the action that shall be taken when the certificate is updated in Key Vault.
Returns:the updateRule value
/** * Get describes the action that shall be taken when the certificate is updated in Key Vault. * * @return the updateRule value */
public String updateRule() { return this.updateRule; }
Set describes the action that shall be taken when the certificate is updated in Key Vault.
Params:
  • updateRule – the updateRule value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set describes the action that shall be taken when the certificate is updated in Key Vault. * * @param updateRule the updateRule value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withUpdateRule(String updateRule) { this.updateRule = updateRule; return this; }
Get describes the action that shall be taken when the certificate is removed from Key Vault.
Returns:the deleteRule value
/** * Get describes the action that shall be taken when the certificate is removed from Key Vault. * * @return the deleteRule value */
public String deleteRule() { return this.deleteRule; }
Set describes the action that shall be taken when the certificate is removed from Key Vault.
Params:
  • deleteRule – the deleteRule value to set
Returns:the KeyVaultCertificateSourceParameters object itself.
/** * Set describes the action that shall be taken when the certificate is removed from Key Vault. * * @param deleteRule the deleteRule value to set * @return the KeyVaultCertificateSourceParameters object itself. */
public KeyVaultCertificateSourceParameters withDeleteRule(String deleteRule) { this.deleteRule = deleteRule; return this; } }