com.azure.resourcemanager.hybridcompute.fluent.models.LicenseProfileArmProductProfileProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-hybridcompute Show documentation
Show all versions of azure-resourcemanager-hybridcompute Show documentation
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.
// 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.LicenseProfileSubscriptionStatus;
import com.azure.resourcemanager.hybridcompute.models.ProductFeature;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
/**
* Describes the properties of a Product License Profile ARM model.
*/
@Fluent
public final class LicenseProfileArmProductProfileProperties {
/*
* Indicates the subscription status of the product.
*/
@JsonProperty(value = "subscriptionStatus")
private LicenseProfileSubscriptionStatus subscriptionStatus;
/*
* Indicates the product type of the license.
*/
@JsonProperty(value = "productType")
private LicenseProfileProductType productType;
/*
* The timestamp in UTC when the billing starts.
*/
@JsonProperty(value = "billingStartDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime billingStartDate;
/*
* The timestamp in UTC when the user enrolls the feature.
*/
@JsonProperty(value = "enrollmentDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime enrollmentDate;
/*
* The timestamp in UTC when the user disenrolled the feature.
*/
@JsonProperty(value = "disenrollmentDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime disenrollmentDate;
/*
* The list of product features.
*/
@JsonProperty(value = "productFeatures")
private List productFeatures;
/**
* Creates an instance of LicenseProfileArmProductProfileProperties class.
*/
public LicenseProfileArmProductProfileProperties() {
}
/**
* Get the subscriptionStatus property: Indicates the subscription status of the product.
*
* @return the subscriptionStatus value.
*/
public LicenseProfileSubscriptionStatus subscriptionStatus() {
return this.subscriptionStatus;
}
/**
* Set the subscriptionStatus property: Indicates the subscription status of the product.
*
* @param subscriptionStatus the subscriptionStatus value to set.
* @return the LicenseProfileArmProductProfileProperties object itself.
*/
public LicenseProfileArmProductProfileProperties
withSubscriptionStatus(LicenseProfileSubscriptionStatus subscriptionStatus) {
this.subscriptionStatus = subscriptionStatus;
return this;
}
/**
* Get the productType property: Indicates the product type of the license.
*
* @return the productType value.
*/
public LicenseProfileProductType productType() {
return this.productType;
}
/**
* Set the productType property: Indicates the product type of the license.
*
* @param productType the productType value to set.
* @return the LicenseProfileArmProductProfileProperties object itself.
*/
public LicenseProfileArmProductProfileProperties withProductType(LicenseProfileProductType productType) {
this.productType = productType;
return this;
}
/**
* Get the billingStartDate property: The timestamp in UTC when the billing starts.
*
* @return the billingStartDate value.
*/
public OffsetDateTime billingStartDate() {
return this.billingStartDate;
}
/**
* Get the enrollmentDate property: The timestamp in UTC when the user enrolls the feature.
*
* @return the enrollmentDate value.
*/
public OffsetDateTime enrollmentDate() {
return this.enrollmentDate;
}
/**
* Get the disenrollmentDate property: The timestamp in UTC when the user disenrolled the feature.
*
* @return the disenrollmentDate value.
*/
public OffsetDateTime disenrollmentDate() {
return this.disenrollmentDate;
}
/**
* Get the productFeatures property: The list of product features.
*
* @return the productFeatures value.
*/
public List productFeatures() {
return this.productFeatures;
}
/**
* Set the productFeatures property: The list of product features.
*
* @param productFeatures the productFeatures value to set.
* @return the LicenseProfileArmProductProfileProperties object itself.
*/
public LicenseProfileArmProductProfileProperties withProductFeatures(List productFeatures) {
this.productFeatures = productFeatures;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (productFeatures() != null) {
productFeatures().forEach(e -> e.validate());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy