public final class LicenseOffer
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
LicenseOffer.Builder
Builder class for
LicenseOffer . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
PRICING_METRICS_TYPE_CORE |
static java.lang.String |
PRICING_METRICS_TYPE_DATA_STORAGE |
static java.lang.String |
PRICING_METRICS_TYPE_IP_ADDRESS |
static java.lang.String |
PRICING_METRICS_TYPE_SERVICE_CORE |
static java.lang.String |
STATUS_ACTIVE |
static java.lang.String |
STATUS_CANCELLED |
static java.lang.String |
STATUS_CREATED |
static java.lang.String |
STATUS_EXPIRED |
static java.lang.String |
STATUS_PENDING_EXPIRY |
static java.lang.String |
STATUS_SUSPENDED |
static java.lang.String |
STATUS_TERMINATED |
Modifier | Constructor and Description |
---|---|
|
LicenseOffer()
Default constructor.
|
protected |
LicenseOffer(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static LicenseOffer |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static LicenseOffer |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCapacity()
The capacity of the offer.
|
java.lang.String |
getChargeId()
The charge ID of the offer.
|
java.util.List<java.lang.String> |
getEnabledFeatures()
The property is used to identify the enabled features for the offer.
|
java.lang.Long |
getGracePeriod()
When the offer end time comes or the offer is terminated, the services will
still be kept for the grace period.
|
java.lang.Boolean |
getIsFreeTrial()
The property is used to identify whether the offer is for free trial.
|
java.lang.Long |
getOfferEndTime()
Subscription offer end time.
|
java.lang.String |
getOfferName()
Subscription offer name.
|
java.lang.Long |
getOfferStartTime()
Subscription offer start time.
|
java.lang.String |
getPricingMetricsType()
Possible values are:
PRICING_METRICS_TYPE_CORE PRICING_METRICS_TYPE_SERVICE_CORE
PRICING_METRICS_TYPE_IP_ADDRESS
PRICING_METRICS_TYPE_DATA_STORAGE
Pricing metrics type is used for usage reporting. |
java.lang.String |
getStatus()
Possible values are:
STATUS_CREATED STATUS_ACTIVE STATUS_SUSPENDED STATUS_CANCELLED STATUS_TERMINATED STATUS_PENDING_EXPIRY STATUS_EXPIRED Subscription status
for the offer. |
java.lang.String |
getSubscriptionId()
The subscription ID of the offer.
|
int |
hashCode() |
void |
setCapacity(java.lang.Long capacity)
The capacity of the offer.
|
void |
setChargeId(java.lang.String chargeId)
The charge ID of the offer.
|
void |
setEnabledFeatures(java.util.List<java.lang.String> enabledFeatures)
The property is used to identify the enabled features for the offer.
|
void |
setGracePeriod(java.lang.Long gracePeriod)
When the offer end time comes or the offer is terminated, the services will
still be kept for the grace period.
|
void |
setIsFreeTrial(java.lang.Boolean isFreeTrial)
The property is used to identify whether the offer is for free trial.
|
void |
setOfferEndTime(java.lang.Long offerEndTime)
Subscription offer end time.
|
void |
setOfferName(java.lang.String offerName)
Subscription offer name.
|
void |
setOfferStartTime(java.lang.Long offerStartTime)
Subscription offer start time.
|
void |
setPricingMetricsType(java.lang.String pricingMetricsType)
Possible values are:
PRICING_METRICS_TYPE_CORE PRICING_METRICS_TYPE_SERVICE_CORE
PRICING_METRICS_TYPE_IP_ADDRESS
PRICING_METRICS_TYPE_DATA_STORAGE
Pricing metrics type is used for usage reporting. |
void |
setStatus(java.lang.String status)
Possible values are:
STATUS_CREATED STATUS_ACTIVE STATUS_SUSPENDED STATUS_CANCELLED STATUS_TERMINATED STATUS_PENDING_EXPIRY STATUS_EXPIRED Subscription status
for the offer. |
void |
setSubscriptionId(java.lang.String subscriptionId)
The subscription ID of the offer.
|
java.lang.String |
toString() |
public static final java.lang.String PRICING_METRICS_TYPE_CORE
public static final java.lang.String PRICING_METRICS_TYPE_SERVICE_CORE
public static final java.lang.String PRICING_METRICS_TYPE_IP_ADDRESS
public static final java.lang.String PRICING_METRICS_TYPE_DATA_STORAGE
public static final java.lang.String STATUS_CREATED
public static final java.lang.String STATUS_ACTIVE
public static final java.lang.String STATUS_SUSPENDED
public static final java.lang.String STATUS_CANCELLED
public static final java.lang.String STATUS_TERMINATED
public static final java.lang.String STATUS_PENDING_EXPIRY
public static final java.lang.String STATUS_EXPIRED
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public LicenseOffer()
protected LicenseOffer(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.Long getCapacity()
public void setCapacity(java.lang.Long capacity)
capacity
- New value for the property.public java.lang.String getChargeId()
public void setChargeId(java.lang.String chargeId)
chargeId
- New value for the property.public java.util.List<java.lang.String> getEnabledFeatures()
public void setEnabledFeatures(java.util.List<java.lang.String> enabledFeatures)
enabledFeatures
- New value for the property.public java.lang.Long getGracePeriod()
public void setGracePeriod(java.lang.Long gracePeriod)
gracePeriod
- New value for the property.public java.lang.Boolean getIsFreeTrial()
public void setIsFreeTrial(java.lang.Boolean isFreeTrial)
isFreeTrial
- New value for the property.public java.lang.Long getOfferEndTime()
public void setOfferEndTime(java.lang.Long offerEndTime)
offerEndTime
- New value for the property.public java.lang.String getOfferName()
public void setOfferName(java.lang.String offerName)
offerName
- New value for the property.public java.lang.Long getOfferStartTime()
public void setOfferStartTime(java.lang.Long offerStartTime)
offerStartTime
- New value for the property.public java.lang.String getPricingMetricsType()
public void setPricingMetricsType(java.lang.String pricingMetricsType)
pricingMetricsType
- New value for the property.public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- New value for the property.public java.lang.String getSubscriptionId()
public void setSubscriptionId(java.lang.String subscriptionId)
subscriptionId
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static LicenseOffer _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static LicenseOffer _newInstance2(com.vmware.vapi.data.StructValue structValue)