All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.cosmosdb.implementation.DatabaseAccountCreateUpdateParametersInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 1.41.4
Show newest version
/**
 * 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.ConsistencyPolicy;
import java.util.List;
import com.microsoft.azure.management.cosmosdb.Location;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;

/**
 * Parameters to create and update DocumentDB database accounts.
 */
@JsonFlatten
public class DatabaseAccountCreateUpdateParametersInner extends Resource {
    /**
     * 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 consistency policy for the DocumentDB account.
     */
    @JsonProperty(value = "properties.consistencyPolicy")
    private ConsistencyPolicy consistencyPolicy;

    /**
     * An array that contains the georeplication locations enabled for the
     * DocumentDB account.
     */
    @JsonProperty(value = "properties.locations", required = true)
    private List locations;

    /**
     * The databaseAccountOfferType property.
     */
    @JsonProperty(value = "properties.databaseAccountOfferType", required = true)
    private String databaseAccountOfferType;

    /**
     * DocumentDB 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;

    /**
     * Creates an instance of DatabaseAccountCreateUpdateParametersInner class.
     */
    public DatabaseAccountCreateUpdateParametersInner() {
        databaseAccountOfferType = "Standard";
    }

    /**
     * Get the kind value.
     *
     * @return the kind value
     */
    public DatabaseAccountKind kind() {
        return this.kind;
    }

    /**
     * Set the kind value.
     *
     * @param kind the kind value to set
     * @return the DatabaseAccountCreateUpdateParametersInner object itself.
     */
    public DatabaseAccountCreateUpdateParametersInner withKind(DatabaseAccountKind kind) {
        this.kind = kind;
        return this;
    }

    /**
     * Get the consistencyPolicy value.
     *
     * @return the consistencyPolicy value
     */
    public ConsistencyPolicy consistencyPolicy() {
        return this.consistencyPolicy;
    }

    /**
     * Set the consistencyPolicy value.
     *
     * @param consistencyPolicy the consistencyPolicy value to set
     * @return the DatabaseAccountCreateUpdateParametersInner object itself.
     */
    public DatabaseAccountCreateUpdateParametersInner withConsistencyPolicy(ConsistencyPolicy consistencyPolicy) {
        this.consistencyPolicy = consistencyPolicy;
        return this;
    }

    /**
     * Get the locations value.
     *
     * @return the locations value
     */
    public List locations() {
        return this.locations;
    }

    /**
     * Set the locations value.
     *
     * @param locations the locations value to set
     * @return the DatabaseAccountCreateUpdateParametersInner object itself.
     */
    public DatabaseAccountCreateUpdateParametersInner withLocations(List locations) {
        this.locations = locations;
        return this;
    }

    /**
     * Get the databaseAccountOfferType value.
     *
     * @return the databaseAccountOfferType value
     */
    public String databaseAccountOfferType() {
        return this.databaseAccountOfferType;
    }

    /**
     * Set the databaseAccountOfferType value.
     *
     * @param databaseAccountOfferType the databaseAccountOfferType value to set
     * @return the DatabaseAccountCreateUpdateParametersInner object itself.
     */
    public DatabaseAccountCreateUpdateParametersInner withDatabaseAccountOfferType(String databaseAccountOfferType) {
        this.databaseAccountOfferType = databaseAccountOfferType;
        return this;
    }

    /**
     * Get the ipRangeFilter value.
     *
     * @return the ipRangeFilter value
     */
    public String ipRangeFilter() {
        return this.ipRangeFilter;
    }

    /**
     * Set the ipRangeFilter value.
     *
     * @param ipRangeFilter the ipRangeFilter value to set
     * @return the DatabaseAccountCreateUpdateParametersInner object itself.
     */
    public DatabaseAccountCreateUpdateParametersInner withIpRangeFilter(String ipRangeFilter) {
        this.ipRangeFilter = ipRangeFilter;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy