com.azure.resourcemanager.cosmos.fluent.models.RestorableMongodbCollectionProperties 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.cosmos.models.RestorableMongodbCollectionPropertiesResource;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The properties of an Azure Cosmos DB MongoDB collection event.
*/
@Fluent
public final class RestorableMongodbCollectionProperties {
/*
* The resource of an Azure Cosmos DB MongoDB collection event
*/
@JsonProperty(value = "resource")
private RestorableMongodbCollectionPropertiesResource resource;
/**
* Creates an instance of RestorableMongodbCollectionProperties class.
*/
public RestorableMongodbCollectionProperties() {
}
/**
* Get the resource property: The resource of an Azure Cosmos DB MongoDB collection event.
*
* @return the resource value.
*/
public RestorableMongodbCollectionPropertiesResource resource() {
return this.resource;
}
/**
* Set the resource property: The resource of an Azure Cosmos DB MongoDB collection event.
*
* @param resource the resource value to set.
* @return the RestorableMongodbCollectionProperties object itself.
*/
public RestorableMongodbCollectionProperties withResource(RestorableMongodbCollectionPropertiesResource resource) {
this.resource = resource;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (resource() != null) {
resource().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy