com.azure.resourcemanager.sql.implementation.RestorePointImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-sql Show documentation
Show all versions of azure-resourcemanager-sql Show documentation
This package contains Microsoft Azure Sql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.sql.implementation;
import com.azure.resourcemanager.resources.fluentcore.arm.ResourceId;
import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl;
import com.azure.resourcemanager.sql.models.RestorePoint;
import com.azure.resourcemanager.sql.models.RestorePointType;
import com.azure.resourcemanager.sql.fluent.models.RestorePointInner;
import java.time.OffsetDateTime;
/** Implementation for Restore point interface. */
class RestorePointImpl extends WrapperImpl implements RestorePoint {
private final ResourceId resourceId;
private final String sqlServerName;
private final String resourceGroupName;
protected RestorePointImpl(String resourceGroupName, String sqlServerName, RestorePointInner innerObject) {
super(innerObject);
this.resourceGroupName = resourceGroupName;
this.sqlServerName = sqlServerName;
this.resourceId = ResourceId.fromString(this.innerModel().id());
}
@Override
public String name() {
return this.innerModel().name();
}
@Override
public String id() {
return this.innerModel().id();
}
@Override
public String resourceGroupName() {
return this.resourceGroupName;
}
@Override
public String sqlServerName() {
return this.sqlServerName;
}
@Override
public String databaseName() {
return resourceId.parent().name();
}
@Override
public String databaseId() {
return resourceId.parent().id();
}
@Override
public RestorePointType restorePointType() {
return this.innerModel().restorePointType();
}
@Override
public OffsetDateTime restorePointCreationDate() {
return this.innerModel().restorePointCreationDate();
}
@Override
public OffsetDateTime earliestRestoreDate() {
return this.innerModel().earliestRestoreDate();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy