public class LicenseCapacity extends Object implements Serializable
Represents the capacity that a license is able to support.
Constructor and Description |
---|
LicenseCapacity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
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.
|
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.