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.batch;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
Contains information about a certificate.
/**
* Contains information about a certificate.
*/
@JsonFlatten
public class CertificateCreateOrUpdateParameters extends ProxyResource {
The algorithm of the certificate thumbprint.
This must match the first portion of the certificate name. Currently
required to be 'SHA1'.
/**
* The algorithm of the certificate thumbprint.
* This must match the first portion of the certificate name. Currently
* required to be 'SHA1'.
*/
@JsonProperty(value = "properties.thumbprintAlgorithm")
private String thumbprintAlgorithm;
The thumbprint of the certificate.
This must match the thumbprint from the name.
/**
* The thumbprint of the certificate.
* This must match the thumbprint from the name.
*/
@JsonProperty(value = "properties.thumbprint")
private String thumbprint;
The format of the certificate - either Pfx or Cer. If omitted, the
default is Pfx. Possible values include: 'Pfx', 'Cer'.
/**
* The format of the certificate - either Pfx or Cer. If omitted, the
* default is Pfx. Possible values include: 'Pfx', 'Cer'.
*/
@JsonProperty(value = "properties.format")
private CertificateFormat format;
The base64-encoded contents of the certificate.
The maximum size is 10KB.
/**
* The base64-encoded contents of the certificate.
* The maximum size is 10KB.
*/
@JsonProperty(value = "properties.data", required = true)
private String data;
The password to access the certificate's private key.
This must not be specified if the certificate format is Cer.
/**
* The password to access the certificate's private key.
* This must not be specified if the certificate format is Cer.
*/
@JsonProperty(value = "properties.password")
private String password;
The ETag of the resource, used for concurrency statements.
/**
* The ETag of the resource, used for concurrency statements.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
Get this must match the first portion of the certificate name. Currently required to be 'SHA1'.
Returns: the thumbprintAlgorithm value
/**
* Get this must match the first portion of the certificate name. Currently required to be 'SHA1'.
*
* @return the thumbprintAlgorithm value
*/
public String thumbprintAlgorithm() {
return this.thumbprintAlgorithm;
}
Set this must match the first portion of the certificate name. Currently required to be 'SHA1'.
Params: - thumbprintAlgorithm – the thumbprintAlgorithm value to set
Returns: the CertificateCreateOrUpdateParameters object itself.
/**
* Set this must match the first portion of the certificate name. Currently required to be 'SHA1'.
*
* @param thumbprintAlgorithm the thumbprintAlgorithm value to set
* @return the CertificateCreateOrUpdateParameters object itself.
*/
public CertificateCreateOrUpdateParameters withThumbprintAlgorithm(String thumbprintAlgorithm) {
this.thumbprintAlgorithm = thumbprintAlgorithm;
return this;
}
Get this must match the thumbprint from the name.
Returns: the thumbprint value
/**
* Get this must match the thumbprint from the name.
*
* @return the thumbprint value
*/
public String thumbprint() {
return this.thumbprint;
}
Set this must match the thumbprint from the name.
Params: - thumbprint – the thumbprint value to set
Returns: the CertificateCreateOrUpdateParameters object itself.
/**
* Set this must match the thumbprint from the name.
*
* @param thumbprint the thumbprint value to set
* @return the CertificateCreateOrUpdateParameters object itself.
*/
public CertificateCreateOrUpdateParameters withThumbprint(String thumbprint) {
this.thumbprint = thumbprint;
return this;
}
Get the format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. Possible values include: 'Pfx', 'Cer'.
Returns: the format value
/**
* Get the format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. Possible values include: 'Pfx', 'Cer'.
*
* @return the format value
*/
public CertificateFormat format() {
return this.format;
}
Set the format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. Possible values include: 'Pfx', 'Cer'.
Params: - format – the format value to set
Returns: the CertificateCreateOrUpdateParameters object itself.
/**
* Set the format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. Possible values include: 'Pfx', 'Cer'.
*
* @param format the format value to set
* @return the CertificateCreateOrUpdateParameters object itself.
*/
public CertificateCreateOrUpdateParameters withFormat(CertificateFormat format) {
this.format = format;
return this;
}
Get the maximum size is 10KB.
Returns: the data value
/**
* Get the maximum size is 10KB.
*
* @return the data value
*/
public String data() {
return this.data;
}
Set the maximum size is 10KB.
Params: - data – the data value to set
Returns: the CertificateCreateOrUpdateParameters object itself.
/**
* Set the maximum size is 10KB.
*
* @param data the data value to set
* @return the CertificateCreateOrUpdateParameters object itself.
*/
public CertificateCreateOrUpdateParameters withData(String data) {
this.data = data;
return this;
}
Get this must not be specified if the certificate format is Cer.
Returns: the password value
/**
* Get this must not be specified if the certificate format is Cer.
*
* @return the password value
*/
public String password() {
return this.password;
}
Set this must not be specified if the certificate format is Cer.
Params: - password – the password value to set
Returns: the CertificateCreateOrUpdateParameters object itself.
/**
* Set this must not be specified if the certificate format is Cer.
*
* @param password the password value to set
* @return the CertificateCreateOrUpdateParameters object itself.
*/
public CertificateCreateOrUpdateParameters withPassword(String password) {
this.password = password;
return this;
}
Get the ETag of the resource, used for concurrency statements.
Returns: the etag value
/**
* Get the ETag of the resource, used for concurrency statements.
*
* @return the etag value
*/
public String etag() {
return this.etag;
}
}