/** * 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.batch.protocol.models; import com.fasterxml.jackson.annotation.JsonProperty; /** * A certificate that can be installed on compute nodes and can be used to * authenticate operations on the machine. */ public class CertificateAddParameter { /** * The X.509 thumbprint of the certificate. This is a sequence of up to 40 * hex digits (it may include spaces but these are removed). */ @JsonProperty(required = true) private String thumbprint; /** * The algorithm used to derive the thumbprint. This must be sha1. */ @JsonProperty(required = true) private String thumbprintAlgorithm; /** * The base64-encoded contents of the certificate. The maximum size is * 10KB. */ @JsonProperty(required = true) private String data; /** * The format of the certificate data. * Possible values include: 'pfx', 'cer', 'unmapped'. */ private CertificateFormat certificateFormat; /** * The password to access the certificate's private key. */ private String password; /** * Get the thumbprint value. * * @return the thumbprint value */ public String thumbprint() { return this.thumbprint; } /** * Set the thumbprint value. * * @param thumbprint the thumbprint value to set * @return the CertificateAddParameter object itself. */ public CertificateAddParameter withThumbprint(String thumbprint) { this.thumbprint = thumbprint; return this; } /** * Get the thumbprintAlgorithm value. * * @return the thumbprintAlgorithm value */ public String thumbprintAlgorithm() { return this.thumbprintAlgorithm; } /** * Set the thumbprintAlgorithm value. * * @param thumbprintAlgorithm the thumbprintAlgorithm value to set * @return the CertificateAddParameter object itself. */ public CertificateAddParameter withThumbprintAlgorithm(String thumbprintAlgorithm) { this.thumbprintAlgorithm = thumbprintAlgorithm; return this; } /** * Get the data value. * * @return the data value */ public String data() { return this.data; } /** * Set the data value. * * @param data the data value to set * @return the CertificateAddParameter object itself. */ public CertificateAddParameter withData(String data) { this.data = data; return this; } /** * Get the certificateFormat value. * * @return the certificateFormat value */ public CertificateFormat certificateFormat() { return this.certificateFormat; } /** * Set the certificateFormat value. * * @param certificateFormat the certificateFormat value to set * @return the CertificateAddParameter object itself. */ public CertificateAddParameter withCertificateFormat(CertificateFormat certificateFormat) { this.certificateFormat = certificateFormat; return this; } /** * Get the password value. * * @return the password value */ public String password() { return this.password; } /** * Set the password value. * * @param password the password value to set * @return the CertificateAddParameter object itself. */ public CertificateAddParameter withPassword(String password) { this.password = password; return this; } }