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

com.azure.resourcemanager.hybridcompute.implementation.LicenseProfileMachineInstanceViewImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2024-07.

There is a newer version: 1.1.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcompute.implementation;

import com.azure.resourcemanager.hybridcompute.fluent.models.LicenseProfileMachineInstanceViewEsuPropertiesInner;
import com.azure.resourcemanager.hybridcompute.fluent.models.LicenseProfileMachineInstanceViewInner;
import com.azure.resourcemanager.hybridcompute.models.LicenseProfileMachineInstanceView;
import com.azure.resourcemanager.hybridcompute.models.LicenseProfileMachineInstanceViewEsuProperties;
import com.azure.resourcemanager.hybridcompute.models.LicenseProfileProductType;
import com.azure.resourcemanager.hybridcompute.models.LicenseProfileSubscriptionStatus;
import com.azure.resourcemanager.hybridcompute.models.LicenseStatus;
import com.azure.resourcemanager.hybridcompute.models.ProductFeature;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;

public final class LicenseProfileMachineInstanceViewImpl implements LicenseProfileMachineInstanceView {
    private LicenseProfileMachineInstanceViewInner innerObject;

    private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;

    LicenseProfileMachineInstanceViewImpl(LicenseProfileMachineInstanceViewInner innerObject,
        com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public LicenseStatus licenseStatus() {
        return this.innerModel().licenseStatus();
    }

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

    public LicenseProfileMachineInstanceViewEsuProperties esuProfile() {
        LicenseProfileMachineInstanceViewEsuPropertiesInner inner = this.innerModel().esuProfile();
        if (inner != null) {
            return new LicenseProfileMachineInstanceViewEsuPropertiesImpl(inner, this.manager());
        } else {
            return null;
        }
    }

    public Boolean softwareAssuranceCustomer() {
        return this.innerModel().softwareAssuranceCustomer();
    }

    public LicenseProfileSubscriptionStatus subscriptionStatus() {
        return this.innerModel().subscriptionStatus();
    }

    public LicenseProfileProductType productType() {
        return this.innerModel().productType();
    }

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

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

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

    public List productFeatures() {
        List inner = this.innerModel().productFeatures();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

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

    private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
        return this.serviceManager;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy