|
|||||||
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 | |
---|---|
Integer |
getCapacity()
The number of licenses available. |
Date |
getEarliestAllowedDeactivationTime()
The earliest allowed time at which a license can be deactivated. |
Integer |
getInstanceCapacity()
The number of Amazon EC2 instances that can be supported with the license's capacity. |
String |
getState()
The state of this license capacity, indicating whether the license is actively being used or not. |
void |
setCapacity(Integer capacity)
The number of licenses available. |
void |
setEarliestAllowedDeactivationTime(Date earliestAllowedDeactivationTime)
The earliest allowed time at which a license can be deactivated. |
void |
setInstanceCapacity(Integer instanceCapacity)
The number of Amazon EC2 instances that can be supported with the license's capacity. |
void |
setState(String state)
The state of this license capacity, indicating whether the license is actively being used or not. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
LicenseCapacity |
withCapacity(Integer capacity)
The number of licenses available. |
LicenseCapacity |
withEarliestAllowedDeactivationTime(Date earliestAllowedDeactivationTime)
The earliest allowed time at which a license can be deactivated. |
LicenseCapacity |
withInstanceCapacity(Integer instanceCapacity)
The number of Amazon EC2 instances that can be supported with the license's capacity. |
LicenseCapacity |
withState(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 Integer getCapacity()
public void setCapacity(Integer capacity)
capacity
- The number of licenses available.public LicenseCapacity withCapacity(Integer capacity)
Returns a reference to this object so that method calls can be chained together.
capacity
- The number of licenses available.
public Integer getInstanceCapacity()
public void setInstanceCapacity(Integer instanceCapacity)
instanceCapacity
- The number of Amazon EC2 instances that can be supported with the
license's capacity.public LicenseCapacity withInstanceCapacity(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 String getState()
public void setState(String state)
state
- The state of this license capacity, indicating whether the license is
actively being used or not.public LicenseCapacity withState(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 Date getEarliestAllowedDeactivationTime()
public void setEarliestAllowedDeactivationTime(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(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 String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |