Partager via


ServerRoleGroupConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmosdbforpostgresql.models.ServerRoleGroupConfiguration

public final class ServerRoleGroupConfiguration

Represents server role group configuration value.

Constructor Summary

Constructor Description
ServerRoleGroupConfiguration()

Creates an instance of ServerRoleGroupConfiguration class.

Method Summary

Modifier and Type Method and Description
String defaultValue()

Get the defaultValue property: Default value of the configuration.

ServerRole role()

Get the role property: The role of servers in the server role group.

String source()

Get the source property: Source of the configuration.

void validate()

Validates the instance.

String value()

Get the value property: Value of the configuration.

ServerRoleGroupConfiguration withRole(ServerRole role)

Set the role property: The role of servers in the server role group.

ServerRoleGroupConfiguration withValue(String value)

Set the value property: Value of the configuration.

Methods inherited from java.lang.Object

Constructor Details

ServerRoleGroupConfiguration

public ServerRoleGroupConfiguration()

Creates an instance of ServerRoleGroupConfiguration class.

Method Details

defaultValue

public String defaultValue()

Get the defaultValue property: Default value of the configuration.

Returns:

the defaultValue value.

role

public ServerRole role()

Get the role property: The role of servers in the server role group.

Returns:

the role value.

source

public String source()

Get the source property: Source of the configuration.

Returns:

the source value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value of the configuration.

Returns:

the value value.

withRole

public ServerRoleGroupConfiguration withRole(ServerRole role)

Set the role property: The role of servers in the server role group.

Parameters:

role - the role value to set.

Returns:

the ServerRoleGroupConfiguration object itself.

withValue

public ServerRoleGroupConfiguration withValue(String value)

Set the value property: Value of the configuration.

Parameters:

value - the value value to set.

Returns:

the ServerRoleGroupConfiguration object itself.

Applies to