public class DatabaseAccountCreateUpdateParameters extends ArmResourceProperties
| Constructor and Description |
|---|
DatabaseAccountCreateUpdateParameters()
Creates an instance of DatabaseAccountCreateUpdateParameters class.
|
| Modifier and Type | Method and Description |
|---|---|
List<Capability> |
capabilities()
Get the capabilities property: List of Cosmos DB capabilities for the account.
|
ConnectorOffer |
connectorOffer()
Get the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.
|
ConsistencyPolicy |
consistencyPolicy()
Get the consistencyPolicy property: The consistency policy for the Cosmos DB account.
|
String |
databaseAccountOfferType()
Get the databaseAccountOfferType property: The offer type for the database.
|
Boolean |
disableKeyBasedMetadataWriteAccess()
Get the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases,
containers, throughput) via account keys.
|
Boolean |
enableAutomaticFailover()
Get the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that
the region is unavailable due to an outage.
|
Boolean |
enableCassandraConnector()
Get the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.
|
Boolean |
enableMultipleWriteLocations()
Get the enableMultipleWriteLocations property: Enables the account to write in multiple locations.
|
String |
ipRangeFilter()
Get the ipRangeFilter property: 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.
|
Boolean |
isVirtualNetworkFilterEnabled()
Get the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL
rules.
|
DatabaseAccountKind |
kind()
Get the kind property: Indicates the type of database account.
|
List<Location> |
locations()
Get the locations property: An array that contains the georeplication locations enabled for the Cosmos DB
account.
|
void |
validate()
Validates the instance.
|
List<VirtualNetworkRule> |
virtualNetworkRules()
Get the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.
|
DatabaseAccountCreateUpdateParameters |
withCapabilities(List<Capability> capabilities)
Set the capabilities property: List of Cosmos DB capabilities for the account.
|
DatabaseAccountCreateUpdateParameters |
withConnectorOffer(ConnectorOffer connectorOffer)
Set the connectorOffer property: The cassandra connector offer type for the Cosmos DB database C* account.
|
DatabaseAccountCreateUpdateParameters |
withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)
Set the consistencyPolicy property: The consistency policy for the Cosmos DB account.
|
DatabaseAccountCreateUpdateParameters |
withDatabaseAccountOfferType(String databaseAccountOfferType)
Set the databaseAccountOfferType property: The offer type for the database.
|
DatabaseAccountCreateUpdateParameters |
withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess)
Set the disableKeyBasedMetadataWriteAccess property: Disable write operations on metadata resources (databases,
containers, throughput) via account keys.
|
DatabaseAccountCreateUpdateParameters |
withEnableAutomaticFailover(Boolean enableAutomaticFailover)
Set the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that
the region is unavailable due to an outage.
|
DatabaseAccountCreateUpdateParameters |
withEnableCassandraConnector(Boolean enableCassandraConnector)
Set the enableCassandraConnector property: Enables the cassandra connector on the Cosmos DB C* account.
|
DatabaseAccountCreateUpdateParameters |
withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations)
Set the enableMultipleWriteLocations property: Enables the account to write in multiple locations.
|
DatabaseAccountCreateUpdateParameters |
withIpRangeFilter(String ipRangeFilter)
Set the ipRangeFilter property: 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.
|
DatabaseAccountCreateUpdateParameters |
withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled)
Set the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL
rules.
|
DatabaseAccountCreateUpdateParameters |
withKind(DatabaseAccountKind kind)
Set the kind property: Indicates the type of database account.
|
DatabaseAccountCreateUpdateParameters |
withLocations(List<Location> locations)
Set the locations property: An array that contains the georeplication locations enabled for the Cosmos DB
account.
|
DatabaseAccountCreateUpdateParameters |
withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
Set the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.
|
public DatabaseAccountCreateUpdateParameters()
public DatabaseAccountKind kind()
public DatabaseAccountCreateUpdateParameters withKind(DatabaseAccountKind kind)
kind - the kind value to set.public ConsistencyPolicy consistencyPolicy()
public DatabaseAccountCreateUpdateParameters withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)
consistencyPolicy - the consistencyPolicy value to set.public List<Location> locations()
public DatabaseAccountCreateUpdateParameters withLocations(List<Location> locations)
locations - the locations value to set.public String databaseAccountOfferType()
public DatabaseAccountCreateUpdateParameters withDatabaseAccountOfferType(String databaseAccountOfferType)
databaseAccountOfferType - the databaseAccountOfferType value to set.public String ipRangeFilter()
public DatabaseAccountCreateUpdateParameters withIpRangeFilter(String ipRangeFilter)
ipRangeFilter - the ipRangeFilter value to set.public Boolean isVirtualNetworkFilterEnabled()
public DatabaseAccountCreateUpdateParameters withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled)
isVirtualNetworkFilterEnabled - the isVirtualNetworkFilterEnabled value to set.public Boolean enableAutomaticFailover()
public DatabaseAccountCreateUpdateParameters withEnableAutomaticFailover(Boolean enableAutomaticFailover)
enableAutomaticFailover - the enableAutomaticFailover value to set.public List<Capability> capabilities()
public DatabaseAccountCreateUpdateParameters withCapabilities(List<Capability> capabilities)
capabilities - the capabilities value to set.public List<VirtualNetworkRule> virtualNetworkRules()
public DatabaseAccountCreateUpdateParameters withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules)
virtualNetworkRules - the virtualNetworkRules value to set.public Boolean enableMultipleWriteLocations()
public DatabaseAccountCreateUpdateParameters withEnableMultipleWriteLocations(Boolean enableMultipleWriteLocations)
enableMultipleWriteLocations - the enableMultipleWriteLocations value to set.public Boolean enableCassandraConnector()
public DatabaseAccountCreateUpdateParameters withEnableCassandraConnector(Boolean enableCassandraConnector)
enableCassandraConnector - the enableCassandraConnector value to set.public ConnectorOffer connectorOffer()
public DatabaseAccountCreateUpdateParameters withConnectorOffer(ConnectorOffer connectorOffer)
connectorOffer - the connectorOffer value to set.public Boolean disableKeyBasedMetadataWriteAccess()
public DatabaseAccountCreateUpdateParameters withDisableKeyBasedMetadataWriteAccess(Boolean disableKeyBasedMetadataWriteAccess)
disableKeyBasedMetadataWriteAccess - the disableKeyBasedMetadataWriteAccess value to set.public void validate()
validate in class ArmResourcePropertiesIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.