
com.azure.cosmos.CosmosPermissionRequestOptions Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos;
import com.azure.cosmos.implementation.RequestOptions;
/**
* Contains the request options of CosmosAsyncPermission
*/
public class CosmosPermissionRequestOptions {
//TODO: Need to add respective options
private AccessCondition accessCondition;
/**
* Gets the conditions associated with the request.
*
* @return the access condition.
*/
public AccessCondition getAccessCondition() {
return accessCondition;
}
/**
* Sets the conditions associated with the request.
*
* @param accessCondition the access condition.
* @return the current request options
*/
public CosmosPermissionRequestOptions setAccessCondition(AccessCondition accessCondition) {
this.accessCondition = accessCondition;
return this;
}
RequestOptions toRequestOptions() {
//TODO: Should we set any default values instead of nulls?
RequestOptions requestOptions = new RequestOptions();
requestOptions.setAccessCondition(accessCondition);
return requestOptions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy