com.azure.resourcemanager.cosmos.models.ManagedCassandraArmResourceProperties 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.azure.core.management.Resource;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* The core properties of ARM resources.
*/
@Fluent
public class ManagedCassandraArmResourceProperties extends Resource {
/*
* Identity for the resource.
*/
@JsonProperty(value = "identity")
private ManagedCassandraManagedServiceIdentity identity;
/**
* Creates an instance of ManagedCassandraArmResourceProperties class.
*/
public ManagedCassandraArmResourceProperties() {
}
/**
* Get the identity property: Identity for the resource.
*
* @return the identity value.
*/
public ManagedCassandraManagedServiceIdentity identity() {
return this.identity;
}
/**
* Set the identity property: Identity for the resource.
*
* @param identity the identity value to set.
* @return the ManagedCassandraArmResourceProperties object itself.
*/
public ManagedCassandraArmResourceProperties withIdentity(ManagedCassandraManagedServiceIdentity identity) {
this.identity = identity;
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ManagedCassandraArmResourceProperties withLocation(String location) {
super.withLocation(location);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ManagedCassandraArmResourceProperties withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (identity() != null) {
identity().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy