Class ManagedInstanceUpdate
java.lang.Object
com.microsoft.azure.management.sql.ManagedInstanceUpdate
An update request for an Azure SQL Database managed instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet administrator username for the managed instance.Get the administrator login password (required for managed instance creation).Get collation of the managed instance.dnsZone()
Get the Dns Zone that the managed instance is in.Get the resource id of another managed instance whose DNS zone this managed instance will share after creation.Get the fully qualified domain name of the managed instance.Get the Id of the instance pool this managed server belongs to.Get the license type.Get specifies the mode of database creation.Get connection type used for connecting to the instance.Get whether or not the public data endpoint is enabled.org.joda.time.DateTime
Get specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.sku()
Get managed instance sku.Get the resource identifier of the source managed instance associated with create operation of this instance.state()
Get the state of the managed instance.Get storage size in GB.subnetId()
Get subnet resource ID for the managed instance.tags()
Get resource tags.Get id of the timezone.vCores()
Get the number of vCores.withAdministratorLogin
(String administratorLogin) Set administrator username for the managed instance.withAdministratorLoginPassword
(String administratorLoginPassword) Set the administrator login password (required for managed instance creation).withCollation
(String collation) Set collation of the managed instance.withDnsZonePartner
(String dnsZonePartner) Set the resource id of another managed instance whose DNS zone this managed instance will share after creation.withInstancePoolId
(String instancePoolId) Set the Id of the instance pool this managed server belongs to.withLicenseType
(ManagedInstanceLicenseType licenseType) Set the license type.withManagedInstanceCreateMode
(ManagedServerCreateMode managedInstanceCreateMode) Set specifies the mode of database creation.withProxyOverride
(ManagedInstanceProxyOverride proxyOverride) Set connection type used for connecting to the instance.withPublicDataEndpointEnabled
(Boolean publicDataEndpointEnabled) Set whether or not the public data endpoint is enabled.withRestorePointInTime
(org.joda.time.DateTime restorePointInTime) Set specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.Set managed instance sku.withSourceManagedInstanceId
(String sourceManagedInstanceId) Set the resource identifier of the source managed instance associated with create operation of this instance.withStorageSizeInGB
(Integer storageSizeInGB) Set storage size in GB.withSubnetId
(String subnetId) Set subnet resource ID for the managed instance.Set resource tags.withTimezoneId
(String timezoneId) Set id of the timezone.withVCores
(Integer vCores) Set the number of vCores.
-
Constructor Details
-
ManagedInstanceUpdate
public ManagedInstanceUpdate()
-
-
Method Details
-
sku
Get managed instance sku.- Returns:
- the sku value
-
withSku
Set managed instance sku.- Parameters:
sku
- the sku value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
managedInstanceCreateMode
Get specifies the mode of database creation. Default: Regular instance creation. Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: 'Default', 'PointInTimeRestore'.- Returns:
- the managedInstanceCreateMode value
-
withManagedInstanceCreateMode
public ManagedInstanceUpdate withManagedInstanceCreateMode(ManagedServerCreateMode managedInstanceCreateMode) Set specifies the mode of database creation. Default: Regular instance creation. Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: 'Default', 'PointInTimeRestore'.- Parameters:
managedInstanceCreateMode
- the managedInstanceCreateMode value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
fullyQualifiedDomainName
Get the fully qualified domain name of the managed instance.- Returns:
- the fullyQualifiedDomainName value
-
administratorLogin
Get administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation).- Returns:
- the administratorLogin value
-
withAdministratorLogin
Set administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation).- Parameters:
administratorLogin
- the administratorLogin value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
administratorLoginPassword
Get the administrator login password (required for managed instance creation).- Returns:
- the administratorLoginPassword value
-
withAdministratorLoginPassword
Set the administrator login password (required for managed instance creation).- Parameters:
administratorLoginPassword
- the administratorLoginPassword value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
subnetId
Get subnet resource ID for the managed instance.- Returns:
- the subnetId value
-
withSubnetId
Set subnet resource ID for the managed instance.- Parameters:
subnetId
- the subnetId value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
state
Get the state of the managed instance.- Returns:
- the state value
-
licenseType
Get the license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible values include: 'LicenseIncluded', 'BasePrice'.- Returns:
- the licenseType value
-
withLicenseType
Set the license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible values include: 'LicenseIncluded', 'BasePrice'.- Parameters:
licenseType
- the licenseType value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
vCores
Get the number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.- Returns:
- the vCores value
-
withVCores
Set the number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.- Parameters:
vCores
- the vCores value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
storageSizeInGB
Get storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.- Returns:
- the storageSizeInGB value
-
withStorageSizeInGB
Set storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.- Parameters:
storageSizeInGB
- the storageSizeInGB value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
collation
Get collation of the managed instance.- Returns:
- the collation value
-
withCollation
Set collation of the managed instance.- Parameters:
collation
- the collation value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
dnsZone
Get the Dns Zone that the managed instance is in.- Returns:
- the dnsZone value
-
dnsZonePartner
Get the resource id of another managed instance whose DNS zone this managed instance will share after creation.- Returns:
- the dnsZonePartner value
-
withDnsZonePartner
Set the resource id of another managed instance whose DNS zone this managed instance will share after creation.- Parameters:
dnsZonePartner
- the dnsZonePartner value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
publicDataEndpointEnabled
Get whether or not the public data endpoint is enabled.- Returns:
- the publicDataEndpointEnabled value
-
withPublicDataEndpointEnabled
Set whether or not the public data endpoint is enabled.- Parameters:
publicDataEndpointEnabled
- the publicDataEndpointEnabled value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
sourceManagedInstanceId
Get the resource identifier of the source managed instance associated with create operation of this instance.- Returns:
- the sourceManagedInstanceId value
-
withSourceManagedInstanceId
Set the resource identifier of the source managed instance associated with create operation of this instance.- Parameters:
sourceManagedInstanceId
- the sourceManagedInstanceId value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
restorePointInTime
public org.joda.time.DateTime restorePointInTime()Get specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.- Returns:
- the restorePointInTime value
-
withRestorePointInTime
Set specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.- Parameters:
restorePointInTime
- the restorePointInTime value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
proxyOverride
Get connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'.- Returns:
- the proxyOverride value
-
withProxyOverride
Set connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'.- Parameters:
proxyOverride
- the proxyOverride value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
timezoneId
Get id of the timezone. Allowed values are timezones supported by Windows. Windows keeps details on supported timezones, including the id, in registry under KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time".- Returns:
- the timezoneId value
-
withTimezoneId
Set id of the timezone. Allowed values are timezones supported by Windows. Windows keeps details on supported timezones, including the id, in registry under KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time".- Parameters:
timezoneId
- the timezoneId value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
instancePoolId
Get the Id of the instance pool this managed server belongs to.- Returns:
- the instancePoolId value
-
withInstancePoolId
Set the Id of the instance pool this managed server belongs to.- Parameters:
instancePoolId
- the instancePoolId value to set- Returns:
- the ManagedInstanceUpdate object itself.
-
tags
Get resource tags.- Returns:
- the tags value
-
withTags
Set resource tags.- Parameters:
tags
- the tags value to set- Returns:
- the ManagedInstanceUpdate object itself.
-