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
  • Constructor Details

    • CompanySubscription

      public CompanySubscription()
      Instantiates a new CompanySubscription 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

      @Nullable public String getCommerceSubscriptionId()
      Gets the commerceSubscriptionId property value. The ID of this subscription in the commerce system. Alternate key.
      Returns:
      a String
    • getCreatedDateTime

      @Nullable public OffsetDateTime 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsTrial

      @Nullable public Boolean getIsTrial()
      Gets the isTrial property value. Whether the subscription is a free trial or purchased.
      Returns:
      a Boolean
    • getNextLifecycleDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public String getOwnerId()
      Gets the ownerId property value. The object ID of the account admin.
      Returns:
      a String
    • getOwnerTenantId

      @Nullable public 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

      @Nullable public String getOwnerType()
      Gets the ownerType property value. Indicates the entity that ownerId belongs to, for example, 'User'.
      Returns:
      a String
    • getServiceStatus

      @Nullable public List<ServicePlanInfo> getServiceStatus()
      Gets the serviceStatus property value. The provisioning status of each service included in this subscription.
      Returns:
      a List<ServicePlanInfo>
    • getSkuId

      @Nullable public String getSkuId()
      Gets the skuId property value. The object ID of the SKU associated with this subscription.
      Returns:
      a String
    • getSkuPartNumber

      @Nullable public String getSkuPartNumber()
      Gets the skuPartNumber property value. The SKU associated with this subscription.
      Returns:
      a String
    • getStatus

      @Nullable public String getStatus()
      Gets the status property value. The status of this subscription. Possible values are: Enabled, Deleted, Suspended, Warning, LockedOut.
      Returns:
      a String
    • getTotalLicenses

      @Nullable public Integer 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCommerceSubscriptionId

      public void setCommerceSubscriptionId(@Nullable String value)
      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

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setIsTrial(@Nullable Boolean value)
      Sets the isTrial property value. Whether the subscription is a free trial or purchased.
      Parameters:
      value - Value to set for the isTrial property.
    • setNextLifecycleDateTime

      public void setNextLifecycleDateTime(@Nullable OffsetDateTime value)
      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

      public void setOwnerId(@Nullable String value)
      Sets the ownerId property value. The object ID of the account admin.
      Parameters:
      value - Value to set for the ownerId property.
    • setOwnerTenantId

      public void setOwnerTenantId(@Nullable String value)
      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

      public void setOwnerType(@Nullable String value)
      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

      public void setServiceStatus(@Nullable List<ServicePlanInfo> value)
      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

      public void setSkuId(@Nullable String value)
      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

      public void setSkuPartNumber(@Nullable String value)
      Sets the skuPartNumber property value. The SKU associated with this subscription.
      Parameters:
      value - Value to set for the skuPartNumber property.
    • setStatus

      public void setStatus(@Nullable String value)
      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

      public void setTotalLicenses(@Nullable Integer value)
      Sets the totalLicenses property value. The number of licenses included in this subscription.
      Parameters:
      value - Value to set for the totalLicenses property.