Class MySqlServerDraft

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.common.model.AzComponent, com.microsoft.azure.toolkit.lib.common.model.AzResource, com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<MySqlServer,​com.azure.resourcemanager.mysql.models.Server>, com.microsoft.azure.toolkit.lib.common.model.Deletable, com.microsoft.azure.toolkit.lib.common.model.Refreshable, com.microsoft.azure.toolkit.lib.common.model.Startable, com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>

    public class MySqlServerDraft
    extends MySqlServer
    implements com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<MySqlServer,​com.azure.resourcemanager.mysql.models.Server>
    • Method Detail

      • reset

        public void reset()
        Specified by:
        reset in interface com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<MySqlServer,​com.azure.resourcemanager.mysql.models.Server>
      • setConfig

        public void setConfig​(@Nonnull
                              com.microsoft.azure.toolkit.lib.database.DatabaseServerConfig config)
      • getTierPriority

        private int getTierPriority​(@Nonnull
                                    com.azure.resourcemanager.mysql.models.PerformanceTierProperties tier)
      • validateServerVersion

        @Nullable
        private com.azure.resourcemanager.mysql.models.ServerVersion validateServerVersion​(String version)
      • createResourceInAzure

        @Nonnull
        public com.azure.resourcemanager.mysql.models.Server createResourceInAzure()
        Specified by:
        createResourceInAzure in interface com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<MySqlServer,​com.azure.resourcemanager.mysql.models.Server>
      • updateResourceInAzure

        @Nonnull
        public com.azure.resourcemanager.mysql.models.Server updateResourceInAzure​(@Nonnull
                                                                                   com.azure.resourcemanager.mysql.models.Server origin)
        Specified by:
        updateResourceInAzure in interface com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<MySqlServer,​com.azure.resourcemanager.mysql.models.Server>
      • getRegion

        @Nullable
        public com.microsoft.azure.toolkit.lib.common.model.Region getRegion()
        Specified by:
        getRegion in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
        Overrides:
        getRegion in class MySqlServer
      • isLocalMachineAccessAllowed

        public boolean isLocalMachineAccessAllowed()
        Specified by:
        isLocalMachineAccessAllowed in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
        Overrides:
        isLocalMachineAccessAllowed in class MySqlServer
      • isAzureServiceAccessAllowed

        public boolean isAzureServiceAccessAllowed()
        Specified by:
        isAzureServiceAccessAllowed in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
        Overrides:
        isAzureServiceAccessAllowed in class MySqlServer
      • setAdminName

        public void setAdminName​(String name)
      • setAdminPassword

        public void setAdminPassword​(String password)
      • setRegion

        public void setRegion​(com.microsoft.azure.toolkit.lib.common.model.Region region)
      • setVersion

        public void setVersion​(String version)
      • setFullyQualifiedDomainName

        public void setFullyQualifiedDomainName​(String name)
      • setLocalMachineAccessAllowed

        public void setLocalMachineAccessAllowed​(boolean allowed)
      • setAzureServiceAccessAllowed

        public void setAzureServiceAccessAllowed​(boolean allowed)
      • isModified

        public boolean isModified()
        Specified by:
        isModified in interface com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<MySqlServer,​com.azure.resourcemanager.mysql.models.Server>