com.azure.resourcemanager.monitor.implementation.ActivityLogAlertsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-monitor Show documentation
Show all versions of azure-resourcemanager-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.monitor.implementation;
import com.azure.resourcemanager.monitor.MonitorManager;
import com.azure.resourcemanager.monitor.models.ActivityLogAlert;
import com.azure.resourcemanager.monitor.models.ActivityLogAlerts;
import com.azure.resourcemanager.monitor.fluent.models.ActivityLogAlertResourceInner;
import com.azure.resourcemanager.monitor.fluent.ActivityLogAlertsClient;
import com.azure.resourcemanager.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl;
/** Implementation for {@link ActivityLogAlerts}. */
class ActivityLogAlertsImpl
extends TopLevelModifiableResourcesImpl<
ActivityLogAlert, ActivityLogAlertImpl, ActivityLogAlertResourceInner, ActivityLogAlertsClient, MonitorManager>
implements ActivityLogAlerts {
ActivityLogAlertsImpl(final MonitorManager monitorManager) {
super(monitorManager.serviceClient().getActivityLogAlerts(), monitorManager);
}
@Override
protected ActivityLogAlertImpl wrapModel(String name) {
return new ActivityLogAlertImpl(name, new ActivityLogAlertResourceInner(), this.manager());
}
@Override
protected ActivityLogAlertImpl wrapModel(ActivityLogAlertResourceInner inner) {
if (inner == null) {
return null;
}
return new ActivityLogAlertImpl(inner.name(), inner, this.manager());
}
@Override
public ActivityLogAlertImpl define(String name) {
return wrapModel(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy