com.azure.resourcemanager.cosmos.models.PrivilegeResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-cosmos Show documentation
Show all versions of azure-resourcemanager-cosmos Show documentation
This package contains Microsoft Azure CosmosDB SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.cosmos.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An Azure Cosmos DB Mongo DB Resource.
*/
@Fluent
public final class PrivilegeResource {
/*
* The database name the role is applied.
*/
@JsonProperty(value = "db")
private String db;
/*
* The collection name the role is applied.
*/
@JsonProperty(value = "collection")
private String collection;
/**
* Creates an instance of PrivilegeResource class.
*/
public PrivilegeResource() {
}
/**
* Get the db property: The database name the role is applied.
*
* @return the db value.
*/
public String db() {
return this.db;
}
/**
* Set the db property: The database name the role is applied.
*
* @param db the db value to set.
* @return the PrivilegeResource object itself.
*/
public PrivilegeResource withDb(String db) {
this.db = db;
return this;
}
/**
* Get the collection property: The collection name the role is applied.
*
* @return the collection value.
*/
public String collection() {
return this.collection;
}
/**
* Set the collection property: The collection name the role is applied.
*
* @param collection the collection value to set.
* @return the PrivilegeResource object itself.
*/
public PrivilegeResource withCollection(String collection) {
this.collection = collection;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy