Class ManagedInstanceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.sql.fluent.models.ManagedInstanceInner
-
public class ManagedInstanceInner extends com.azure.core.management.ResourceAn Azure SQL managed instance.
-
-
Constructor Summary
Constructors Constructor Description ManagedInstanceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadministratorLogin()Get the administratorLogin property: Administrator username for the managed instance.StringadministratorLoginPassword()Get the administratorLoginPassword property: The administrator login password (required for managed instance creation).Stringcollation()Get the collation property: Collation of the managed instance.StringdnsZone()Get the dnsZone property: The Dns Zone that the managed instance is in.StringdnsZonePartner()Get the dnsZonePartner property: The resource id of another managed instance whose DNS zone this managed instance will share after creation.StringfullyQualifiedDomainName()Get the fullyQualifiedDomainName property: The fully qualified domain name of the managed instance.ResourceIdentityidentity()Get the identity property: The Azure Active Directory identity of the managed instance.StringinstancePoolId()Get the instancePoolId property: The Id of the instance pool this managed server belongs to.ManagedInstanceLicenseTypelicenseType()Get the licenseType property: The license type.ManagedServerCreateModemanagedInstanceCreateMode()Get the managedInstanceCreateMode property: Specifies the mode of database creation.StringminimalTlsVersion()Get the minimalTlsVersion property: Minimal TLS version.ManagedInstanceProxyOverrideproxyOverride()Get the proxyOverride property: Connection type used for connecting to the instance.BooleanpublicDataEndpointEnabled()Get the publicDataEndpointEnabled property: Whether or not the public data endpoint is enabled.OffsetDateTimerestorePointInTime()Get the restorePointInTime property: Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.Skusku()Get the sku property: Managed instance SKU.StringsourceManagedInstanceId()Get the sourceManagedInstanceId property: The resource identifier of the source managed instance associated with create operation of this instance.Stringstate()Get the state property: The state of the managed instance.IntegerstorageSizeInGB()Get the storageSizeInGB property: Storage size in GB.StringsubnetId()Get the subnetId property: Subnet resource ID for the managed instance.StringtimezoneId()Get the timezoneId property: Id of the timezone.voidvalidate()Validates the instance.IntegervCores()Get the vCores property: The number of vCores.ManagedInstanceInnerwithAdministratorLogin(String administratorLogin)Set the administratorLogin property: Administrator username for the managed instance.ManagedInstanceInnerwithAdministratorLoginPassword(String administratorLoginPassword)Set the administratorLoginPassword property: The administrator login password (required for managed instance creation).ManagedInstanceInnerwithCollation(String collation)Set the collation property: Collation of the managed instance.ManagedInstanceInnerwithDnsZonePartner(String dnsZonePartner)Set the dnsZonePartner property: The resource id of another managed instance whose DNS zone this managed instance will share after creation.ManagedInstanceInnerwithIdentity(ResourceIdentity identity)Set the identity property: The Azure Active Directory identity of the managed instance.ManagedInstanceInnerwithInstancePoolId(String instancePoolId)Set the instancePoolId property: The Id of the instance pool this managed server belongs to.ManagedInstanceInnerwithLicenseType(ManagedInstanceLicenseType licenseType)Set the licenseType property: The license type.ManagedInstanceInnerwithManagedInstanceCreateMode(ManagedServerCreateMode managedInstanceCreateMode)Set the managedInstanceCreateMode property: Specifies the mode of database creation.ManagedInstanceInnerwithMinimalTlsVersion(String minimalTlsVersion)Set the minimalTlsVersion property: Minimal TLS version.ManagedInstanceInnerwithProxyOverride(ManagedInstanceProxyOverride proxyOverride)Set the proxyOverride property: Connection type used for connecting to the instance.ManagedInstanceInnerwithPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled)Set the publicDataEndpointEnabled property: Whether or not the public data endpoint is enabled.ManagedInstanceInnerwithRestorePointInTime(OffsetDateTime restorePointInTime)Set the restorePointInTime property: Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.ManagedInstanceInnerwithSku(Sku sku)Set the sku property: Managed instance SKU.ManagedInstanceInnerwithSourceManagedInstanceId(String sourceManagedInstanceId)Set the sourceManagedInstanceId property: The resource identifier of the source managed instance associated with create operation of this instance.ManagedInstanceInnerwithStorageSizeInGB(Integer storageSizeInGB)Set the storageSizeInGB property: Storage size in GB.ManagedInstanceInnerwithSubnetId(String subnetId)Set the subnetId property: Subnet resource ID for the managed instance.ManagedInstanceInnerwithTimezoneId(String timezoneId)Set the timezoneId property: Id of the timezone.ManagedInstanceInnerwithVCores(Integer vCores)Set the vCores property: The number of vCores.
-
-
-
Method Detail
-
identity
public ResourceIdentity identity()
Get the identity property: The Azure Active Directory identity of the managed instance.- Returns:
- the identity value.
-
withIdentity
public ManagedInstanceInner withIdentity(ResourceIdentity identity)
Set the identity property: The Azure Active Directory identity of the managed instance.- Parameters:
identity- the identity value to set.- Returns:
- the ManagedInstanceInner object itself.
-
sku
public Sku sku()
Get the sku property: Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5.- Returns:
- the sku value.
-
withSku
public ManagedInstanceInner withSku(Sku sku)
Set the sku property: Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5.- Parameters:
sku- the sku value to set.- Returns:
- the ManagedInstanceInner object itself.
-
managedInstanceCreateMode
public ManagedServerCreateMode managedInstanceCreateMode()
Get the managedInstanceCreateMode property: 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.
- Returns:
- the managedInstanceCreateMode value.
-
withManagedInstanceCreateMode
public ManagedInstanceInner withManagedInstanceCreateMode(ManagedServerCreateMode managedInstanceCreateMode)
Set the managedInstanceCreateMode property: 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.
- Parameters:
managedInstanceCreateMode- the managedInstanceCreateMode value to set.- Returns:
- the ManagedInstanceInner object itself.
-
fullyQualifiedDomainName
public String fullyQualifiedDomainName()
Get the fullyQualifiedDomainName property: The fully qualified domain name of the managed instance.- Returns:
- the fullyQualifiedDomainName value.
-
administratorLogin
public String administratorLogin()
Get the administratorLogin property: 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
public ManagedInstanceInner withAdministratorLogin(String administratorLogin)
Set the administratorLogin property: 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 ManagedInstanceInner object itself.
-
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The administrator login password (required for managed instance creation).- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
public ManagedInstanceInner withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The administrator login password (required for managed instance creation).- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the ManagedInstanceInner object itself.
-
subnetId
public String subnetId()
Get the subnetId property: Subnet resource ID for the managed instance.- Returns:
- the subnetId value.
-
withSubnetId
public ManagedInstanceInner withSubnetId(String subnetId)
Set the subnetId property: Subnet resource ID for the managed instance.- Parameters:
subnetId- the subnetId value to set.- Returns:
- the ManagedInstanceInner object itself.
-
state
public String state()
Get the state property: The state of the managed instance.- Returns:
- the state value.
-
licenseType
public ManagedInstanceLicenseType licenseType()
Get the licenseType property: 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).- Returns:
- the licenseType value.
-
withLicenseType
public ManagedInstanceInner withLicenseType(ManagedInstanceLicenseType licenseType)
Set the licenseType property: 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).- Parameters:
licenseType- the licenseType value to set.- Returns:
- the ManagedInstanceInner object itself.
-
vCores
public Integer vCores()
Get the vCores property: The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.- Returns:
- the vCores value.
-
withVCores
public ManagedInstanceInner withVCores(Integer vCores)
Set the vCores property: The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.- Parameters:
vCores- the vCores value to set.- Returns:
- the ManagedInstanceInner object itself.
-
storageSizeInGB
public Integer storageSizeInGB()
Get the storageSizeInGB property: Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.- Returns:
- the storageSizeInGB value.
-
withStorageSizeInGB
public ManagedInstanceInner withStorageSizeInGB(Integer storageSizeInGB)
Set the storageSizeInGB property: 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 ManagedInstanceInner object itself.
-
collation
public String collation()
Get the collation property: Collation of the managed instance.- Returns:
- the collation value.
-
withCollation
public ManagedInstanceInner withCollation(String collation)
Set the collation property: Collation of the managed instance.- Parameters:
collation- the collation value to set.- Returns:
- the ManagedInstanceInner object itself.
-
dnsZone
public String dnsZone()
Get the dnsZone property: The Dns Zone that the managed instance is in.- Returns:
- the dnsZone value.
-
dnsZonePartner
public String dnsZonePartner()
Get the dnsZonePartner property: The resource id of another managed instance whose DNS zone this managed instance will share after creation.- Returns:
- the dnsZonePartner value.
-
withDnsZonePartner
public ManagedInstanceInner withDnsZonePartner(String dnsZonePartner)
Set the dnsZonePartner property: 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 ManagedInstanceInner object itself.
-
publicDataEndpointEnabled
public Boolean publicDataEndpointEnabled()
Get the publicDataEndpointEnabled property: Whether or not the public data endpoint is enabled.- Returns:
- the publicDataEndpointEnabled value.
-
withPublicDataEndpointEnabled
public ManagedInstanceInner withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled)
Set the publicDataEndpointEnabled property: Whether or not the public data endpoint is enabled.- Parameters:
publicDataEndpointEnabled- the publicDataEndpointEnabled value to set.- Returns:
- the ManagedInstanceInner object itself.
-
sourceManagedInstanceId
public String sourceManagedInstanceId()
Get the sourceManagedInstanceId property: The resource identifier of the source managed instance associated with create operation of this instance.- Returns:
- the sourceManagedInstanceId value.
-
withSourceManagedInstanceId
public ManagedInstanceInner withSourceManagedInstanceId(String sourceManagedInstanceId)
Set the sourceManagedInstanceId property: The resource identifier of the source managed instance associated with create operation of this instance.- Parameters:
sourceManagedInstanceId- the sourceManagedInstanceId value to set.- Returns:
- the ManagedInstanceInner object itself.
-
restorePointInTime
public OffsetDateTime restorePointInTime()
Get the restorePointInTime property: 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
public ManagedInstanceInner withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restorePointInTime property: 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 ManagedInstanceInner object itself.
-
proxyOverride
public ManagedInstanceProxyOverride proxyOverride()
Get the proxyOverride property: Connection type used for connecting to the instance.- Returns:
- the proxyOverride value.
-
withProxyOverride
public ManagedInstanceInner withProxyOverride(ManagedInstanceProxyOverride proxyOverride)
Set the proxyOverride property: Connection type used for connecting to the instance.- Parameters:
proxyOverride- the proxyOverride value to set.- Returns:
- the ManagedInstanceInner object itself.
-
timezoneId
public String timezoneId()
Get the timezoneId property: 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
public ManagedInstanceInner withTimezoneId(String timezoneId)
Set the timezoneId property: 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 ManagedInstanceInner object itself.
-
instancePoolId
public String instancePoolId()
Get the instancePoolId property: The Id of the instance pool this managed server belongs to.- Returns:
- the instancePoolId value.
-
withInstancePoolId
public ManagedInstanceInner withInstancePoolId(String instancePoolId)
Set the instancePoolId property: The Id of the instance pool this managed server belongs to.- Parameters:
instancePoolId- the instancePoolId value to set.- Returns:
- the ManagedInstanceInner object itself.
-
minimalTlsVersion
public String minimalTlsVersion()
Get the minimalTlsVersion property: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'.- Returns:
- the minimalTlsVersion value.
-
withMinimalTlsVersion
public ManagedInstanceInner withMinimalTlsVersion(String minimalTlsVersion)
Set the minimalTlsVersion property: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'.- Parameters:
minimalTlsVersion- the minimalTlsVersion value to set.- Returns:
- the ManagedInstanceInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-