com.microsoft.azure.LongRunningOperationOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-client-runtime Show documentation
Show all versions of azure-client-runtime Show documentation
This package contains the basic runtime for AutoRest generated Azure Java clients.
The newest version!
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure;
/**
* Type representing LRO meta-data present in the x-ms-long-running-operation-options autorest extension.
*/
public final class LongRunningOperationOptions {
/**
* Default instance of this type.
*/
public static final LongRunningOperationOptions DEFAULT = new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.DEFAULT);
/**
* Describes how to retrieve the final state of the LRO.
*/
private LongRunningFinalState finalStateVia;
/**
* @return indicates how to retrieve the final state of LRO.
*/
public LongRunningFinalState finalStateVia() {
return this.finalStateVia;
}
/**
* Sets LongRunningFinalState value.
*
* @param finalStateVia indicates how to retrieve the final state of LRO.
* @return LongRunningOperationOptions
*/
public LongRunningOperationOptions withFinalStateVia(LongRunningFinalState finalStateVia) {
this.finalStateVia = finalStateVia;
return this;
}
}