com.azure.resourcemanager.mediaservices.models.MediaServicesOperationResultsGetHeaders Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mediaservices Show documentation
Show all versions of azure-resourcemanager-mediaservices Show documentation
This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-account-2023-01.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
/**
* The MediaServicesOperationResultsGetHeaders model.
*/
@Fluent
public final class MediaServicesOperationResultsGetHeaders {
/*
* The Retry-After property.
*/
private Integer retryAfter;
/*
* The Azure-AsyncOperation property.
*/
private String azureAsyncOperation;
/*
* The Location property.
*/
private String location;
// HttpHeaders containing the raw property values.
/**
* Creates an instance of MediaServicesOperationResultsGetHeaders class.
*
* @param rawHeaders The raw HttpHeaders that will be used to create the property values.
*/
public MediaServicesOperationResultsGetHeaders(HttpHeaders rawHeaders) {
String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER);
if (retryAfter != null) {
this.retryAfter = Integer.parseInt(retryAfter);
}
this.azureAsyncOperation = rawHeaders.getValue(HttpHeaderName.AZURE_ASYNCOPERATION);
this.location = rawHeaders.getValue(HttpHeaderName.LOCATION);
}
/**
* Get the retryAfter property: The Retry-After property.
*
* @return the retryAfter value.
*/
public Integer retryAfter() {
return this.retryAfter;
}
/**
* Set the retryAfter property: The Retry-After property.
*
* @param retryAfter the retryAfter value to set.
* @return the MediaServicesOperationResultsGetHeaders object itself.
*/
public MediaServicesOperationResultsGetHeaders withRetryAfter(Integer retryAfter) {
this.retryAfter = retryAfter;
return this;
}
/**
* Get the azureAsyncOperation property: The Azure-AsyncOperation property.
*
* @return the azureAsyncOperation value.
*/
public String azureAsyncOperation() {
return this.azureAsyncOperation;
}
/**
* Set the azureAsyncOperation property: The Azure-AsyncOperation property.
*
* @param azureAsyncOperation the azureAsyncOperation value to set.
* @return the MediaServicesOperationResultsGetHeaders object itself.
*/
public MediaServicesOperationResultsGetHeaders withAzureAsyncOperation(String azureAsyncOperation) {
this.azureAsyncOperation = azureAsyncOperation;
return this;
}
/**
* Get the location property: The Location property.
*
* @return the location value.
*/
public String location() {
return this.location;
}
/**
* Set the location property: The Location property.
*
* @param location the location value to set.
* @return the MediaServicesOperationResultsGetHeaders object itself.
*/
public MediaServicesOperationResultsGetHeaders withLocation(String location) {
this.location = location;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy