com.azure.resourcemanager.cosmos.models.CassandraClusterPublicStatusDataCentersItem 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;
import java.util.List;
/**
* The CassandraClusterPublicStatusDataCentersItem model.
*/
@Fluent
public final class CassandraClusterPublicStatusDataCentersItem {
/*
* The name of this Datacenter.
*/
@JsonProperty(value = "name")
private String name;
/*
* A list of all seed nodes in the cluster, managed and unmanaged.
*/
@JsonProperty(value = "seedNodes")
private List seedNodes;
/*
* The nodes property.
*/
@JsonProperty(value = "nodes")
private List nodes;
/**
* Creates an instance of CassandraClusterPublicStatusDataCentersItem class.
*/
public CassandraClusterPublicStatusDataCentersItem() {
}
/**
* Get the name property: The name of this Datacenter.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Set the name property: The name of this Datacenter.
*
* @param name the name value to set.
* @return the CassandraClusterPublicStatusDataCentersItem object itself.
*/
public CassandraClusterPublicStatusDataCentersItem withName(String name) {
this.name = name;
return this;
}
/**
* Get the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.
*
* @return the seedNodes value.
*/
public List seedNodes() {
return this.seedNodes;
}
/**
* Set the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.
*
* @param seedNodes the seedNodes value to set.
* @return the CassandraClusterPublicStatusDataCentersItem object itself.
*/
public CassandraClusterPublicStatusDataCentersItem withSeedNodes(List seedNodes) {
this.seedNodes = seedNodes;
return this;
}
/**
* Get the nodes property: The nodes property.
*
* @return the nodes value.
*/
public List nodes() {
return this.nodes;
}
/**
* Set the nodes property: The nodes property.
*
* @param nodes the nodes value to set.
* @return the CassandraClusterPublicStatusDataCentersItem object itself.
*/
public CassandraClusterPublicStatusDataCentersItem
withNodes(List nodes) {
this.nodes = nodes;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (nodes() != null) {
nodes().forEach(e -> e.validate());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy