java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.ServerInner

public final class ServerInner extends com.azure.core.management.Resource
Represents a server.
  • Constructor Details

    • ServerInner

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

    • sku

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

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

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

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

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • withLocation

      public ServerInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ServerInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • administratorLogin

      public String administratorLogin()
      Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
      Returns:
      the administratorLogin value.
    • withAdministratorLogin

      public ServerInner withAdministratorLogin(String administratorLogin)
      Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
      Parameters:
      administratorLogin - the administratorLogin value to set.
      Returns:
      the ServerInner object itself.
    • administratorLoginPassword

      public String administratorLoginPassword()
      Get the administratorLoginPassword property: The administrator login password (required for server creation).
      Returns:
      the administratorLoginPassword value.
    • withAdministratorLoginPassword

      public ServerInner withAdministratorLoginPassword(String administratorLoginPassword)
      Set the administratorLoginPassword property: The administrator login password (required for server creation).
      Parameters:
      administratorLoginPassword - the administratorLoginPassword value to set.
      Returns:
      the ServerInner object itself.
    • version

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

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

      public String minorVersion()
      Get the minorVersion property: The minor version of the server.
      Returns:
      the minorVersion value.
    • state

      public ServerState state()
      Get the state property: A state of a server that is visible to user.
      Returns:
      the state value.
    • fullyQualifiedDomainName

      public String fullyQualifiedDomainName()
      Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
      Returns:
      the fullyQualifiedDomainName value.
    • storage

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

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

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

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

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

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

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

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

      public Network network()
      Get the network property: Network properties of a server.
      Returns:
      the network value.
    • withNetwork

      public ServerInner withNetwork(Network network)
      Set the network property: Network properties of a server.
      Parameters:
      network - the network value to set.
      Returns:
      the ServerInner object itself.
    • highAvailability

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

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

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

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

      public String sourceServerResourceId()
      Get the sourceServerResourceId property: The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'.
      Returns:
      the sourceServerResourceId value.
    • withSourceServerResourceId

      public ServerInner withSourceServerResourceId(String sourceServerResourceId)
      Set the sourceServerResourceId property: The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'Replica'.
      Parameters:
      sourceServerResourceId - the sourceServerResourceId value to set.
      Returns:
      the ServerInner object itself.
    • pointInTimeUtc

      public OffsetDateTime pointInTimeUtc()
      Get the pointInTimeUtc property: Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
      Returns:
      the pointInTimeUtc value.
    • withPointInTimeUtc

      public ServerInner withPointInTimeUtc(OffsetDateTime pointInTimeUtc)
      Set the pointInTimeUtc property: Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore' or 'GeoRestore'.
      Parameters:
      pointInTimeUtc - the pointInTimeUtc value to set.
      Returns:
      the ServerInner object itself.
    • availabilityZone

      public String availabilityZone()
      Get the availabilityZone property: availability zone information of the server.
      Returns:
      the availabilityZone value.
    • withAvailabilityZone

      public ServerInner withAvailabilityZone(String availabilityZone)
      Set the availabilityZone property: availability zone information of the server.
      Parameters:
      availabilityZone - the availabilityZone value to set.
      Returns:
      the ServerInner object itself.
    • replicationRole

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

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

      public Integer replicaCapacity()
      Get the replicaCapacity property: Replicas allowed for a server.
      Returns:
      the replicaCapacity value.
    • withReplicaCapacity

      public ServerInner withReplicaCapacity(Integer replicaCapacity)
      Set the replicaCapacity property: Replicas allowed for a server.
      Parameters:
      replicaCapacity - the replicaCapacity value to set.
      Returns:
      the ServerInner object itself.
    • createMode

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

      public ServerInner withCreateMode(CreateMode createMode)
      Set the createMode property: The mode to create a new PostgreSQL server.
      Parameters:
      createMode - the createMode value to set.
      Returns:
      the ServerInner object itself.
    • validate

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