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.implementation; import com.microsoft.azure.management.cosmosdb.DatabaseAccountKind; import com.microsoft.azure.management.cosmosdb.DatabaseAccountOfferType; import com.microsoft.azure.management.cosmosdb.ConsistencyPolicy; import java.util.List; import com.microsoft.azure.management.cosmosdb.Capability; import com.microsoft.azure.management.cosmosdb.Location; import com.microsoft.azure.management.cosmosdb.FailoverPolicy; import com.microsoft.azure.management.cosmosdb.VirtualNetworkRule; import com.microsoft.azure.management.cosmosdb.ConnectorOffer; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.management.cosmosdb.ARMResourceProperties;
An Azure Cosmos DB database account.
/** * An Azure Cosmos DB database account. */
@JsonFlatten public class DatabaseAccountGetResultsInner extends ARMResourceProperties {
Indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'.
/** * Indicates the type of database account. This can only be set at database * account creation. Possible values include: 'GlobalDocumentDB', * 'MongoDB', 'Parse'. */
@JsonProperty(value = "kind") private DatabaseAccountKind kind;
The provisioningState property.
/** * The provisioningState property. */
@JsonProperty(value = "properties.provisioningState") private String provisioningState;
The connection endpoint for the Cosmos DB database account.
/** * The connection endpoint for the Cosmos DB database account. */
@JsonProperty(value = "properties.documentEndpoint", access = JsonProperty.Access.WRITE_ONLY) private String documentEndpoint;
The offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard'.
/** * The offer type for the Cosmos DB database account. Default value: * Standard. Possible values include: 'Standard'. */
@JsonProperty(value = "properties.databaseAccountOfferType", access = JsonProperty.Access.WRITE_ONLY) private DatabaseAccountOfferType databaseAccountOfferType;
Cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
/** * Cosmos DB Firewall Support: This value specifies the set of IP addresses * or IP address ranges in CIDR form to be included as the allowed list of * client IPs for a given database account. IP addresses/ranges must be * comma separated and must not contain any spaces. */
@JsonProperty(value = "properties.ipRangeFilter") private String ipRangeFilter;
Flag to indicate whether to enable/disable Virtual Network ACL rules.
/** * Flag to indicate whether to enable/disable Virtual Network ACL rules. */
@JsonProperty(value = "properties.isVirtualNetworkFilterEnabled") private Boolean isVirtualNetworkFilterEnabled;
Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
/** * Enables automatic failover of the write region in the rare event that * the region is unavailable due to an outage. Automatic failover will * result in a new write region for the account and is chosen based on the * failover priorities configured for the account. */
@JsonProperty(value = "properties.enableAutomaticFailover") private Boolean enableAutomaticFailover;
The consistency policy for the Cosmos DB database account.
/** * The consistency policy for the Cosmos DB database account. */
@JsonProperty(value = "properties.consistencyPolicy") private ConsistencyPolicy consistencyPolicy;
List of Cosmos DB capabilities for the account.
/** * List of Cosmos DB capabilities for the account. */
@JsonProperty(value = "properties.capabilities") private List<Capability> capabilities;
An array that contains the write location for the Cosmos DB account.
/** * An array that contains the write location for the Cosmos DB account. */
@JsonProperty(value = "properties.writeLocations", access = JsonProperty.Access.WRITE_ONLY) private List<Location> writeLocations;
An array that contains of the read locations enabled for the Cosmos DB account.
/** * An array that contains of the read locations enabled for the Cosmos DB * account. */
@JsonProperty(value = "properties.readLocations", access = JsonProperty.Access.WRITE_ONLY) private List<Location> readLocations;
An array that contains all of the locations enabled for the Cosmos DB account.
/** * An array that contains all of the locations enabled for the Cosmos DB * account. */
@JsonProperty(value = "properties.locations", access = JsonProperty.Access.WRITE_ONLY) private List<Location> locations;
An array that contains the regions ordered by their failover priorities.
/** * An array that contains the regions ordered by their failover priorities. */
@JsonProperty(value = "properties.failoverPolicies", access = JsonProperty.Access.WRITE_ONLY) private List<FailoverPolicy> failoverPolicies;
List of Virtual Network ACL rules configured for the Cosmos DB account.
/** * List of Virtual Network ACL rules configured for the Cosmos DB account. */
@JsonProperty(value = "properties.virtualNetworkRules") private List<VirtualNetworkRule> virtualNetworkRules;
Enables the account to write in multiple locations.
/** * Enables the account to write in multiple locations. */
@JsonProperty(value = "properties.enableMultipleWriteLocations") private Boolean enableMultipleWriteLocations;
Enables the cassandra connector on the Cosmos DB C* account.
/** * Enables the cassandra connector on the Cosmos DB C* account. */
@JsonProperty(value = "properties.enableCassandraConnector") private Boolean enableCassandraConnector;
The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'.
/** * The cassandra connector offer type for the Cosmos DB database C* * account. Possible values include: 'Small'. */
@JsonProperty(value = "properties.connectorOffer") private ConnectorOffer connectorOffer;
Disable write operations on metadata resources (databases, containers, throughput) via account keys.
/** * Disable write operations on metadata resources (databases, containers, * throughput) via account keys. */
@JsonProperty(value = "properties.disableKeyBasedMetadataWriteAccess") private Boolean disableKeyBasedMetadataWriteAccess;
Get indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'.
Returns:the kind value
/** * Get indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. * * @return the kind value */
public DatabaseAccountKind kind() { return this.kind; }
Set indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'.
Params:
  • kind – the kind value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set indicates the type of database account. This can only be set at database account creation. Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. * * @param kind the kind value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withKind(DatabaseAccountKind kind) { this.kind = kind; return this; }
Get the provisioningState value.
Returns:the provisioningState value
/** * Get the provisioningState value. * * @return the provisioningState value */
public String provisioningState() { return this.provisioningState; }
Set the provisioningState value.
Params:
  • provisioningState – the provisioningState value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set the provisioningState value. * * @param provisioningState the provisioningState value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withProvisioningState(String provisioningState) { this.provisioningState = provisioningState; return this; }
Get the connection endpoint for the Cosmos DB database account.
Returns:the documentEndpoint value
/** * Get the connection endpoint for the Cosmos DB database account. * * @return the documentEndpoint value */
public String documentEndpoint() { return this.documentEndpoint; }
Get the offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard'.
Returns:the databaseAccountOfferType value
/** * Get the offer type for the Cosmos DB database account. Default value: Standard. Possible values include: 'Standard'. * * @return the databaseAccountOfferType value */
public DatabaseAccountOfferType databaseAccountOfferType() { return this.databaseAccountOfferType; }
Get cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
Returns:the ipRangeFilter value
/** * Get cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. * * @return the ipRangeFilter value */
public String ipRangeFilter() { return this.ipRangeFilter; }
Set cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces.
Params:
  • ipRangeFilter – the ipRangeFilter value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set cosmos DB Firewall Support: This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account. IP addresses/ranges must be comma separated and must not contain any spaces. * * @param ipRangeFilter the ipRangeFilter value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withIpRangeFilter(String ipRangeFilter) { this.ipRangeFilter = ipRangeFilter; return this; }
Get flag to indicate whether to enable/disable Virtual Network ACL rules.
Returns:the isVirtualNetworkFilterEnabled value
/** * Get flag to indicate whether to enable/disable Virtual Network ACL rules. * * @return the isVirtualNetworkFilterEnabled value */
public Boolean isVirtualNetworkFilterEnabled() { return this.isVirtualNetworkFilterEnabled; }
Set flag to indicate whether to enable/disable Virtual Network ACL rules.
Params:
  • isVirtualNetworkFilterEnabled – the isVirtualNetworkFilterEnabled value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set flag to indicate whether to enable/disable Virtual Network ACL rules. * * @param isVirtualNetworkFilterEnabled the isVirtualNetworkFilterEnabled value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled) { this.isVirtualNetworkFilterEnabled = isVirtualNetworkFilterEnabled; return this; }
Get enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
Returns:the enableAutomaticFailover value
/** * Get enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. * * @return the enableAutomaticFailover value */
public Boolean enableAutomaticFailover() { return this.enableAutomaticFailover; }
Set enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
Params:
  • enableAutomaticFailover – the enableAutomaticFailover value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. * * @param enableAutomaticFailover the enableAutomaticFailover value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withEnableAutomaticFailover(Boolean enableAutomaticFailover) { this.enableAutomaticFailover = enableAutomaticFailover; return this; }
Get the consistency policy for the Cosmos DB database account.
Returns:the consistencyPolicy value
/** * Get the consistency policy for the Cosmos DB database account. * * @return the consistencyPolicy value */
public ConsistencyPolicy consistencyPolicy() { return this.consistencyPolicy; }
Set the consistency policy for the Cosmos DB database account.
Params:
  • consistencyPolicy – the consistencyPolicy value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set the consistency policy for the Cosmos DB database account. * * @param consistencyPolicy the consistencyPolicy value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withConsistencyPolicy(ConsistencyPolicy consistencyPolicy) { this.consistencyPolicy = consistencyPolicy; return this; }
Get list of Cosmos DB capabilities for the account.
Returns:the capabilities value
/** * Get list of Cosmos DB capabilities for the account. * * @return the capabilities value */
public List<Capability> capabilities() { return this.capabilities; }
Set list of Cosmos DB capabilities for the account.
Params:
  • capabilities – the capabilities value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set list of Cosmos DB capabilities for the account. * * @param capabilities the capabilities value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withCapabilities(List<Capability> capabilities) { this.capabilities = capabilities; return this; }
Get an array that contains the write location for the Cosmos DB account.
Returns:the writeLocations value
/** * Get an array that contains the write location for the Cosmos DB account. * * @return the writeLocations value */
public List<Location> writeLocations() { return this.writeLocations; }
Get an array that contains of the read locations enabled for the Cosmos DB account.
Returns:the readLocations value
/** * Get an array that contains of the read locations enabled for the Cosmos DB account. * * @return the readLocations value */
public List<Location> readLocations() { return this.readLocations; }
Get an array that contains all of the locations enabled for the Cosmos DB account.
Returns:the locations value
/** * Get an array that contains all of the locations enabled for the Cosmos DB account. * * @return the locations value */
public List<Location> locations() { return this.locations; }
Get an array that contains the regions ordered by their failover priorities.
Returns:the failoverPolicies value
/** * Get an array that contains the regions ordered by their failover priorities. * * @return the failoverPolicies value */
public List<FailoverPolicy> failoverPolicies() { return this.failoverPolicies; }
Get list of Virtual Network ACL rules configured for the Cosmos DB account.
Returns:the virtualNetworkRules value
/** * Get list of Virtual Network ACL rules configured for the Cosmos DB account. * * @return the virtualNetworkRules value */
public List<VirtualNetworkRule> virtualNetworkRules() { return this.virtualNetworkRules; }
Set list of Virtual Network ACL rules configured for the Cosmos DB account.
Params:
  • virtualNetworkRules – the virtualNetworkRules value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set list of Virtual Network ACL rules configured for the Cosmos DB account. * * @param virtualNetworkRules the virtualNetworkRules value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) { this.virtualNetworkRules = virtualNetworkRules; return this; }
Get enables the account to write in multiple locations.
Returns:the enableMultipleWriteLocations value
/** * Get enables the account to write in multiple locations. * * @return the enableMultipleWriteLocations value */
public Boolean enableMultipleWriteLocations() { return this.enableMultipleWriteLocations; }
Set enables the account to write in multiple locations.
Params:
  • enableMultipleWriteLocations – the enableMultipleWriteLocations value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set enables the account to write in multiple locations. * * @param enableMultipleWriteLocations the enableMultipleWriteLocations value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations) { this.enableMultipleWriteLocations = enableMultipleWriteLocations; return this; }
Get enables the cassandra connector on the Cosmos DB C* account.
Returns:the enableCassandraConnector value
/** * Get enables the cassandra connector on the Cosmos DB C* account. * * @return the enableCassandraConnector value */
public Boolean enableCassandraConnector() { return this.enableCassandraConnector; }
Set enables the cassandra connector on the Cosmos DB C* account.
Params:
  • enableCassandraConnector – the enableCassandraConnector value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set enables the cassandra connector on the Cosmos DB C* account. * * @param enableCassandraConnector the enableCassandraConnector value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withEnableCassandraConnector(Boolean enableCassandraConnector) { this.enableCassandraConnector = enableCassandraConnector; return this; }
Get the cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'.
Returns:the connectorOffer value
/** * Get the cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'. * * @return the connectorOffer value */
public ConnectorOffer connectorOffer() { return this.connectorOffer; }
Set the cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'.
Params:
  • connectorOffer – the connectorOffer value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set the cassandra connector offer type for the Cosmos DB database C* account. Possible values include: 'Small'. * * @param connectorOffer the connectorOffer value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withConnectorOffer(ConnectorOffer connectorOffer) { this.connectorOffer = connectorOffer; return this; }
Get disable write operations on metadata resources (databases, containers, throughput) via account keys.
Returns:the disableKeyBasedMetadataWriteAccess value
/** * Get disable write operations on metadata resources (databases, containers, throughput) via account keys. * * @return the disableKeyBasedMetadataWriteAccess value */
public Boolean disableKeyBasedMetadataWriteAccess() { return this.disableKeyBasedMetadataWriteAccess; }
Set disable write operations on metadata resources (databases, containers, throughput) via account keys.
Params:
  • disableKeyBasedMetadataWriteAccess – the disableKeyBasedMetadataWriteAccess value to set
Returns:the DatabaseAccountGetResultsInner object itself.
/** * Set disable write operations on metadata resources (databases, containers, throughput) via account keys. * * @param disableKeyBasedMetadataWriteAccess the disableKeyBasedMetadataWriteAccess value to set * @return the DatabaseAccountGetResultsInner object itself. */
public DatabaseAccountGetResultsInner withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess) { this.disableKeyBasedMetadataWriteAccess = disableKeyBasedMetadataWriteAccess; return this; } }