Class ConsumptionSummary
java.lang.Object
de.hybris.platform.tuawebservicesresources.v2.dto.ConsumptionSummary
The consumption counters (called ConsumptionSummary in the SID model) detail for example the different kind of consumption done on the bucket.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionatBaseType(String atBaseType) atSchemaLocation(String atSchemaLocation) consumptionPeriod(TimePeriod consumptionPeriod) counterType(String counterType) booleanWhen sub-classing, this defines the super-classA URI to a JSON-Schema file that defines additional attributes and relationshipsWhen sub-classing, this defines the sub-class entity name@Valid TimePeriodGet consumptionPeriodType of the consumption counter.getLevel()Counter level.@Valid NetworkProductRefGet product@Valid RelatedPartygetUser()Get user@Valid QuantitygetValue()Get valueValue of the counter in a formatted string used for display needs for exampleinthashCode()product(NetworkProductRef product) voidsetAtBaseType(String atBaseType) voidsetAtSchemaLocation(String atSchemaLocation) voidvoidsetConsumptionPeriod(TimePeriod consumptionPeriod) voidsetCounterType(String counterType) voidvoidsetProduct(NetworkProductRef product) voidsetUser(RelatedParty user) voidvoidsetValueName(String valueName) toString()user(RelatedParty user)
-
Constructor Details
-
ConsumptionSummary
public ConsumptionSummary()
-
-
Method Details
-
counterType
-
getCounterType
Type of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example)- Returns:
- counterType
-
setCounterType
-
level
-
getLevel
Counter level. The counter can be given globally for the bucket or detailed by user or by network product for example in case of shared bucket- Returns:
- level
-
setLevel
-
valueName
-
getValueName
Value of the counter in a formatted string used for display needs for example- Returns:
- valueName
-
setValueName
-
consumptionPeriod
-
getConsumptionPeriod
Get consumptionPeriod- Returns:
- consumptionPeriod
-
setConsumptionPeriod
-
product
-
getProduct
Get product- Returns:
- product
-
setProduct
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
value
-
getValue
Get value- Returns:
- value
-
setValue
-
atBaseType
-
getAtBaseType
When sub-classing, this defines the super-class- Returns:
- atBaseType
-
setAtBaseType
-
atSchemaLocation
-
getAtSchemaLocation
A URI to a JSON-Schema file that defines additional attributes and relationships- Returns:
- atSchemaLocation
-
setAtSchemaLocation
-
atType
-
getAtType
When sub-classing, this defines the sub-class entity name- Returns:
- atType
-
setAtType
-
equals
-
hashCode
public int hashCode() -
toString
-