/** * 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.microsoft.rest.DateTimeRfc1123; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; /** * Defines headers for Get operation. */ public class CertificateGetHeaders { /** * The ClientRequestId provided by the client during the request, if * present and requested to be returned. */ @JsonProperty(value = "client-request-id") private String clientRequestId; /** * The value that uniquely identifies a request. */ @JsonProperty(value = "request-id") private String requestId; /** * The content of the ETag HTTP response header. */ @JsonProperty(value = "ETag") private String eTag; /** * The content of the Last-Modified HTTP response header. */ @JsonProperty(value = "Last-Modified") private DateTimeRfc1123 lastModified; /** * Get the clientRequestId value. * * @return the clientRequestId value */ public String clientRequestId() { return this.clientRequestId; } /** * Set the clientRequestId value. * * @param clientRequestId the clientRequestId value to set * @return the CertificateGetHeaders object itself. */ public CertificateGetHeaders withClientRequestId(String clientRequestId) { this.clientRequestId = clientRequestId; return this; } /** * Get the requestId value. * * @return the requestId value */ public String requestId() { return this.requestId; } /** * Set the requestId value. * * @param requestId the requestId value to set * @return the CertificateGetHeaders object itself. */ public CertificateGetHeaders withRequestId(String requestId) { this.requestId = requestId; return this; } /** * Get the eTag value. * * @return the eTag value */ public String eTag() { return this.eTag; } /** * Set the eTag value. * * @param eTag the eTag value to set * @return the CertificateGetHeaders object itself. */ public CertificateGetHeaders withETag(String eTag) { this.eTag = eTag; return this; } /** * Get the lastModified value. * * @return the lastModified value */ public DateTime lastModified() { if (this.lastModified == null) { return null; } return this.lastModified.getDateTime(); } /** * Set the lastModified value. * * @param lastModified the lastModified value to set * @return the CertificateGetHeaders object itself. */ public CertificateGetHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; } }