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

package com.azure.resourcemanager.mariadb.implementation;

import com.azure.resourcemanager.mariadb.fluent.models.RecommendationActionInner;
import com.azure.resourcemanager.mariadb.models.RecommendationAction;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.Map;

public final class RecommendationActionImpl implements RecommendationAction {
    private RecommendationActionInner innerObject;

    private final com.azure.resourcemanager.mariadb.MariaDBManager serviceManager;

    RecommendationActionImpl(
        RecommendationActionInner innerObject, com.azure.resourcemanager.mariadb.MariaDBManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

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

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

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

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

    public Map<String, String> details() {
        Map<String, String> inner = this.innerModel().details();
        if (inner != null) {
            return Collections.unmodifiableMap(inner);
        } else {
            return Collections.emptyMap();
        }
    }

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

    private com.azure.resourcemanager.mariadb.MariaDBManager manager() {
        return this.serviceManager;
    }
}
