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

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

public class Subscription
extends Object

Java class for Subscription complex type.

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

 <complexType name="Subscription">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="serviceId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="effectiveDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
         <element name="state" type="{http://cdp.emc.com/services/rest/model}subscriptionState" minOccurs="0"/>
         <element name="agreementUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="attribute" type="{http://cdp.emc.com/services/rest/model}Attribute" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String agreementUrl
           
protected  List<Attribute> attributes
           
protected  XMLGregorianCalendar effectiveDate
           
protected  String id
           
protected  String serviceId
           
protected  SubscriptionState state
           
 
Constructor Summary
Subscription()
           
 
Method Summary
 String getAgreementUrl()
          Gets the value of the agreementUrl property.
 List<Attribute> getAttributes()
          Gets the value of the attributes property.
 XMLGregorianCalendar getEffectiveDate()
          Gets the value of the effectiveDate property.
 String getId()
          Gets the value of the id property.
 String getServiceId()
          Gets the value of the serviceId property.
 SubscriptionState getState()
          Gets the value of the state property.
 void setAgreementUrl(String value)
          Sets the value of the agreementUrl property.
 void setEffectiveDate(XMLGregorianCalendar value)
          Sets the value of the effectiveDate property.
 void setId(String value)
          Sets the value of the id property.
 void setServiceId(String value)
          Sets the value of the serviceId property.
 void setState(SubscriptionState value)
          Sets the value of the state property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

serviceId

protected String serviceId

effectiveDate

protected XMLGregorianCalendar effectiveDate

state

protected SubscriptionState state

agreementUrl

protected String agreementUrl

attributes

protected List<Attribute> attributes
Constructor Detail

Subscription

public Subscription()
Method Detail

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getServiceId

public String getServiceId()
Gets the value of the serviceId property.

Returns:
possible object is String

setServiceId

public void setServiceId(String value)
Sets the value of the serviceId property.

Parameters:
value - allowed object is String

getEffectiveDate

public XMLGregorianCalendar getEffectiveDate()
Gets the value of the effectiveDate property.

Returns:
possible object is XMLGregorianCalendar

setEffectiveDate

public void setEffectiveDate(XMLGregorianCalendar value)
Sets the value of the effectiveDate property.

Parameters:
value - allowed object is XMLGregorianCalendar

getState

public SubscriptionState getState()
Gets the value of the state property.

Returns:
possible object is SubscriptionState

setState

public void setState(SubscriptionState value)
Sets the value of the state property.

Parameters:
value - allowed object is SubscriptionState

getAgreementUrl

public String getAgreementUrl()
Gets the value of the agreementUrl property.

Returns:
possible object is String

setAgreementUrl

public void setAgreementUrl(String value)
Sets the value of the agreementUrl property.

Parameters:
value - allowed object is String

getAttributes

public List<Attribute> getAttributes()
Gets the value of the attributes 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 attributes property.

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

    getAttributes().add(newItem);
 

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



Copyright © 2014. All Rights Reserved.