All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.network.implementation.NetworkUsageImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.network.implementation;

import com.azure.resourcemanager.network.models.NetworkUsage;
import com.azure.resourcemanager.network.models.UsageName;
import com.azure.resourcemanager.network.fluent.models.UsageInner;
import com.azure.resourcemanager.network.models.UsageUnit;
import com.azure.resourcemanager.resources.fluentcore.model.implementation.WrapperImpl;
import com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils;

/** The implementation of {@link NetworkUsage}. */
class NetworkUsageImpl extends WrapperImpl implements NetworkUsage {
    NetworkUsageImpl(UsageInner innerObject) {
        super(innerObject);
    }

    @Override
    public UsageUnit unit() {
        return innerModel().unit();
    }

    @Override
    public long currentValue() {
        return ResourceManagerUtils.toPrimitiveLong(innerModel().currentValue());
    }

    @Override
    public long limit() {
        return ResourceManagerUtils.toPrimitiveLong(innerModel().limit());
    }

    @Override
    public UsageName name() {
        return innerModel().name();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy