ServiceSubmitBatchHeaders.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.blob.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
/**
* Defines headers for SubmitBatch operation.
*/
@JacksonXmlRootElement(localName = "Service-SubmitBatch-Headers")
@Fluent
public final class ServiceSubmitBatchHeaders {
/*
* The media type of the body of the response. For batch requests, this is
* multipart/mixed; boundary=batchresponse_GUID
*/
@JsonProperty(value = "Content-Type")
private String contentType;
/*
* This header uniquely identifies the request that was made and can be
* used for troubleshooting the request.
*/
@JsonProperty(value = "x-ms-request-id")
private String requestId;
/*
* Indicates the version of the Blob service used to execute the request.
* This header is returned for requests made against version 2009-09-19 and
* above.
*/
@JsonProperty(value = "x-ms-version")
private String version;
/*
* The errorCode property.
*/
@JsonProperty(value = "x-ms-error-code")
private String errorCode;
/**
* Get the contentType property: The media type of the body of the
* response. For batch requests, this is multipart/mixed;
* boundary=batchresponse_GUID.
*
* @return the contentType value.
*/
public String getContentType() {
return this.contentType;
}
/**
* Set the contentType property: The media type of the body of the
* response. For batch requests, this is multipart/mixed;
* boundary=batchresponse_GUID.
*
* @param contentType the contentType value to set.
* @return the ServiceSubmitBatchHeaders object itself.
*/
public ServiceSubmitBatchHeaders setContentType(String contentType) {
this.contentType = contentType;
return this;
}
/**
* Get the requestId property: This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
*
* @return the requestId value.
*/
public String getRequestId() {
return this.requestId;
}
/**
* Set the requestId property: This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
*
* @param requestId the requestId value to set.
* @return the ServiceSubmitBatchHeaders object itself.
*/
public ServiceSubmitBatchHeaders setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Get the version property: Indicates the version of the Blob service used
* to execute the request. This header is returned for requests made
* against version 2009-09-19 and above.
*
* @return the version value.
*/
public String getVersion() {
return this.version;
}
/**
* Set the version property: Indicates the version of the Blob service used
* to execute the request. This header is returned for requests made
* against version 2009-09-19 and above.
*
* @param version the version value to set.
* @return the ServiceSubmitBatchHeaders object itself.
*/
public ServiceSubmitBatchHeaders setVersion(String version) {
this.version = version;
return this;
}
/**
* Get the errorCode property: The errorCode property.
*
* @return the errorCode value.
*/
public String getErrorCode() {
return this.errorCode;
}
/**
* Set the errorCode property: The errorCode property.
*
* @param errorCode the errorCode value to set.
* @return the ServiceSubmitBatchHeaders object itself.
*/
public ServiceSubmitBatchHeaders setErrorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
}