com.azure.resourcemanager.costmanagement.implementation.AlertImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-costmanagement Show documentation
Show all versions of azure-resourcemanager-costmanagement Show documentation
This package contains Microsoft Azure SDK for CostManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions. Package tag package-2022-10.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.costmanagement.implementation;
import com.azure.resourcemanager.costmanagement.fluent.models.AlertInner;
import com.azure.resourcemanager.costmanagement.models.Alert;
import com.azure.resourcemanager.costmanagement.models.AlertPropertiesDefinition;
import com.azure.resourcemanager.costmanagement.models.AlertPropertiesDetails;
import com.azure.resourcemanager.costmanagement.models.AlertSource;
import com.azure.resourcemanager.costmanagement.models.AlertStatus;
import java.util.Collections;
import java.util.Map;
public final class AlertImpl implements Alert {
private AlertInner innerObject;
private final com.azure.resourcemanager.costmanagement.CostManagementManager serviceManager;
AlertImpl(AlertInner innerObject, com.azure.resourcemanager.costmanagement.CostManagementManager 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 Map tags() {
Map inner = this.innerModel().tags();
if (inner != null) {
return Collections.unmodifiableMap(inner);
} else {
return Collections.emptyMap();
}
}
public AlertPropertiesDefinition definition() {
return this.innerModel().definition();
}
public String description() {
return this.innerModel().description();
}
public AlertSource source() {
return this.innerModel().source();
}
public AlertPropertiesDetails details() {
return this.innerModel().details();
}
public String costEntityId() {
return this.innerModel().costEntityId();
}
public AlertStatus status() {
return this.innerModel().status();
}
public String creationTime() {
return this.innerModel().creationTime();
}
public String closeTime() {
return this.innerModel().closeTime();
}
public String modificationTime() {
return this.innerModel().modificationTime();
}
public String statusModificationUsername() {
return this.innerModel().statusModificationUsername();
}
public String statusModificationTime() {
return this.innerModel().statusModificationTime();
}
public AlertInner innerModel() {
return this.innerObject;
}
private com.azure.resourcemanager.costmanagement.CostManagementManager manager() {
return this.serviceManager;
}
}