com.emc.cdp.services.rest.model
Class Usage

java.lang.Object
  extended by com.emc.cdp.services.rest.model.Usage

public class Usage
extends Object

Java class for Usage complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Usage">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="resource" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="resourceTag" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="quantum" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
         <element name="channel" type="{http://cdp.emc.com/services/rest/model}Channel" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Channel> channels
           
protected  BigDecimal quantum
           
protected  String resource
           
protected  String resourceTag
           
 
Constructor Summary
Usage()
           
 
Method Summary
 List<Channel> getChannels()
          Gets the value of the channels property.
 BigDecimal getQuantum()
          Gets the value of the quantum property.
 String getResource()
          Gets the value of the resource property.
 String getResourceTag()
          Gets the value of the resourceTag property.
 void setQuantum(BigDecimal value)
          Sets the value of the quantum property.
 void setResource(String value)
          Sets the value of the resource property.
 void setResourceTag(String value)
          Sets the value of the resourceTag property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected String resource

resourceTag

protected String resourceTag

quantum

protected BigDecimal quantum

channels

protected List<Channel> channels
Constructor Detail

Usage

public Usage()
Method Detail

getResource

public String getResource()
Gets the value of the resource property.

Returns:
possible object is String

setResource

public void setResource(String value)
Sets the value of the resource property.

Parameters:
value - allowed object is String

getResourceTag

public String getResourceTag()
Gets the value of the resourceTag property.

Returns:
possible object is String

setResourceTag

public void setResourceTag(String value)
Sets the value of the resourceTag property.

Parameters:
value - allowed object is String

getQuantum

public BigDecimal getQuantum()
Gets the value of the quantum property.

Returns:
possible object is BigDecimal

setQuantum

public void setQuantum(BigDecimal value)
Sets the value of the quantum property.

Parameters:
value - allowed object is BigDecimal

getChannels

public List<Channel> getChannels()
Gets the value of the channels property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the channels property.

For example, to add a new item, do as follows:

    getChannels().add(newItem);
 

Objects of the following type(s) are allowed in the list Channel



Copyright © 2014. All Rights Reserved.