Java Code Examples for com.microsoft.azure.management.sql.SqlServer#resourceGroupName()

The following examples show how to use com.microsoft.azure.management.sql.SqlServer#resourceGroupName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlElasticPoolImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public SqlElasticPoolImpl withExistingSqlServer(SqlServer sqlServer) {
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    this.sqlServerLocation = sqlServer.regionName();

    return this;
}
 
Example 2
Source File: SqlServerSecurityAlertPolicyImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public SqlServerSecurityAlertPolicyImpl withExistingSqlServer(SqlServer sqlServer) {
    Objects.requireNonNull(sqlServer);
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    return this;
}
 
Example 3
Source File: SqlServerDnsAliasImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public SqlServerDnsAliasImpl withExistingSqlServer(SqlServer sqlServer) {
    Objects.requireNonNull(sqlServer);
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    return this;
}
 
Example 4
Source File: SqlDatabaseImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public SqlDatabaseImpl withExistingSqlServer(SqlServer sqlServer) {
    Objects.requireNonNull(sqlServer);
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    this.sqlServerLocation = sqlServer.regionName();

    return this;
}
 
Example 5
Source File: SqlServerKeyImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public SqlServerKeyImpl withExistingSqlServer(SqlServer sqlServer) {
    Objects.requireNonNull(sqlServer);
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    return this;
}
 
Example 6
Source File: SqlFailoverGroupImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public SqlFailoverGroupImpl withExistingSqlServer(SqlServer sqlServer) {
    Objects.requireNonNull(sqlServer);
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    this.sqlServerLocation = sqlServer.regionName();
    return this;
}
 
Example 7
Source File: SqlFirewallRuleImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public SqlFirewallRuleImpl withExistingSqlServer(SqlServer sqlServer) {
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    return this;
}
 
Example 8
Source File: SqlVirtualNetworkRuleImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public SqlVirtualNetworkRuleImpl withExistingSqlServer(SqlServer sqlServer) {
    this.resourceGroupName = sqlServer.resourceGroupName();
    this.sqlServerName = sqlServer.name();
    return this;
}