|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.LicenseCapacity
public class LicenseCapacity
Represents the capacity that a license is able to support.
Constructor Summary | |
---|---|
LicenseCapacity()
|
Method Summary | |
---|---|
java.lang.Integer |
getCapacity()
The number of licenses available. |
java.util.Date |
getEarliestAllowedDeactivationTime()
The earliest allowed time at which a license can be deactivated. |
java.lang.Integer |
getInstanceCapacity()
The number of Amazon EC2 instances that can be supported with the license's capacity. |
java.lang.String |
getState()
The state of this license capacity, indicating whether the license is actively being used or not. |
void |
setCapacity(java.lang.Integer capacity)
The number of licenses available. |
void |
setEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)
The earliest allowed time at which a license can be deactivated. |
void |
setInstanceCapacity(java.lang.Integer instanceCapacity)
The number of Amazon EC2 instances that can be supported with the license's capacity. |
void |
setState(java.lang.String state)
The state of this license capacity, indicating whether the license is actively being used or not. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
LicenseCapacity |
withCapacity(java.lang.Integer capacity)
The number of licenses available. |
LicenseCapacity |
withEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)
The earliest allowed time at which a license can be deactivated. |
LicenseCapacity |
withInstanceCapacity(java.lang.Integer instanceCapacity)
The number of Amazon EC2 instances that can be supported with the license's capacity. |
LicenseCapacity |
withState(java.lang.String state)
The state of this license capacity, indicating whether the license is actively being used or not. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LicenseCapacity()
Method Detail |
---|
public java.lang.Integer getCapacity()
public void setCapacity(java.lang.Integer capacity)
capacity
- The number of licenses available.public LicenseCapacity withCapacity(java.lang.Integer capacity)
Returns a reference to this object so that method calls can be chained together.
capacity
- The number of licenses available.
public java.lang.Integer getInstanceCapacity()
public void setInstanceCapacity(java.lang.Integer instanceCapacity)
instanceCapacity
- The number of Amazon EC2 instances that can be supported with the
license's capacity.public LicenseCapacity withInstanceCapacity(java.lang.Integer instanceCapacity)
Returns a reference to this object so that method calls can be chained together.
instanceCapacity
- The number of Amazon EC2 instances that can be supported with the
license's capacity.
public java.lang.String getState()
public void setState(java.lang.String state)
state
- The state of this license capacity, indicating whether the license is
actively being used or not.public LicenseCapacity withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
state
- The state of this license capacity, indicating whether the license is
actively being used or not.
public java.util.Date getEarliestAllowedDeactivationTime()
public void setEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)
earliestAllowedDeactivationTime
- The earliest allowed time at which a license can be deactivated. Some
licenses have time restrictions on when they can be activated and
reactivated.public LicenseCapacity withEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime)
Returns a reference to this object so that method calls can be chained together.
earliestAllowedDeactivationTime
- The earliest allowed time at which a license can be deactivated. Some
licenses have time restrictions on when they can be activated and
reactivated.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |