java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.ServerForUpdate

public final class ServerForUpdate extends Object
Represents a server to be updated.
  • Constructor Details

    • ServerForUpdate

      public ServerForUpdate()
      Creates an instance of ServerForUpdate class.
  • Method Details

    • sku

      public Sku sku()
      Get the sku property: The SKU (pricing tier) of the server.
      Returns:
      the sku value.
    • withSku

      public ServerForUpdate withSku(Sku sku)
      Set the sku property: The SKU (pricing tier) of the server.
      Parameters:
      sku - the sku value to set.
      Returns:
      the ServerForUpdate object itself.
    • identity

      public UserAssignedIdentity identity()
      Get the identity property: Describes the identity of the application.
      Returns:
      the identity value.
    • withIdentity

      public ServerForUpdate withIdentity(UserAssignedIdentity identity)
      Set the identity property: Describes the identity of the application.
      Parameters:
      identity - the identity value to set.
      Returns:
      the ServerForUpdate object itself.
    • tags

      public Map<String,String> tags()
      Get the tags property: Application-specific metadata in the form of key-value pairs.
      Returns:
      the tags value.
    • withTags

      public ServerForUpdate withTags(Map<String,String> tags)
      Set the tags property: Application-specific metadata in the form of key-value pairs.
      Parameters:
      tags - the tags value to set.
      Returns:
      the ServerForUpdate object itself.
    • administratorLoginPassword

      public String administratorLoginPassword()
      Get the administratorLoginPassword property: The password of the administrator login.
      Returns:
      the administratorLoginPassword value.
    • withAdministratorLoginPassword

      public ServerForUpdate withAdministratorLoginPassword(String administratorLoginPassword)
      Set the administratorLoginPassword property: The password of the administrator login.
      Parameters:
      administratorLoginPassword - the administratorLoginPassword value to set.
      Returns:
      the ServerForUpdate object itself.
    • version

      public ServerVersion version()
      Get the version property: PostgreSQL Server version.
      Returns:
      the version value.
    • withVersion

      public ServerForUpdate withVersion(ServerVersion version)
      Set the version property: PostgreSQL Server version.
      Parameters:
      version - the version value to set.
      Returns:
      the ServerForUpdate object itself.
    • storage

      public Storage storage()
      Get the storage property: Storage properties of a server.
      Returns:
      the storage value.
    • withStorage

      public ServerForUpdate withStorage(Storage storage)
      Set the storage property: Storage properties of a server.
      Parameters:
      storage - the storage value to set.
      Returns:
      the ServerForUpdate object itself.
    • backup

      public Backup backup()
      Get the backup property: Backup properties of a server.
      Returns:
      the backup value.
    • withBackup

      public ServerForUpdate withBackup(Backup backup)
      Set the backup property: Backup properties of a server.
      Parameters:
      backup - the backup value to set.
      Returns:
      the ServerForUpdate object itself.
    • highAvailability

      public HighAvailability highAvailability()
      Get the highAvailability property: High availability properties of a server.
      Returns:
      the highAvailability value.
    • withHighAvailability

      public ServerForUpdate withHighAvailability(HighAvailability highAvailability)
      Set the highAvailability property: High availability properties of a server.
      Parameters:
      highAvailability - the highAvailability value to set.
      Returns:
      the ServerForUpdate object itself.
    • maintenanceWindow

      public MaintenanceWindow maintenanceWindow()
      Get the maintenanceWindow property: Maintenance window properties of a server.
      Returns:
      the maintenanceWindow value.
    • withMaintenanceWindow

      public ServerForUpdate withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
      Set the maintenanceWindow property: Maintenance window properties of a server.
      Parameters:
      maintenanceWindow - the maintenanceWindow value to set.
      Returns:
      the ServerForUpdate object itself.
    • authConfig

      public AuthConfig authConfig()
      Get the authConfig property: AuthConfig properties of a server.
      Returns:
      the authConfig value.
    • withAuthConfig

      public ServerForUpdate withAuthConfig(AuthConfig authConfig)
      Set the authConfig property: AuthConfig properties of a server.
      Parameters:
      authConfig - the authConfig value to set.
      Returns:
      the ServerForUpdate object itself.
    • dataEncryption

      public DataEncryption dataEncryption()
      Get the dataEncryption property: Data encryption properties of a server.
      Returns:
      the dataEncryption value.
    • withDataEncryption

      public ServerForUpdate withDataEncryption(DataEncryption dataEncryption)
      Set the dataEncryption property: Data encryption properties of a server.
      Parameters:
      dataEncryption - the dataEncryption value to set.
      Returns:
      the ServerForUpdate object itself.
    • createMode

      public CreateModeForUpdate createMode()
      Get the createMode property: The mode to update a new PostgreSQL server.
      Returns:
      the createMode value.
    • withCreateMode

      public ServerForUpdate withCreateMode(CreateModeForUpdate createMode)
      Set the createMode property: The mode to update a new PostgreSQL server.
      Parameters:
      createMode - the createMode value to set.
      Returns:
      the ServerForUpdate object itself.
    • replicationRole

      public ReplicationRole replicationRole()
      Get the replicationRole property: Replication role of the server.
      Returns:
      the replicationRole value.
    • withReplicationRole

      public ServerForUpdate withReplicationRole(ReplicationRole replicationRole)
      Set the replicationRole property: Replication role of the server.
      Parameters:
      replicationRole - the replicationRole value to set.
      Returns:
      the ServerForUpdate object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.