ClusterInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. cosmosdbforpostgresql. fluent. models. ClusterInner
- com.
- com.
- com.
public final class ClusterInner
extends Resource
Represents a cluster.
Constructor Summary
Constructor | Description |
---|---|
ClusterInner() |
Creates an instance of Cluster |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
administratorLogin()
Get the administrator |
String |
administratorLoginPassword()
Get the administrator |
String |
citusVersion()
Get the citus |
Boolean |
coordinatorEnablePublicIpAccess()
Get the coordinator |
String |
coordinatorServerEdition()
Get the coordinator |
Integer |
coordinatorStorageQuotaInMb()
Get the coordinator |
Integer |
coordinatorVCores()
Get the coordinator |
Offset |
earliestRestoreTime()
Get the earliest |
Boolean |
enableHa()
Get the enable |
Boolean |
enableShardsOnCoordinator()
Get the enable |
Maintenance |
maintenanceWindow()
Get the maintenance |
Integer |
nodeCount()
Get the node |
Boolean |
nodeEnablePublicIpAccess()
Get the node |
String |
nodeServerEdition()
Get the node |
Integer |
nodeStorageQuotaInMb()
Get the node |
Integer |
nodeVCores()
Get the node |
Offset |
pointInTimeUtc()
Get the point |
String |
postgresqlVersion()
Get the postgresql |
String |
preferredPrimaryZone()
Get the preferred |
List<Simple |
privateEndpointConnections()
Get the private |
String |
provisioningState()
Get the provisioning |
List<String> |
readReplicas()
Get the read |
List<Server |
serverNames()
Get the server |
String |
sourceLocation()
Get the source |
String |
sourceResourceId()
Get the source |
String |
state()
Get the state property: A state of a cluster/server that is visible to user. |
System |
systemData()
Get the system |
void |
validate()
Validates the instance. |
Cluster |
withAdministratorLoginPassword(String administratorLoginPassword)
Set the administrator |
Cluster |
withCitusVersion(String citusVersion)
Set the citus |
Cluster |
withCoordinatorEnablePublicIpAccess(Boolean coordinatorEnablePublicIpAccess)
Set the coordinator |
Cluster |
withCoordinatorServerEdition(String coordinatorServerEdition)
Set the coordinator |
Cluster |
withCoordinatorStorageQuotaInMb(Integer coordinatorStorageQuotaInMb)
Set the coordinator |
Cluster |
withCoordinatorVCores(Integer coordinatorVCores)
Set the coordinator |
Cluster |
withEnableHa(Boolean enableHa)
Set the enable |
Cluster |
withEnableShardsOnCoordinator(Boolean enableShardsOnCoordinator)
Set the enable |
Cluster |
withLocation(String location) |
Cluster |
withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenance |
Cluster |
withNodeCount(Integer nodeCount)
Set the node |
Cluster |
withNodeEnablePublicIpAccess(Boolean nodeEnablePublicIpAccess)
Set the node |
Cluster |
withNodeServerEdition(String nodeServerEdition)
Set the node |
Cluster |
withNodeStorageQuotaInMb(Integer nodeStorageQuotaInMb)
Set the node |
Cluster |
withNodeVCores(Integer nodeVCores)
Set the node |
Cluster |
withPointInTimeUtc(OffsetDateTime pointInTimeUtc)
Set the point |
Cluster |
withPostgresqlVersion(String postgresqlVersion)
Set the postgresql |
Cluster |
withPreferredPrimaryZone(String preferredPrimaryZone)
Set the preferred |
Cluster |
withSourceLocation(String sourceLocation)
Set the source |
Cluster |
withSourceResourceId(String sourceResourceId)
Set the source |
Cluster |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ClusterInner
public ClusterInner()
Creates an instance of ClusterInner class.
Method Details
administratorLogin
public String administratorLogin()
Get the administratorLogin property: The administrator's login name of the servers in the cluster.
Returns:
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The password of the administrator login. Required for creation.
Returns:
citusVersion
public String citusVersion()
Get the citusVersion property: The Citus extension version on all cluster servers.
Returns:
coordinatorEnablePublicIpAccess
public Boolean coordinatorEnablePublicIpAccess()
Get the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
Returns:
coordinatorServerEdition
public String coordinatorServerEdition()
Get the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose). Required for creation.
Returns:
coordinatorStorageQuotaInMb
public Integer coordinatorStorageQuotaInMb()
Get the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Returns:
coordinatorVCores
public Integer coordinatorVCores()
Get the coordinatorVCores property: The vCores count of a server (max: 96). Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Returns:
earliestRestoreTime
public OffsetDateTime earliestRestoreTime()
Get the earliestRestoreTime property: The earliest restore point time (ISO8601 format) for the cluster.
Returns:
enableHa
public Boolean enableHa()
Get the enableHa property: If high availability (HA) is enabled or not for the cluster.
Returns:
enableShardsOnCoordinator
public Boolean enableShardsOnCoordinator()
Get the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
Returns:
maintenanceWindow
public MaintenanceWindow maintenanceWindow()
Get the maintenanceWindow property: Maintenance window of a cluster.
Returns:
nodeCount
public Integer nodeCount()
Get the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation.
Returns:
nodeEnablePublicIpAccess
public Boolean nodeEnablePublicIpAccess()
Get the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
Returns:
nodeServerEdition
public String nodeServerEdition()
Get the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).
Returns:
nodeStorageQuotaInMb
public Integer nodeStorageQuotaInMb()
Get the nodeStorageQuotaInMb property: The storage in MB on each worker node. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Returns:
nodeVCores
public Integer nodeVCores()
Get the nodeVCores property: The compute in vCores on each worker node (max: 104). See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Returns:
pointInTimeUtc
public OffsetDateTime pointInTimeUtc()
Get the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.
Returns:
postgresqlVersion
public String postgresqlVersion()
Get the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
Returns:
preferredPrimaryZone
public String preferredPrimaryZone()
Get the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
Returns:
privateEndpointConnections
public List
Get the privateEndpointConnections property: The private endpoint connections for a cluster.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: Provisioning state of the cluster.
Returns:
readReplicas
public List
Get the readReplicas property: The array of read replica clusters.
Returns:
serverNames
public List
Get the serverNames property: The list of server names in the cluster.
Returns:
sourceLocation
public String sourceLocation()
Get the sourceLocation property: The Azure region of source cluster for read replica clusters.
Returns:
sourceResourceId
public String sourceResourceId()
Get the sourceResourceId property: The resource id of source cluster for read replica clusters.
Returns:
state
public String state()
Get the state property: A state of a cluster/server that is visible to user.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
validate
public void validate()
Validates the instance.
withAdministratorLoginPassword
public ClusterInner withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The password of the administrator login. Required for creation.
Parameters:
Returns:
withCitusVersion
public ClusterInner withCitusVersion(String citusVersion)
Set the citusVersion property: The Citus extension version on all cluster servers.
Parameters:
Returns:
withCoordinatorEnablePublicIpAccess
public ClusterInner withCoordinatorEnablePublicIpAccess(Boolean coordinatorEnablePublicIpAccess)
Set the coordinatorEnablePublicIpAccess property: If public access is enabled on coordinator.
Parameters:
Returns:
withCoordinatorServerEdition
public ClusterInner withCoordinatorServerEdition(String coordinatorServerEdition)
Set the coordinatorServerEdition property: The edition of a coordinator server (default: GeneralPurpose). Required for creation.
Parameters:
Returns:
withCoordinatorStorageQuotaInMb
public ClusterInner withCoordinatorStorageQuotaInMb(Integer coordinatorStorageQuotaInMb)
Set the coordinatorStorageQuotaInMb property: The storage of a server in MB. Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Parameters:
Returns:
withCoordinatorVCores
public ClusterInner withCoordinatorVCores(Integer coordinatorVCores)
Set the coordinatorVCores property: The vCores count of a server (max: 96). Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Parameters:
Returns:
withEnableHa
public ClusterInner withEnableHa(Boolean enableHa)
Set the enableHa property: If high availability (HA) is enabled or not for the cluster.
Parameters:
Returns:
withEnableShardsOnCoordinator
public ClusterInner withEnableShardsOnCoordinator(Boolean enableShardsOnCoordinator)
Set the enableShardsOnCoordinator property: If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed.
Parameters:
Returns:
withLocation
public ClusterInner withLocation(String location)
Overrides:
ClusterInner.withLocation(String location)Parameters:
withMaintenanceWindow
public ClusterInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenanceWindow property: Maintenance window of a cluster.
Parameters:
Returns:
withNodeCount
public ClusterInner withNodeCount(Integer nodeCount)
Set the nodeCount property: Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation.
Parameters:
Returns:
withNodeEnablePublicIpAccess
public ClusterInner withNodeEnablePublicIpAccess(Boolean nodeEnablePublicIpAccess)
Set the nodeEnablePublicIpAccess property: If public access is enabled on worker nodes.
Parameters:
Returns:
withNodeServerEdition
public ClusterInner withNodeServerEdition(String nodeServerEdition)
Set the nodeServerEdition property: The edition of a node server (default: MemoryOptimized).
Parameters:
Returns:
withNodeStorageQuotaInMb
public ClusterInner withNodeStorageQuotaInMb(Integer nodeStorageQuotaInMb)
Set the nodeStorageQuotaInMb property: The storage in MB on each worker node. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Parameters:
Returns:
withNodeVCores
public ClusterInner withNodeVCores(Integer nodeVCores)
Set the nodeVCores property: The compute in vCores on each worker node (max: 104). See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information.
Parameters:
Returns:
withPointInTimeUtc
public ClusterInner withPointInTimeUtc(OffsetDateTime pointInTimeUtc)
Set the pointInTimeUtc property: Date and time in UTC (ISO8601 format) for cluster restore.
Parameters:
Returns:
withPostgresqlVersion
public ClusterInner withPostgresqlVersion(String postgresqlVersion)
Set the postgresqlVersion property: The major PostgreSQL version on all cluster servers.
Parameters:
Returns:
withPreferredPrimaryZone
public ClusterInner withPreferredPrimaryZone(String preferredPrimaryZone)
Set the preferredPrimaryZone property: Preferred primary availability zone (AZ) for all cluster servers.
Parameters:
Returns:
withSourceLocation
public ClusterInner withSourceLocation(String sourceLocation)
Set the sourceLocation property: The Azure region of source cluster for read replica clusters.
Parameters:
Returns:
withSourceResourceId
public ClusterInner withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: The resource id of source cluster for read replica clusters.
Parameters:
Returns:
withTags
public ClusterInner withTags(Map
Overrides:
ClusterInner.withTags(Map<String,String> tags)Parameters: