// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.maintenance.implementation;

import com.azure.resourcemanager.maintenance.fluent.models.UpdateInner;
import com.azure.resourcemanager.maintenance.models.ImpactType;
import com.azure.resourcemanager.maintenance.models.MaintenanceScope;
import com.azure.resourcemanager.maintenance.models.Update;
import com.azure.resourcemanager.maintenance.models.UpdateStatus;
import java.time.OffsetDateTime;

public final class UpdateImpl implements Update {
    private UpdateInner innerObject;

    private final com.azure.resourcemanager.maintenance.MaintenanceManager serviceManager;

    UpdateImpl(UpdateInner innerObject, com.azure.resourcemanager.maintenance.MaintenanceManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public MaintenanceScope maintenanceScope() {
        return this.innerModel().maintenanceScope();
    }

    public ImpactType impactType() {
        return this.innerModel().impactType();
    }

    public UpdateStatus status() {
        return this.innerModel().status();
    }

    public Integer impactDurationInSec() {
        return this.innerModel().impactDurationInSec();
    }

    public OffsetDateTime notBefore() {
        return this.innerModel().notBefore();
    }

    public String resourceId() {
        return this.innerModel().resourceId();
    }

    public UpdateInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.maintenance.MaintenanceManager manager() {
        return this.serviceManager;
    }
}
