com.microsoft.azure.management.sql.implementation.ElasticPoolDatabaseActivityImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-sql Show documentation
Show all versions of azure-mgmt-sql Show documentation
This package contains Microsoft Azure SDK for SQL Management module.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.sql.implementation;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId;
import com.microsoft.azure.management.resources.fluentcore.model.implementation.WrapperImpl;
import com.microsoft.azure.management.resources.fluentcore.utils.Utils;
import com.microsoft.azure.management.sql.ElasticPoolDatabaseActivity;
import org.joda.time.DateTime;
/**
* Implementation for Elastic Pool Database Activity interface.
*/
@LangDefinition
class ElasticPoolDatabaseActivityImpl
extends WrapperImpl
implements ElasticPoolDatabaseActivity {
private final ResourceId resourceId;
protected ElasticPoolDatabaseActivityImpl(ElasticPoolDatabaseActivityInner innerObject) {
super(innerObject);
this.resourceId = ResourceId.fromString(this.inner().id());
}
@Override
public String name() {
return this.inner().name();
}
@Override
public String id() {
return this.inner().id();
}
@Override
public String resourceGroupName() {
return this.resourceId.resourceGroupName();
}
@Override
public String databaseName() {
return this.inner().databaseName();
}
@Override
public DateTime endTime() {
return this.inner().endTime();
}
@Override
public int errorCode() {
return Utils.toPrimitiveInt(this.inner().errorCode());
}
@Override
public String errorMessage() {
return this.inner().errorMessage();
}
@Override
public int errorSeverity() {
return Utils.toPrimitiveInt(this.inner().errorSeverity());
}
@Override
public String operation() {
return this.inner().operation();
}
@Override
public String operationId() {
return this.inner().operationId().toString();
}
@Override
public int percentComplete() {
return Utils.toPrimitiveInt(this.inner().percentComplete());
}
@Override
public String requestedElasticPoolName() {
return this.inner().requestedElasticPoolName();
}
@Override
public String currentElasticPoolName() {
return this.inner().currentElasticPoolName();
}
@Override
public String currentServiceObjective() {
return this.inner().currentServiceObjective();
}
@Override
public String requestedServiceObjective() {
return this.inner().requestedServiceObjective();
}
@Override
public String serverName() {
return this.inner().serverName();
}
@Override
public DateTime startTime() {
return this.inner().startTime();
}
@Override
public String state() {
return this.inner().state();
}
@Override
public String location() {
return this.inner().location();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy