Package com.microsoft.graph.models
Class CompanySubscription
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.CompanySubscription
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class CompanySubscription
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompanySubscription
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the commerceSubscriptionId property value.Gets the createdDateTime property value.The deserialization information for the current modelGets the isTrial property value.Gets the nextLifecycleDateTime property value.Gets the ownerId property value.Gets the ownerTenantId property value.Gets the ownerType property value.Gets the serviceStatus property value.getSkuId()
Gets the skuId property value.Gets the skuPartNumber property value.Gets the status property value.Gets the totalLicenses property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setCommerceSubscriptionId
(String value) Sets the commerceSubscriptionId property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setIsTrial
(Boolean value) Sets the isTrial property value.void
Sets the nextLifecycleDateTime property value.void
setOwnerId
(String value) Sets the ownerId property value.void
setOwnerTenantId
(String value) Sets the ownerTenantId property value.void
setOwnerType
(String value) Sets the ownerType property value.void
setServiceStatus
(List<ServicePlanInfo> value) Sets the serviceStatus property value.void
Sets the skuId property value.void
setSkuPartNumber
(String value) Sets the skuPartNumber property value.void
Sets the status property value.void
setTotalLicenses
(Integer value) Sets the totalLicenses property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
CompanySubscription
public CompanySubscription()Instantiates a newCompanySubscription
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static CompanySubscription createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
CompanySubscription
-
getCommerceSubscriptionId
Gets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key.- Returns:
- a
String
-
getCreatedDateTime
Gets the createdDateTime property value. The date and time when this subscription was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsTrial
Gets the isTrial property value. Whether the subscription is a free trial or purchased.- Returns:
- a
Boolean
-
getNextLifecycleDateTime
Gets the nextLifecycleDateTime property value. The date and time when the subscription will move to the next state (as defined by the status property) if not renewed by the tenant. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getOwnerId
Gets the ownerId property value. The object ID of the account admin.- Returns:
- a
String
-
getOwnerTenantId
Gets the ownerTenantId property value. The unique identifier for the Microsoft partner tenant that created the subscription on a customer tenant.- Returns:
- a
String
-
getOwnerType
Gets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'.- Returns:
- a
String
-
getServiceStatus
Gets the serviceStatus property value. The provisioning status of each service included in this subscription.- Returns:
- a
List<ServicePlanInfo>
-
getSkuId
Gets the skuId property value. The object ID of the SKU associated with this subscription.- Returns:
- a
String
-
getSkuPartNumber
Gets the skuPartNumber property value. The SKU associated with this subscription.- Returns:
- a
String
-
getStatus
Gets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut.- Returns:
- a
String
-
getTotalLicenses
Gets the totalLicenses property value. The number of licenses included in this subscription.- Returns:
- a
Integer
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setCommerceSubscriptionId
Sets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key.- Parameters:
value
- Value to set for the commerceSubscriptionId property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date and time when this subscription was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Parameters:
value
- Value to set for the createdDateTime property.
-
setIsTrial
Sets the isTrial property value. Whether the subscription is a free trial or purchased.- Parameters:
value
- Value to set for the isTrial property.
-
setNextLifecycleDateTime
Sets the nextLifecycleDateTime property value. The date and time when the subscription will move to the next state (as defined by the status property) if not renewed by the tenant. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Parameters:
value
- Value to set for the nextLifecycleDateTime property.
-
setOwnerId
Sets the ownerId property value. The object ID of the account admin.- Parameters:
value
- Value to set for the ownerId property.
-
setOwnerTenantId
Sets the ownerTenantId property value. The unique identifier for the Microsoft partner tenant that created the subscription on a customer tenant.- Parameters:
value
- Value to set for the ownerTenantId property.
-
setOwnerType
Sets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'.- Parameters:
value
- Value to set for the ownerType property.
-
setServiceStatus
Sets the serviceStatus property value. The provisioning status of each service included in this subscription.- Parameters:
value
- Value to set for the serviceStatus property.
-
setSkuId
Sets the skuId property value. The object ID of the SKU associated with this subscription.- Parameters:
value
- Value to set for the skuId property.
-
setSkuPartNumber
Sets the skuPartNumber property value. The SKU associated with this subscription.- Parameters:
value
- Value to set for the skuPartNumber property.
-
setStatus
Sets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut.- Parameters:
value
- Value to set for the status property.
-
setTotalLicenses
Sets the totalLicenses property value. The number of licenses included in this subscription.- Parameters:
value
- Value to set for the totalLicenses property.
-