Class InstanceUsage

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class InstanceUsage
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    The aggregated usage and charges for an instance.
    • Method Detail

      • getAccountId

        public java.lang.String getAccountId()
        Gets the accountId. The ID of the account.
        Returns:
        the accountId
      • getResourceInstanceId

        public java.lang.String getResourceInstanceId()
        Gets the resourceInstanceId. The ID of the resource instance.
        Returns:
        the resourceInstanceId
      • getResourceInstanceName

        public java.lang.String getResourceInstanceName()
        Gets the resourceInstanceName. The name of the resource instance.
        Returns:
        the resourceInstanceName
      • getResourceId

        public java.lang.String getResourceId()
        Gets the resourceId. The ID of the resource.
        Returns:
        the resourceId
      • getCatalogId

        public java.lang.String getCatalogId()
        Gets the catalogId. The catalog ID of the resource.
        Returns:
        the catalogId
      • getResourceName

        public java.lang.String getResourceName()
        Gets the resourceName. The name of the resource.
        Returns:
        the resourceName
      • getResourceGroupId

        public java.lang.String getResourceGroupId()
        Gets the resourceGroupId. The ID of the resource group.
        Returns:
        the resourceGroupId
      • getResourceGroupName

        public java.lang.String getResourceGroupName()
        Gets the resourceGroupName. The name of the resource group.
        Returns:
        the resourceGroupName
      • getOrganizationId

        public java.lang.String getOrganizationId()
        Gets the organizationId. The ID of the organization.
        Returns:
        the organizationId
      • getOrganizationName

        public java.lang.String getOrganizationName()
        Gets the organizationName. The name of the organization.
        Returns:
        the organizationName
      • getSpaceId

        public java.lang.String getSpaceId()
        Gets the spaceId. The ID of the space.
        Returns:
        the spaceId
      • getSpaceName

        public java.lang.String getSpaceName()
        Gets the spaceName. The name of the space.
        Returns:
        the spaceName
      • getConsumerId

        public java.lang.String getConsumerId()
        Gets the consumerId. The ID of the consumer.
        Returns:
        the consumerId
      • getRegion

        public java.lang.String getRegion()
        Gets the region. The region where instance was provisioned.
        Returns:
        the region
      • getPricingRegion

        public java.lang.String getPricingRegion()
        Gets the pricingRegion. The pricing region where the usage that was submitted was rated.
        Returns:
        the pricingRegion
      • getPricingCountry

        public java.lang.String getPricingCountry()
        Gets the pricingCountry. The target country pricing that should be used.
        Returns:
        the pricingCountry
      • getCurrencyCode

        public java.lang.String getCurrencyCode()
        Gets the currencyCode. The currency for the cost fields in the resources, plans and metrics.
        Returns:
        the currencyCode
      • isBillable

        public java.lang.Boolean isBillable()
        Gets the billable. Is the cost charged to the account.
        Returns:
        the billable
      • getParentResourceInstanceId

        public java.lang.String getParentResourceInstanceId()
        Gets the parentResourceInstanceId. The resource instance id of the parent resource associated with this instance.
        Returns:
        the parentResourceInstanceId
      • getPlanId

        public java.lang.String getPlanId()
        Gets the planId. The ID of the plan where the instance was provisioned and rated.
        Returns:
        the planId
      • getPlanName

        public java.lang.String getPlanName()
        Gets the planName. The name of the plan where the instance was provisioned and rated.
        Returns:
        the planName
      • getPricingPlanId

        public java.lang.String getPricingPlanId()
        Gets the pricingPlanId. The ID of the pricing plan used to rate the usage.
        Returns:
        the pricingPlanId
      • getSubscriptionId

        public java.lang.String getSubscriptionId()
        Gets the subscriptionId. The ID of service subscription with effective from timestamp.
        Returns:
        the subscriptionId
      • getCreatedAt

        public java.util.Date getCreatedAt()
        Gets the createdAt. The timestamp in RFC 3339 string format at which instance is created.
        Returns:
        the createdAt
      • getDeletedAt

        public java.util.Date getDeletedAt()
        Gets the deletedAt. The timestamp in RFC 3339 string format at which instance is deleted.
        Returns:
        the deletedAt
      • getMonth

        public java.lang.String getMonth()
        Gets the month. The month.
        Returns:
        the month
      • getUsage

        public java.util.List<Metric> getUsage()
        Gets the usage. All the resource used in the account.
        Returns:
        the usage
      • isPending

        public java.lang.Boolean isPending()
        Gets the pending. Pending charge from classic infrastructure.
        Returns:
        the pending
      • getCurrencyRate

        public java.lang.Double getCurrencyRate()
        Gets the currencyRate. The value of the account's currency in USD.
        Returns:
        the currencyRate
      • getTags

        public java.util.List<java.lang.Object> getTags()
        Gets the tags. The user tags associated with a resource instance.
        Returns:
        the tags
      • getServiceTags

        public java.util.List<java.lang.Object> getServiceTags()
        Gets the serviceTags. The service tags associated with a resource instance.
        Returns:
        the serviceTags