com.azure.resourcemanager.cosmos.fluent.models.RestorableGremlinDatabaseGetResultInner 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.RestorableGremlinDatabasePropertiesResource;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An Azure Cosmos DB Gremlin database event.
*/
@Fluent
public final class RestorableGremlinDatabaseGetResultInner {
/*
* The properties of a Gremlin database event.
*/
@JsonProperty(value = "properties")
private RestorableGremlinDatabaseProperties innerProperties;
/*
* The unique resource Identifier of the ARM resource.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* The name of the ARM resource.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The type of Azure resource.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
* Creates an instance of RestorableGremlinDatabaseGetResultInner class.
*/
public RestorableGremlinDatabaseGetResultInner() {
}
/**
* Get the innerProperties property: The properties of a Gremlin database event.
*
* @return the innerProperties value.
*/
private RestorableGremlinDatabaseProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the id property: The unique resource Identifier of the ARM resource.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Get the name property: The name of the ARM resource.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Get the type property: The type of Azure resource.
*
* @return the type value.
*/
public String type() {
return this.type;
}
/**
* Get the resource property: The resource of an Azure Cosmos DB Gremlin database event.
*
* @return the resource value.
*/
public RestorableGremlinDatabasePropertiesResource resource() {
return this.innerProperties() == null ? null : this.innerProperties().resource();
}
/**
* Set the resource property: The resource of an Azure Cosmos DB Gremlin database event.
*
* @param resource the resource value to set.
* @return the RestorableGremlinDatabaseGetResultInner object itself.
*/
public RestorableGremlinDatabaseGetResultInner withResource(RestorableGremlinDatabasePropertiesResource resource) {
if (this.innerProperties() == null) {
this.innerProperties = new RestorableGremlinDatabaseProperties();
}
this.innerProperties().withResource(resource);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy