com.azure.storage.blob.implementation.models.ServicesGetAccountInfoHeaders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob Show documentation
Show all versions of azure-storage-blob Show documentation
This module contains client library for Microsoft Azure Blob Storage.
// 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.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.util.DateTimeRfc1123;
import com.azure.storage.blob.models.AccountKind;
import com.azure.storage.blob.models.SkuName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.time.OffsetDateTime;
/** The ServicesGetAccountInfoHeaders model. */
@JacksonXmlRootElement(localName = "null")
@Fluent
public final class ServicesGetAccountInfoHeaders {
/*
* The x-ms-version property.
*/
@JsonProperty(value = "x-ms-version")
private String xMsVersion;
/*
* The x-ms-account-kind property.
*/
@JsonProperty(value = "x-ms-account-kind")
private AccountKind xMsAccountKind;
/*
* The x-ms-is-hns-enabled property.
*/
@JsonProperty(value = "x-ms-is-hns-enabled")
private Boolean xMsIsHnsEnabled;
/*
* The x-ms-sku-name property.
*/
@JsonProperty(value = "x-ms-sku-name")
private SkuName xMsSkuName;
/*
* The x-ms-request-id property.
*/
@JsonProperty(value = "x-ms-request-id")
private String xMsRequestId;
/*
* The x-ms-client-request-id property.
*/
@JsonProperty(value = "x-ms-client-request-id")
private String xMsClientRequestId;
/*
* The Date property.
*/
@JsonProperty(value = "Date")
private DateTimeRfc1123 date;
private static final HttpHeaderName X_MS_VERSION = HttpHeaderName.fromString("x-ms-version");
private static final HttpHeaderName X_MS_ACCOUNT_KIND = HttpHeaderName.fromString("x-ms-account-kind");
private static final HttpHeaderName X_MS_IS_HNS_ENABLED = HttpHeaderName.fromString("x-ms-is-hns-enabled");
private static final HttpHeaderName X_MS_SKU_NAME = HttpHeaderName.fromString("x-ms-sku-name");
private static final HttpHeaderName X_MS_REQUEST_ID = HttpHeaderName.fromString("x-ms-request-id");
// HttpHeaders containing the raw property values.
/**
* Creates an instance of ServicesGetAccountInfoHeaders class.
*
* @param rawHeaders The raw HttpHeaders that will be used to create the property values.
*/
public ServicesGetAccountInfoHeaders(HttpHeaders rawHeaders) {
this.xMsVersion = rawHeaders.getValue(X_MS_VERSION);
String xMsAccountKind = rawHeaders.getValue(X_MS_ACCOUNT_KIND);
if (xMsAccountKind != null) {
this.xMsAccountKind = AccountKind.fromString(xMsAccountKind);
}
String xMsIsHnsEnabled = rawHeaders.getValue(X_MS_IS_HNS_ENABLED);
if (xMsIsHnsEnabled != null) {
this.xMsIsHnsEnabled = Boolean.parseBoolean(xMsIsHnsEnabled);
}
String xMsSkuName = rawHeaders.getValue(X_MS_SKU_NAME);
if (xMsSkuName != null) {
this.xMsSkuName = SkuName.fromString(xMsSkuName);
}
this.xMsRequestId = rawHeaders.getValue(X_MS_REQUEST_ID);
this.xMsClientRequestId = rawHeaders.getValue(HttpHeaderName.X_MS_CLIENT_REQUEST_ID);
String date = rawHeaders.getValue(HttpHeaderName.DATE);
if (date != null) {
this.date = new DateTimeRfc1123(date);
}
}
/**
* Get the xMsVersion property: The x-ms-version property.
*
* @return the xMsVersion value.
*/
public String getXMsVersion() {
return this.xMsVersion;
}
/**
* Set the xMsVersion property: The x-ms-version property.
*
* @param xMsVersion the xMsVersion value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setXMsVersion(String xMsVersion) {
this.xMsVersion = xMsVersion;
return this;
}
/**
* Get the xMsAccountKind property: The x-ms-account-kind property.
*
* @return the xMsAccountKind value.
*/
public AccountKind getXMsAccountKind() {
return this.xMsAccountKind;
}
/**
* Set the xMsAccountKind property: The x-ms-account-kind property.
*
* @param xMsAccountKind the xMsAccountKind value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setXMsAccountKind(AccountKind xMsAccountKind) {
this.xMsAccountKind = xMsAccountKind;
return this;
}
/**
* Get the xMsIsHnsEnabled property: The x-ms-is-hns-enabled property.
*
* @return the xMsIsHnsEnabled value.
*/
public Boolean isXMsIsHnsEnabled() {
return this.xMsIsHnsEnabled;
}
/**
* Set the xMsIsHnsEnabled property: The x-ms-is-hns-enabled property.
*
* @param xMsIsHnsEnabled the xMsIsHnsEnabled value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setXMsIsHnsEnabled(Boolean xMsIsHnsEnabled) {
this.xMsIsHnsEnabled = xMsIsHnsEnabled;
return this;
}
/**
* Get the xMsSkuName property: The x-ms-sku-name property.
*
* @return the xMsSkuName value.
*/
public SkuName getXMsSkuName() {
return this.xMsSkuName;
}
/**
* Set the xMsSkuName property: The x-ms-sku-name property.
*
* @param xMsSkuName the xMsSkuName value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setXMsSkuName(SkuName xMsSkuName) {
this.xMsSkuName = xMsSkuName;
return this;
}
/**
* Get the xMsRequestId property: The x-ms-request-id property.
*
* @return the xMsRequestId value.
*/
public String getXMsRequestId() {
return this.xMsRequestId;
}
/**
* Set the xMsRequestId property: The x-ms-request-id property.
*
* @param xMsRequestId the xMsRequestId value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setXMsRequestId(String xMsRequestId) {
this.xMsRequestId = xMsRequestId;
return this;
}
/**
* Get the xMsClientRequestId property: The x-ms-client-request-id property.
*
* @return the xMsClientRequestId value.
*/
public String getXMsClientRequestId() {
return this.xMsClientRequestId;
}
/**
* Set the xMsClientRequestId property: The x-ms-client-request-id property.
*
* @param xMsClientRequestId the xMsClientRequestId value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setXMsClientRequestId(String xMsClientRequestId) {
this.xMsClientRequestId = xMsClientRequestId;
return this;
}
/**
* Get the date property: The Date property.
*
* @return the date value.
*/
public OffsetDateTime getDate() {
if (this.date == null) {
return null;
}
return this.date.getDateTime();
}
/**
* Set the date property: The Date property.
*
* @param date the date value to set.
* @return the ServicesGetAccountInfoHeaders object itself.
*/
public ServicesGetAccountInfoHeaders setDate(OffsetDateTime date) {
if (date == null) {
this.date = null;
} else {
this.date = new DateTimeRfc1123(date);
}
return this;
}
}