/** * 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 GetNodeFilePropertiesFromComputeNode operation. */ public class FileGetNodeFilePropertiesFromComputeNodeHeaders { /** * 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; /** * The file creation time. */ @JsonProperty(value = "ocp-creation-time") private DateTimeRfc1123 ocpCreationTime; /** * Whether the object represents a directory. */ @JsonProperty(value = "ocp-batch-file-isdirectory") private Boolean ocpBatchFileIsdirectory; /** * The URL of the file. */ @JsonProperty(value = "ocp-batch-file-url") private String ocpBatchFileUrl; /** * The file mode attribute in octal format. */ @JsonProperty(value = "ocp-batch-file-mode") private String ocpBatchFileMode; /** * The content type of the file. */ @JsonProperty(value = "Content-Type") private String contentType; /** * The length of the file. */ @JsonProperty(value = "Content-Length") private Long contentLength; /** * 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 FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders 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 FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders 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 FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders 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 FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; } /** * Get the ocpCreationTime value. * * @return the ocpCreationTime value */ public DateTime ocpCreationTime() { if (this.ocpCreationTime == null) { return null; } return this.ocpCreationTime.getDateTime(); } /** * Set the ocpCreationTime value. * * @param ocpCreationTime the ocpCreationTime value to set * @return the FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withOcpCreationTime(DateTime ocpCreationTime) { if (ocpCreationTime == null) { this.ocpCreationTime = null; } else { this.ocpCreationTime = new DateTimeRfc1123(ocpCreationTime); } return this; } /** * Get the ocpBatchFileIsdirectory value. * * @return the ocpBatchFileIsdirectory value */ public Boolean ocpBatchFileIsdirectory() { return this.ocpBatchFileIsdirectory; } /** * Set the ocpBatchFileIsdirectory value. * * @param ocpBatchFileIsdirectory the ocpBatchFileIsdirectory value to set * @return the FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withOcpBatchFileIsdirectory(Boolean ocpBatchFileIsdirectory) { this.ocpBatchFileIsdirectory = ocpBatchFileIsdirectory; return this; } /** * Get the ocpBatchFileUrl value. * * @return the ocpBatchFileUrl value */ public String ocpBatchFileUrl() { return this.ocpBatchFileUrl; } /** * Set the ocpBatchFileUrl value. * * @param ocpBatchFileUrl the ocpBatchFileUrl value to set * @return the FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withOcpBatchFileUrl(String ocpBatchFileUrl) { this.ocpBatchFileUrl = ocpBatchFileUrl; return this; } /** * Get the ocpBatchFileMode value. * * @return the ocpBatchFileMode value */ public String ocpBatchFileMode() { return this.ocpBatchFileMode; } /** * Set the ocpBatchFileMode value. * * @param ocpBatchFileMode the ocpBatchFileMode value to set * @return the FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withOcpBatchFileMode(String ocpBatchFileMode) { this.ocpBatchFileMode = ocpBatchFileMode; return this; } /** * Get the contentType value. * * @return the contentType value */ public String contentType() { return this.contentType; } /** * Set the contentType value. * * @param contentType the contentType value to set * @return the FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withContentType(String contentType) { this.contentType = contentType; return this; } /** * Get the contentLength value. * * @return the contentLength value */ public Long contentLength() { return this.contentLength; } /** * Set the contentLength value. * * @param contentLength the contentLength value to set * @return the FileGetNodeFilePropertiesFromComputeNodeHeaders object itself. */ public FileGetNodeFilePropertiesFromComputeNodeHeaders withContentLength(Long contentLength) { this.contentLength = contentLength; return this; } }