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

package com.azure.resourcemanager.policyinsights.implementation;

import com.azure.resourcemanager.policyinsights.fluent.models.PolicyTrackedResourceInner;
import com.azure.resourcemanager.policyinsights.models.PolicyDetails;
import com.azure.resourcemanager.policyinsights.models.PolicyTrackedResource;
import com.azure.resourcemanager.policyinsights.models.TrackedResourceModificationDetails;
import java.time.OffsetDateTime;

public final class PolicyTrackedResourceImpl implements PolicyTrackedResource {
    private PolicyTrackedResourceInner innerObject;

    private final com.azure.resourcemanager.policyinsights.PolicyInsightsManager serviceManager;

    PolicyTrackedResourceImpl(
        PolicyTrackedResourceInner innerObject,
        com.azure.resourcemanager.policyinsights.PolicyInsightsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

    public PolicyDetails policyDetails() {
        return this.innerModel().policyDetails();
    }

    public TrackedResourceModificationDetails createdBy() {
        return this.innerModel().createdBy();
    }

    public TrackedResourceModificationDetails lastModifiedBy() {
        return this.innerModel().lastModifiedBy();
    }

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

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

    private com.azure.resourcemanager.policyinsights.PolicyInsightsManager manager() {
        return this.serviceManager;
    }
}
