ManagedInstanceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. sql. fluent. models. ManagedInstanceInner
- com.
- com.
- com.
public final class ManagedInstanceInner
extends Resource
An Azure SQL managed instance.
Constructor Summary
Constructor | Description |
---|---|
ManagedInstanceInner() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
administratorLogin()
Get the administrator |
String |
administratorLoginPassword()
Get the administrator |
Managed |
administrators()
Get the administrators property: The Azure Active Directory administrator of the server. |
String |
collation()
Get the collation property: Collation of the managed instance. |
Backup |
currentBackupStorageRedundancy()
Get the current |
String |
dnsZone()
Get the dns |
String |
dnsZonePartner()
Get the dns |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
fullyQualifiedDomainName()
Get the fully |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Resource |
identity()
Get the identity property: The Azure Active Directory identity of the managed instance. |
String |
instancePoolId()
Get the instance |
String |
keyId()
Get the key |
Managed |
licenseType()
Get the license |
String |
maintenanceConfigurationId()
Get the maintenance |
Managed |
managedInstanceCreateMode()
Get the managed |
String |
minimalTlsVersion()
Get the minimal |
String |
name()
Get the name property: The name of the resource. |
String |
primaryUserAssignedIdentityId()
Get the primary |
List<Managed |
privateEndpointConnections()
Get the private |
Managed |
provisioningState()
Get the provisioning |
Managed |
proxyOverride()
Get the proxy |
Boolean |
publicDataEndpointEnabled()
Get the public |
Backup |
requestedBackupStorageRedundancy()
Get the requested |
Offset |
restorePointInTime()
Get the restore |
Service |
servicePrincipal()
Get the service |
Sku |
sku()
Get the sku property: Managed instance SKU. |
String |
sourceManagedInstanceId()
Get the source |
String |
state()
Get the state property: The state of the managed instance. |
Integer |
storageSizeInGB()
Get the storage |
String |
subnetId()
Get the subnet |
String |
timezoneId()
Get the timezone |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Integer |
vCores()
Get the v |
void |
validate()
Validates the instance. |
Managed |
withAdministratorLogin(String administratorLogin)
Set the administrator |
Managed |
withAdministratorLoginPassword(String administratorLoginPassword)
Set the administrator |
Managed |
withAdministrators(ManagedInstanceExternalAdministrator administrators)
Set the administrators property: The Azure Active Directory administrator of the server. |
Managed |
withCollation(String collation)
Set the collation property: Collation of the managed instance. |
Managed |
withDnsZonePartner(String dnsZonePartner)
Set the dns |
Managed |
withIdentity(ResourceIdentity identity)
Set the identity property: The Azure Active Directory identity of the managed instance. |
Managed |
withInstancePoolId(String instancePoolId)
Set the instance |
Managed |
withKeyId(String keyId)
Set the key |
Managed |
withLicenseType(ManagedInstanceLicenseType licenseType)
Set the license |
Managed |
withLocation(String location) |
Managed |
withMaintenanceConfigurationId(String maintenanceConfigurationId)
Set the maintenance |
Managed |
withManagedInstanceCreateMode(ManagedServerCreateMode managedInstanceCreateMode)
Set the managed |
Managed |
withMinimalTlsVersion(String minimalTlsVersion)
Set the minimal |
Managed |
withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
Set the primary |
Managed |
withProxyOverride(ManagedInstanceProxyOverride proxyOverride)
Set the proxy |
Managed |
withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled)
Set the public |
Managed |
withRequestedBackupStorageRedundancy(BackupStorageRedundancy requestedBackupStorageRedundancy)
Set the requested |
Managed |
withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restore |
Managed |
withServicePrincipal(ServicePrincipal servicePrincipal)
Set the service |
Managed |
withSku(Sku sku)
Set the sku property: Managed instance SKU. |
Managed |
withSourceManagedInstanceId(String sourceManagedInstanceId)
Set the source |
Managed |
withStorageSizeInGB(Integer storageSizeInGB)
Set the storage |
Managed |
withSubnetId(String subnetId)
Set the subnet |
Managed |
withTags(Map<String,String> tags) |
Managed |
withTimezoneId(String timezoneId)
Set the timezone |
Managed |
withVCores(Integer vCores)
Set the v |
Managed |
withZoneRedundant(Boolean zoneRedundant)
Set the zone |
Boolean |
zoneRedundant()
Get the zone |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ManagedInstanceInner
public ManagedInstanceInner()
Creates an instance of ManagedInstanceInner class.
Method Details
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:
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The administrator login password (required for managed instance creation).
Returns:
administrators
public ManagedInstanceExternalAdministrator administrators()
Get the administrators property: The Azure Active Directory administrator of the server.
Returns:
collation
public String collation()
Get the collation property: Collation of the managed instance.
Returns:
currentBackupStorageRedundancy
public BackupStorageRedundancy currentBackupStorageRedundancy()
Get the currentBackupStorageRedundancy property: The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage).
Returns:
dnsZone
public String dnsZone()
Get the dnsZone property: The Dns Zone that the managed instance is in.
Returns:
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:
fromJson
public static ManagedInstanceInner fromJson(JsonReader jsonReader)
Reads an instance of ManagedInstanceInner from the JsonReader.
Parameters:
Returns:
Throws:
fullyQualifiedDomainName
public String fullyQualifiedDomainName()
Get the fullyQualifiedDomainName property: The fully qualified domain name of the managed instance.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ManagedInstanceInner.id()Returns:
identity
public ResourceIdentity identity()
Get the identity property: The Azure Active Directory identity of the managed instance.
Returns:
instancePoolId
public String instancePoolId()
Get the instancePoolId property: The Id of the instance pool this managed server belongs to.
Returns:
keyId
public String keyId()
Get the keyId property: A CMK URI of the key to use for encryption.
Returns:
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:
maintenanceConfigurationId
public String maintenanceConfigurationId()
Get the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this managed instance.
Returns:
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:
minimalTlsVersion
public String minimalTlsVersion()
Get the minimalTlsVersion property: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ManagedInstanceInner.name()Returns:
primaryUserAssignedIdentityId
public String primaryUserAssignedIdentityId()
Get the primaryUserAssignedIdentityId property: The resource id of a user assigned identity to be used by default.
Returns:
privateEndpointConnections
public List
Get the privateEndpointConnections property: List of private endpoint connections on a managed instance.
Returns:
provisioningState
public ManagedInstancePropertiesProvisioningState provisioningState()
Get the provisioningState property: The provisioningState property.
Returns:
proxyOverride
public ManagedInstanceProxyOverride proxyOverride()
Get the proxyOverride property: Connection type used for connecting to the instance.
Returns:
publicDataEndpointEnabled
public Boolean publicDataEndpointEnabled()
Get the publicDataEndpointEnabled property: Whether or not the public data endpoint is enabled.
Returns:
requestedBackupStorageRedundancy
public BackupStorageRedundancy requestedBackupStorageRedundancy()
Get the requestedBackupStorageRedundancy property: The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage).
Returns:
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:
servicePrincipal
public ServicePrincipal servicePrincipal()
Get the servicePrincipal property: The managed instance's service principal.
Returns:
sku
public Sku sku()
Get the sku property: Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH.
Returns:
sourceManagedInstanceId
public String sourceManagedInstanceId()
Get the sourceManagedInstanceId property: The resource identifier of the source managed instance associated with create operation of this instance.
Returns:
state
public String state()
Get the state property: The state of the managed instance.
Returns:
storageSizeInGB
public Integer storageSizeInGB()
Get the storageSizeInGB property: Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores.
Returns:
subnetId
public String subnetId()
Get the subnetId property: Subnet resource ID for the managed instance.
Returns:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedInstanceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ManagedInstanceInner.type()Returns:
vCores
public Integer vCores()
Get the vCores property: The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withAdministratorLoginPassword
public ManagedInstanceInner withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The administrator login password (required for managed instance creation).
Parameters:
Returns:
withAdministrators
public ManagedInstanceInner withAdministrators(ManagedInstanceExternalAdministrator administrators)
Set the administrators property: The Azure Active Directory administrator of the server.
Parameters:
Returns:
withCollation
public ManagedInstanceInner withCollation(String collation)
Set the collation property: Collation of the managed instance.
Parameters:
Returns:
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:
Returns:
withIdentity
public ManagedInstanceInner withIdentity(ResourceIdentity identity)
Set the identity property: The Azure Active Directory identity of the managed instance.
Parameters:
Returns:
withInstancePoolId
public ManagedInstanceInner withInstancePoolId(String instancePoolId)
Set the instancePoolId property: The Id of the instance pool this managed server belongs to.
Parameters:
Returns:
withKeyId
public ManagedInstanceInner withKeyId(String keyId)
Set the keyId property: A CMK URI of the key to use for encryption.
Parameters:
Returns:
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:
Returns:
withLocation
public ManagedInstanceInner withLocation(String location)
Overrides:
ManagedInstanceInner.withLocation(String location)Parameters:
withMaintenanceConfigurationId
public ManagedInstanceInner withMaintenanceConfigurationId(String maintenanceConfigurationId)
Set the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this managed instance.
Parameters:
Returns:
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:
Returns:
withMinimalTlsVersion
public ManagedInstanceInner withMinimalTlsVersion(String minimalTlsVersion)
Set the minimalTlsVersion property: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'.
Parameters:
Returns:
withPrimaryUserAssignedIdentityId
public ManagedInstanceInner withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId)
Set the primaryUserAssignedIdentityId property: The resource id of a user assigned identity to be used by default.
Parameters:
Returns:
withProxyOverride
public ManagedInstanceInner withProxyOverride(ManagedInstanceProxyOverride proxyOverride)
Set the proxyOverride property: Connection type used for connecting to the instance.
Parameters:
Returns:
withPublicDataEndpointEnabled
public ManagedInstanceInner withPublicDataEndpointEnabled(Boolean publicDataEndpointEnabled)
Set the publicDataEndpointEnabled property: Whether or not the public data endpoint is enabled.
Parameters:
Returns:
withRequestedBackupStorageRedundancy
public ManagedInstanceInner withRequestedBackupStorageRedundancy(BackupStorageRedundancy requestedBackupStorageRedundancy)
Set the requestedBackupStorageRedundancy property: The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage).
Parameters:
Returns:
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:
Returns:
withServicePrincipal
public ManagedInstanceInner withServicePrincipal(ServicePrincipal servicePrincipal)
Set the servicePrincipal property: The managed instance's service principal.
Parameters:
Returns:
withSku
public ManagedInstanceInner withSku(Sku sku)
Set the sku property: Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH.
Parameters:
Returns:
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:
Returns:
withStorageSizeInGB
public ManagedInstanceInner withStorageSizeInGB(Integer storageSizeInGB)
Set the storageSizeInGB property: Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores.
Parameters:
Returns:
withSubnetId
public ManagedInstanceInner withSubnetId(String subnetId)
Set the subnetId property: Subnet resource ID for the managed instance.
Parameters:
Returns:
withTags
public ManagedInstanceInner withTags(Map
Overrides:
ManagedInstanceInner.withTags(Map<String,String> tags)Parameters:
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:
Returns:
withVCores
public ManagedInstanceInner withVCores(Integer vCores)
Set the vCores property: The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.
Parameters:
Returns:
withZoneRedundant
public ManagedInstanceInner withZoneRedundant(Boolean zoneRedundant)
Set the zoneRedundant property: Whether or not the multi-az is enabled.
Parameters:
Returns:
zoneRedundant
public Boolean zoneRedundant()
Get the zoneRedundant property: Whether or not the multi-az is enabled.
Returns:
Applies to
Azure SDK for Java