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

com.azure.resourcemanager.hybridcompute.fluent.models.LicenseProfileUpdateProperties 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.hybridcompute.models.LicenseProfileProductType;
import com.azure.resourcemanager.hybridcompute.models.LicenseProfileSubscriptionStatusUpdate;
import com.azure.resourcemanager.hybridcompute.models.ProductFeatureUpdate;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * Describe the Update properties of a license profile.
 */
@Fluent
public final class LicenseProfileUpdateProperties {
    /*
     * The softwareAssurance property.
     */
    @JsonProperty(value = "softwareAssurance")
    private LicenseProfileUpdatePropertiesSoftwareAssurance innerSoftwareAssurance;

    /*
     * Hybrid Compute ESU Profile Update properties
     */
    @JsonProperty(value = "esuProfile")
    private EsuProfileUpdateProperties innerEsuProfile;

    /*
     * Hybrid Compute Product Profile Update properties
     */
    @JsonProperty(value = "productProfile")
    private ProductProfileUpdateProperties innerProductProfile;

    /**
     * Creates an instance of LicenseProfileUpdateProperties class.
     */
    public LicenseProfileUpdateProperties() {
    }

    /**
     * Get the innerSoftwareAssurance property: The softwareAssurance property.
     * 
     * @return the innerSoftwareAssurance value.
     */
    private LicenseProfileUpdatePropertiesSoftwareAssurance innerSoftwareAssurance() {
        return this.innerSoftwareAssurance;
    }

    /**
     * Get the innerEsuProfile property: Hybrid Compute ESU Profile Update properties.
     * 
     * @return the innerEsuProfile value.
     */
    private EsuProfileUpdateProperties innerEsuProfile() {
        return this.innerEsuProfile;
    }

    /**
     * Get the innerProductProfile property: Hybrid Compute Product Profile Update properties.
     * 
     * @return the innerProductProfile value.
     */
    private ProductProfileUpdateProperties innerProductProfile() {
        return this.innerProductProfile;
    }

    /**
     * Get the softwareAssuranceCustomer property: Specifies if this machine is licensed as part of a Software Assurance
     * agreement.
     * 
     * @return the softwareAssuranceCustomer value.
     */
    public Boolean softwareAssuranceCustomer() {
        return this.innerSoftwareAssurance() == null ? null : this.innerSoftwareAssurance().softwareAssuranceCustomer();
    }

    /**
     * Set the softwareAssuranceCustomer property: Specifies if this machine is licensed as part of a Software Assurance
     * agreement.
     * 
     * @param softwareAssuranceCustomer the softwareAssuranceCustomer value to set.
     * @return the LicenseProfileUpdateProperties object itself.
     */
    public LicenseProfileUpdateProperties withSoftwareAssuranceCustomer(Boolean softwareAssuranceCustomer) {
        if (this.innerSoftwareAssurance() == null) {
            this.innerSoftwareAssurance = new LicenseProfileUpdatePropertiesSoftwareAssurance();
        }
        this.innerSoftwareAssurance().withSoftwareAssuranceCustomer(softwareAssuranceCustomer);
        return this;
    }

    /**
     * Get the assignedLicense property: The resource id of the license.
     * 
     * @return the assignedLicense value.
     */
    public String assignedLicense() {
        return this.innerEsuProfile() == null ? null : this.innerEsuProfile().assignedLicense();
    }

    /**
     * Set the assignedLicense property: The resource id of the license.
     * 
     * @param assignedLicense the assignedLicense value to set.
     * @return the LicenseProfileUpdateProperties object itself.
     */
    public LicenseProfileUpdateProperties withAssignedLicense(String assignedLicense) {
        if (this.innerEsuProfile() == null) {
            this.innerEsuProfile = new EsuProfileUpdateProperties();
        }
        this.innerEsuProfile().withAssignedLicense(assignedLicense);
        return this;
    }

    /**
     * Get the subscriptionStatus property: Indicates the subscription status of the product.
     * 
     * @return the subscriptionStatus value.
     */
    public LicenseProfileSubscriptionStatusUpdate subscriptionStatus() {
        return this.innerProductProfile() == null ? null : this.innerProductProfile().subscriptionStatus();
    }

    /**
     * Set the subscriptionStatus property: Indicates the subscription status of the product.
     * 
     * @param subscriptionStatus the subscriptionStatus value to set.
     * @return the LicenseProfileUpdateProperties object itself.
     */
    public LicenseProfileUpdateProperties
        withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate subscriptionStatus) {
        if (this.innerProductProfile() == null) {
            this.innerProductProfile = new ProductProfileUpdateProperties();
        }
        this.innerProductProfile().withSubscriptionStatus(subscriptionStatus);
        return this;
    }

    /**
     * Get the productType property: Indicates the product type of the license.
     * 
     * @return the productType value.
     */
    public LicenseProfileProductType productType() {
        return this.innerProductProfile() == null ? null : this.innerProductProfile().productType();
    }

    /**
     * Set the productType property: Indicates the product type of the license.
     * 
     * @param productType the productType value to set.
     * @return the LicenseProfileUpdateProperties object itself.
     */
    public LicenseProfileUpdateProperties withProductType(LicenseProfileProductType productType) {
        if (this.innerProductProfile() == null) {
            this.innerProductProfile = new ProductProfileUpdateProperties();
        }
        this.innerProductProfile().withProductType(productType);
        return this;
    }

    /**
     * Get the productFeatures property: The list of product feature updates.
     * 
     * @return the productFeatures value.
     */
    public List productFeatures() {
        return this.innerProductProfile() == null ? null : this.innerProductProfile().productFeatures();
    }

    /**
     * Set the productFeatures property: The list of product feature updates.
     * 
     * @param productFeatures the productFeatures value to set.
     * @return the LicenseProfileUpdateProperties object itself.
     */
    public LicenseProfileUpdateProperties withProductFeatures(List productFeatures) {
        if (this.innerProductProfile() == null) {
            this.innerProductProfile = new ProductProfileUpdateProperties();
        }
        this.innerProductProfile().withProductFeatures(productFeatures);
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (innerSoftwareAssurance() != null) {
            innerSoftwareAssurance().validate();
        }
        if (innerEsuProfile() != null) {
            innerEsuProfile().validate();
        }
        if (innerProductProfile() != null) {
            innerProductProfile().validate();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy