com.microsoft.azure.management.sql.implementation.ElasticPoolActivityImpl 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 Sql Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.ElasticPoolActivity;
import org.joda.time.DateTime;
/**
* Implementation for Elastic Pool Activity interface.
*/
@LangDefinition
class ElasticPoolActivityImpl
extends WrapperImpl
implements ElasticPoolActivity {
private final ResourceId resourceId;
protected ElasticPoolActivityImpl(ElasticPoolActivityInner innerObject) {
super(innerObject);
this.resourceId = ResourceId.fromString(this.inner().id());
}
@Override
public String name() {
return this.resourceId.name();
}
@Override
public String id() {
return this.resourceId.id();
}
@Override
public String resourceGroupName() {
return this.resourceId.resourceGroupName();
}
@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 int requestedDatabaseDtuMax() {
return Utils.toPrimitiveInt(this.inner().requestedDatabaseDtuMax());
}
@Override
public int requestedDatabaseDtuMin() {
return Utils.toPrimitiveInt(this.inner().requestedDatabaseDtuMin());
}
@Override
public int requestedDtu() {
return Utils.toPrimitiveInt(this.inner().requestedDtu());
}
@Override
public String requestedElasticPoolName() {
return this.inner().requestedElasticPoolName();
}
@Override
public long requestedStorageLimitInGB() {
return Utils.toPrimitiveLong(this.inner().requestedStorageLimitInGB());
}
@Override
public String elasticPoolName() {
return this.inner().elasticPoolName();
}
@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();
}
@Override
public int requestedStorageLimitInMB() {
return this.inner().requestedStorageLimitInMB();
}
@Override
public int requestedDatabaseDtuGuarantee() {
return this.inner().requestedDatabaseDtuGuarantee();
}
@Override
public int requestedDatabaseDtuCap() {
return this.inner().requestedDatabaseDtuCap();
}
@Override
public int requestedDtuGuarantee() {
return this.inner().requestedDtuGuarantee();
}
}