PerformanceTierServiceLevelObjectives Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.models.PerformanceTierServiceLevelObjectives

Implements

public final class PerformanceTierServiceLevelObjectives
implements JsonSerializable<PerformanceTierServiceLevelObjectives>

Service level objectives for performance tier.

Constructor Summary

Constructor Description
PerformanceTierServiceLevelObjectives()

Creates an instance of PerformanceTierServiceLevelObjectives class.

Method Summary

Modifier and Type Method and Description
String edition()

Get the edition property: Edition of the performance tier.

static PerformanceTierServiceLevelObjectives fromJson(JsonReader jsonReader)

Reads an instance of PerformanceTierServiceLevelObjectives from the JsonReader.

String hardwareGeneration()

Get the hardwareGeneration property: Hardware generation associated with the service level objective.

String id()

Get the id property: ID for the service level objective.

Integer maxBackupRetentionDays()

Get the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.

Integer maxStorageMB()

Get the maxStorageMB property: Max storage allowed for a server.

Integer minBackupRetentionDays()

Get the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.

Integer minStorageMB()

Get the minStorageMB property: Max storage allowed for a server.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer vCore()

Get the vCore property: vCore associated with the service level objective.

PerformanceTierServiceLevelObjectives withEdition(String edition)

Set the edition property: Edition of the performance tier.

PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardwareGeneration)

Set the hardwareGeneration property: Hardware generation associated with the service level objective.

PerformanceTierServiceLevelObjectives withId(String id)

Set the id property: ID for the service level objective.

PerformanceTierServiceLevelObjectives withMaxBackupRetentionDays(Integer maxBackupRetentionDays)

Set the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.

PerformanceTierServiceLevelObjectives withMaxStorageMB(Integer maxStorageMB)

Set the maxStorageMB property: Max storage allowed for a server.

PerformanceTierServiceLevelObjectives withMinBackupRetentionDays(Integer minBackupRetentionDays)

Set the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.

PerformanceTierServiceLevelObjectives withMinStorageMB(Integer minStorageMB)

Set the minStorageMB property: Max storage allowed for a server.

PerformanceTierServiceLevelObjectives withVCore(Integer vCore)

Set the vCore property: vCore associated with the service level objective.

Methods inherited from java.lang.Object

Constructor Details

PerformanceTierServiceLevelObjectives

public PerformanceTierServiceLevelObjectives()

Creates an instance of PerformanceTierServiceLevelObjectives class.

Method Details

edition

public String edition()

Get the edition property: Edition of the performance tier.

Returns:

the edition value.

fromJson

public static PerformanceTierServiceLevelObjectives fromJson(JsonReader jsonReader)

Reads an instance of PerformanceTierServiceLevelObjectives from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PerformanceTierServiceLevelObjectives if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PerformanceTierServiceLevelObjectives.

hardwareGeneration

public String hardwareGeneration()

Get the hardwareGeneration property: Hardware generation associated with the service level objective.

Returns:

the hardwareGeneration value.

id

public String id()

Get the id property: ID for the service level objective.

Returns:

the id value.

maxBackupRetentionDays

public Integer maxBackupRetentionDays()

Get the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.

Returns:

the maxBackupRetentionDays value.

maxStorageMB

public Integer maxStorageMB()

Get the maxStorageMB property: Max storage allowed for a server.

Returns:

the maxStorageMB value.

minBackupRetentionDays

public Integer minBackupRetentionDays()

Get the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.

Returns:

the minBackupRetentionDays value.

minStorageMB

public Integer minStorageMB()

Get the minStorageMB property: Max storage allowed for a server.

Returns:

the minStorageMB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vCore

public Integer vCore()

Get the vCore property: vCore associated with the service level objective.

Returns:

the vCore value.

withEdition

public PerformanceTierServiceLevelObjectives withEdition(String edition)

Set the edition property: Edition of the performance tier.

Parameters:

edition - the edition value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withHardwareGeneration

public PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardwareGeneration)

Set the hardwareGeneration property: Hardware generation associated with the service level objective.

Parameters:

hardwareGeneration - the hardwareGeneration value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withId

public PerformanceTierServiceLevelObjectives withId(String id)

Set the id property: ID for the service level objective.

Parameters:

id - the id value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withMaxBackupRetentionDays

public PerformanceTierServiceLevelObjectives withMaxBackupRetentionDays(Integer maxBackupRetentionDays)

Set the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.

Parameters:

maxBackupRetentionDays - the maxBackupRetentionDays value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withMaxStorageMB

public PerformanceTierServiceLevelObjectives withMaxStorageMB(Integer maxStorageMB)

Set the maxStorageMB property: Max storage allowed for a server.

Parameters:

maxStorageMB - the maxStorageMB value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withMinBackupRetentionDays

public PerformanceTierServiceLevelObjectives withMinBackupRetentionDays(Integer minBackupRetentionDays)

Set the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.

Parameters:

minBackupRetentionDays - the minBackupRetentionDays value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withMinStorageMB

public PerformanceTierServiceLevelObjectives withMinStorageMB(Integer minStorageMB)

Set the minStorageMB property: Max storage allowed for a server.

Parameters:

minStorageMB - the minStorageMB value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

withVCore

public PerformanceTierServiceLevelObjectives withVCore(Integer vCore)

Set the vCore property: vCore associated with the service level objective.

Parameters:

vCore - the vCore value to set.

Returns:

the PerformanceTierServiceLevelObjectives object itself.

Applies to