Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cosmosdb;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Parameters to create and update Cosmos DB Cassandra keyspace.
/**
* Parameters to create and update Cosmos DB Cassandra keyspace.
*/
@JsonFlatten
public class CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties {
The standard JSON format of a Cassandra keyspace.
/**
* The standard JSON format of a Cassandra keyspace.
*/
@JsonProperty(value = "properties.resource", required = true)
private CassandraKeyspaceResource resource;
A key-value pair of options to be applied for the request. This
corresponds to the headers sent with the request.
/**
* A key-value pair of options to be applied for the request. This
* corresponds to the headers sent with the request.
*/
@JsonProperty(value = "properties.options", required = true)
private Map<String, String> options;
Get the standard JSON format of a Cassandra keyspace.
Returns: the resource value
/**
* Get the standard JSON format of a Cassandra keyspace.
*
* @return the resource value
*/
public CassandraKeyspaceResource resource() {
return this.resource;
}
Set the standard JSON format of a Cassandra keyspace.
Params: - resource – the resource value to set
Returns: the CassandraKeyspaceCreateUpdateParameters object itself.
/**
* Set the standard JSON format of a Cassandra keyspace.
*
* @param resource the resource value to set
* @return the CassandraKeyspaceCreateUpdateParameters object itself.
*/
public CassandraKeyspaceCreateUpdateParameters withResource(CassandraKeyspaceResource resource) {
this.resource = resource;
return this;
}
Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
Returns: the options value
/**
* Get a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
*
* @return the options value
*/
public Map<String, String> options() {
return this.options;
}
Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
Params: - options – the options value to set
Returns: the CassandraKeyspaceCreateUpdateParameters object itself.
/**
* Set a key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
*
* @param options the options value to set
* @return the CassandraKeyspaceCreateUpdateParameters object itself.
*/
public CassandraKeyspaceCreateUpdateParameters withOptions(Map<String, String> options) {
this.options = options;
return this;
}
}