All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ec2.model.LicenseCapacity Maven / Gradle / Ivy

/*
 * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 * 
 *  http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.ec2.model;

/**
 * 

* Represents the capacity that a license is able to support. *

*/ public class LicenseCapacity { /** * The number of licenses available. */ private Integer capacity; /** * The number of Amazon EC2 instances that can be supported with the * license's capacity. */ private Integer instanceCapacity; /** * The state of this license capacity, indicating whether the license is * actively being used or not. */ private String state; /** * The earliest allowed time at which a license can be deactivated. Some * licenses have time restrictions on when they can be activated and * reactivated. */ private java.util.Date earliestAllowedDeactivationTime; /** * The number of licenses available. * * @return The number of licenses available. */ public Integer getCapacity() { return capacity; } /** * The number of licenses available. * * @param capacity The number of licenses available. */ public void setCapacity(Integer capacity) { this.capacity = capacity; } /** * The number of licenses available. *

* Returns a reference to this object so that method calls can be chained together. * * @param capacity The number of licenses available. * * @return A reference to this updated object so that method calls can be chained * together. */ public LicenseCapacity withCapacity(Integer capacity) { this.capacity = capacity; return this; } /** * The number of Amazon EC2 instances that can be supported with the * license's capacity. * * @return The number of Amazon EC2 instances that can be supported with the * license's capacity. */ public Integer getInstanceCapacity() { return instanceCapacity; } /** * The number of Amazon EC2 instances that can be supported with the * license's capacity. * * @param instanceCapacity The number of Amazon EC2 instances that can be supported with the * license's capacity. */ public void setInstanceCapacity(Integer instanceCapacity) { this.instanceCapacity = instanceCapacity; } /** * The number of Amazon EC2 instances that can be supported with the * license's capacity. *

* Returns a reference to this object so that method calls can be chained together. * * @param instanceCapacity The number of Amazon EC2 instances that can be supported with the * license's capacity. * * @return A reference to this updated object so that method calls can be chained * together. */ public LicenseCapacity withInstanceCapacity(Integer instanceCapacity) { this.instanceCapacity = instanceCapacity; return this; } /** * The state of this license capacity, indicating whether the license is * actively being used or not. * * @return The state of this license capacity, indicating whether the license is * actively being used or not. */ public String getState() { return state; } /** * The state of this license capacity, indicating whether the license is * actively being used or not. * * @param state The state of this license capacity, indicating whether the license is * actively being used or not. */ public void setState(String state) { this.state = state; } /** * The state of this license capacity, indicating whether the license is * actively being used or not. *

* Returns a reference to this object so that method calls can be chained together. * * @param state The state of this license capacity, indicating whether the license is * actively being used or not. * * @return A reference to this updated object so that method calls can be chained * together. */ public LicenseCapacity withState(String state) { this.state = state; return this; } /** * The earliest allowed time at which a license can be deactivated. Some * licenses have time restrictions on when they can be activated and * reactivated. * * @return 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.util.Date getEarliestAllowedDeactivationTime() { return 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. * * @param 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 void setEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime) { this.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. *

* Returns a reference to this object so that method calls can be chained together. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public LicenseCapacity withEarliestAllowedDeactivationTime(java.util.Date earliestAllowedDeactivationTime) { this.earliestAllowedDeactivationTime = earliestAllowedDeactivationTime; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("Capacity: " + capacity + ", "); sb.append("InstanceCapacity: " + instanceCapacity + ", "); sb.append("State: " + state + ", "); sb.append("EarliestAllowedDeactivationTime: " + earliestAllowedDeactivationTime + ", "); sb.append("}"); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy