
com.amazonaws.services.lightsail.model.Bundle Maven / Gradle / Ivy
/*
* Copyright 2018-2023 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.lightsail.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes a bundle, which is a set of specs describing your virtual private server (or instance).
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Bundle implements Serializable, Cloneable, StructuredPojo {
/**
*
* The price in US dollars (e.g., 5.0
) of the bundle.
*
*/
private Float price;
/**
*
* The number of vCPUs included in the bundle (e.g., 2
).
*
*/
private Integer cpuCount;
/**
*
* The size of the SSD (e.g., 30
).
*
*/
private Integer diskSizeInGb;
/**
*
* The bundle ID (e.g., micro_1_0
).
*
*/
private String bundleId;
/**
*
* The Amazon EC2 instance type (e.g., t2.micro
).
*
*/
private String instanceType;
/**
*
* A Boolean value indicating whether the bundle is active.
*
*/
private Boolean isActive;
/**
*
* A friendly name for the bundle (e.g., Micro
).
*
*/
private String name;
/**
*
* A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
* value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
* bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
* blueprint with a minimum power value of 500.
*
*/
private Integer power;
/**
*
* The amount of RAM in GB (e.g., 2.0
).
*
*/
private Float ramSizeInGb;
/**
*
* The data transfer rate per month in GB (e.g., 2000
).
*
*/
private Integer transferPerMonthInGb;
/**
*
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
* launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
*
*/
private java.util.List supportedPlatforms;
/**
*
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
*
*
* This parameter only applies to Lightsail for Research resources.
*
*
*/
private java.util.List supportedAppCategories;
/**
*
* The price in US dollars (e.g., 5.0
) of the bundle.
*
*
* @param price
* The price in US dollars (e.g., 5.0
) of the bundle.
*/
public void setPrice(Float price) {
this.price = price;
}
/**
*
* The price in US dollars (e.g., 5.0
) of the bundle.
*
*
* @return The price in US dollars (e.g., 5.0
) of the bundle.
*/
public Float getPrice() {
return this.price;
}
/**
*
* The price in US dollars (e.g., 5.0
) of the bundle.
*
*
* @param price
* The price in US dollars (e.g., 5.0
) of the bundle.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withPrice(Float price) {
setPrice(price);
return this;
}
/**
*
* The number of vCPUs included in the bundle (e.g., 2
).
*
*
* @param cpuCount
* The number of vCPUs included in the bundle (e.g., 2
).
*/
public void setCpuCount(Integer cpuCount) {
this.cpuCount = cpuCount;
}
/**
*
* The number of vCPUs included in the bundle (e.g., 2
).
*
*
* @return The number of vCPUs included in the bundle (e.g., 2
).
*/
public Integer getCpuCount() {
return this.cpuCount;
}
/**
*
* The number of vCPUs included in the bundle (e.g., 2
).
*
*
* @param cpuCount
* The number of vCPUs included in the bundle (e.g., 2
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withCpuCount(Integer cpuCount) {
setCpuCount(cpuCount);
return this;
}
/**
*
* The size of the SSD (e.g., 30
).
*
*
* @param diskSizeInGb
* The size of the SSD (e.g., 30
).
*/
public void setDiskSizeInGb(Integer diskSizeInGb) {
this.diskSizeInGb = diskSizeInGb;
}
/**
*
* The size of the SSD (e.g., 30
).
*
*
* @return The size of the SSD (e.g., 30
).
*/
public Integer getDiskSizeInGb() {
return this.diskSizeInGb;
}
/**
*
* The size of the SSD (e.g., 30
).
*
*
* @param diskSizeInGb
* The size of the SSD (e.g., 30
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withDiskSizeInGb(Integer diskSizeInGb) {
setDiskSizeInGb(diskSizeInGb);
return this;
}
/**
*
* The bundle ID (e.g., micro_1_0
).
*
*
* @param bundleId
* The bundle ID (e.g., micro_1_0
).
*/
public void setBundleId(String bundleId) {
this.bundleId = bundleId;
}
/**
*
* The bundle ID (e.g., micro_1_0
).
*
*
* @return The bundle ID (e.g., micro_1_0
).
*/
public String getBundleId() {
return this.bundleId;
}
/**
*
* The bundle ID (e.g., micro_1_0
).
*
*
* @param bundleId
* The bundle ID (e.g., micro_1_0
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withBundleId(String bundleId) {
setBundleId(bundleId);
return this;
}
/**
*
* The Amazon EC2 instance type (e.g., t2.micro
).
*
*
* @param instanceType
* The Amazon EC2 instance type (e.g., t2.micro
).
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
*
* The Amazon EC2 instance type (e.g., t2.micro
).
*
*
* @return The Amazon EC2 instance type (e.g., t2.micro
).
*/
public String getInstanceType() {
return this.instanceType;
}
/**
*
* The Amazon EC2 instance type (e.g., t2.micro
).
*
*
* @param instanceType
* The Amazon EC2 instance type (e.g., t2.micro
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withInstanceType(String instanceType) {
setInstanceType(instanceType);
return this;
}
/**
*
* A Boolean value indicating whether the bundle is active.
*
*
* @param isActive
* A Boolean value indicating whether the bundle is active.
*/
public void setIsActive(Boolean isActive) {
this.isActive = isActive;
}
/**
*
* A Boolean value indicating whether the bundle is active.
*
*
* @return A Boolean value indicating whether the bundle is active.
*/
public Boolean getIsActive() {
return this.isActive;
}
/**
*
* A Boolean value indicating whether the bundle is active.
*
*
* @param isActive
* A Boolean value indicating whether the bundle is active.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withIsActive(Boolean isActive) {
setIsActive(isActive);
return this;
}
/**
*
* A Boolean value indicating whether the bundle is active.
*
*
* @return A Boolean value indicating whether the bundle is active.
*/
public Boolean isActive() {
return this.isActive;
}
/**
*
* A friendly name for the bundle (e.g., Micro
).
*
*
* @param name
* A friendly name for the bundle (e.g., Micro
).
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A friendly name for the bundle (e.g., Micro
).
*
*
* @return A friendly name for the bundle (e.g., Micro
).
*/
public String getName() {
return this.name;
}
/**
*
* A friendly name for the bundle (e.g., Micro
).
*
*
* @param name
* A friendly name for the bundle (e.g., Micro
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withName(String name) {
setName(name);
return this;
}
/**
*
* A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
* value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
* bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
* blueprint with a minimum power value of 500.
*
*
* @param power
* A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's
* power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will
* run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance
* that uses a blueprint with a minimum power value of 500.
*/
public void setPower(Integer power) {
this.power = power;
}
/**
*
* A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
* value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
* bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
* blueprint with a minimum power value of 500.
*
*
* @return A numeric value that represents the power of the bundle (e.g., 500
). You can use the
* bundle's power value in conjunction with a blueprint's minimum power value to determine whether the
* blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to
* create an instance that uses a blueprint with a minimum power value of 500.
*/
public Integer getPower() {
return this.power;
}
/**
*
* A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
* value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
* bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
* blueprint with a minimum power value of 500.
*
*
* @param power
* A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's
* power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will
* run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance
* that uses a blueprint with a minimum power value of 500.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withPower(Integer power) {
setPower(power);
return this;
}
/**
*
* The amount of RAM in GB (e.g., 2.0
).
*
*
* @param ramSizeInGb
* The amount of RAM in GB (e.g., 2.0
).
*/
public void setRamSizeInGb(Float ramSizeInGb) {
this.ramSizeInGb = ramSizeInGb;
}
/**
*
* The amount of RAM in GB (e.g., 2.0
).
*
*
* @return The amount of RAM in GB (e.g., 2.0
).
*/
public Float getRamSizeInGb() {
return this.ramSizeInGb;
}
/**
*
* The amount of RAM in GB (e.g., 2.0
).
*
*
* @param ramSizeInGb
* The amount of RAM in GB (e.g., 2.0
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withRamSizeInGb(Float ramSizeInGb) {
setRamSizeInGb(ramSizeInGb);
return this;
}
/**
*
* The data transfer rate per month in GB (e.g., 2000
).
*
*
* @param transferPerMonthInGb
* The data transfer rate per month in GB (e.g., 2000
).
*/
public void setTransferPerMonthInGb(Integer transferPerMonthInGb) {
this.transferPerMonthInGb = transferPerMonthInGb;
}
/**
*
* The data transfer rate per month in GB (e.g., 2000
).
*
*
* @return The data transfer rate per month in GB (e.g., 2000
).
*/
public Integer getTransferPerMonthInGb() {
return this.transferPerMonthInGb;
}
/**
*
* The data transfer rate per month in GB (e.g., 2000
).
*
*
* @param transferPerMonthInGb
* The data transfer rate per month in GB (e.g., 2000
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Bundle withTransferPerMonthInGb(Integer transferPerMonthInGb) {
setTransferPerMonthInGb(transferPerMonthInGb);
return this;
}
/**
*
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
* launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
*
*
* @return The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You
* can only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
* platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
* @see InstancePlatform
*/
public java.util.List getSupportedPlatforms() {
return supportedPlatforms;
}
/**
*
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
* launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
*
*
* @param supportedPlatforms
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
* only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
* @see InstancePlatform
*/
public void setSupportedPlatforms(java.util.Collection supportedPlatforms) {
if (supportedPlatforms == null) {
this.supportedPlatforms = null;
return;
}
this.supportedPlatforms = new java.util.ArrayList(supportedPlatforms);
}
/**
*
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
* launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedPlatforms(java.util.Collection)} or {@link #withSupportedPlatforms(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param supportedPlatforms
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
* only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstancePlatform
*/
public Bundle withSupportedPlatforms(String... supportedPlatforms) {
if (this.supportedPlatforms == null) {
setSupportedPlatforms(new java.util.ArrayList(supportedPlatforms.length));
}
for (String ele : supportedPlatforms) {
this.supportedPlatforms.add(ele);
}
return this;
}
/**
*
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
* launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
*
*
* @param supportedPlatforms
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
* only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstancePlatform
*/
public Bundle withSupportedPlatforms(java.util.Collection supportedPlatforms) {
setSupportedPlatforms(supportedPlatforms);
return this;
}
/**
*
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
* launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
*
*
* @param supportedPlatforms
* The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
* only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
* LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstancePlatform
*/
public Bundle withSupportedPlatforms(InstancePlatform... supportedPlatforms) {
java.util.ArrayList supportedPlatformsCopy = new java.util.ArrayList(supportedPlatforms.length);
for (InstancePlatform value : supportedPlatforms) {
supportedPlatformsCopy.add(value.toString());
}
if (getSupportedPlatforms() == null) {
setSupportedPlatforms(supportedPlatformsCopy);
} else {
getSupportedPlatforms().addAll(supportedPlatformsCopy);
}
return this;
}
/**
*
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
*
*
* This parameter only applies to Lightsail for Research resources.
*
*
*
* @return Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
* This parameter only applies to Lightsail for Research resources.
*
* @see AppCategory
*/
public java.util.List getSupportedAppCategories() {
return supportedAppCategories;
}
/**
*
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
*
*
* This parameter only applies to Lightsail for Research resources.
*
*
*
* @param supportedAppCategories
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
* This parameter only applies to Lightsail for Research resources.
*
* @see AppCategory
*/
public void setSupportedAppCategories(java.util.Collection supportedAppCategories) {
if (supportedAppCategories == null) {
this.supportedAppCategories = null;
return;
}
this.supportedAppCategories = new java.util.ArrayList(supportedAppCategories);
}
/**
*
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
*
*
* This parameter only applies to Lightsail for Research resources.
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedAppCategories(java.util.Collection)} or
* {@link #withSupportedAppCategories(java.util.Collection)} if you want to override the existing values.
*
*
* @param supportedAppCategories
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
* This parameter only applies to Lightsail for Research resources.
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppCategory
*/
public Bundle withSupportedAppCategories(String... supportedAppCategories) {
if (this.supportedAppCategories == null) {
setSupportedAppCategories(new java.util.ArrayList(supportedAppCategories.length));
}
for (String ele : supportedAppCategories) {
this.supportedAppCategories.add(ele);
}
return this;
}
/**
*
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
*
*
* This parameter only applies to Lightsail for Research resources.
*
*
*
* @param supportedAppCategories
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
* This parameter only applies to Lightsail for Research resources.
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppCategory
*/
public Bundle withSupportedAppCategories(java.util.Collection supportedAppCategories) {
setSupportedAppCategories(supportedAppCategories);
return this;
}
/**
*
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
*
*
* This parameter only applies to Lightsail for Research resources.
*
*
*
* @param supportedAppCategories
* Virtual computer blueprints that are supported by a Lightsail for Research bundle.
*
* This parameter only applies to Lightsail for Research resources.
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see AppCategory
*/
public Bundle withSupportedAppCategories(AppCategory... supportedAppCategories) {
java.util.ArrayList supportedAppCategoriesCopy = new java.util.ArrayList(supportedAppCategories.length);
for (AppCategory value : supportedAppCategories) {
supportedAppCategoriesCopy.add(value.toString());
}
if (getSupportedAppCategories() == null) {
setSupportedAppCategories(supportedAppCategoriesCopy);
} else {
getSupportedAppCategories().addAll(supportedAppCategoriesCopy);
}
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getPrice() != null)
sb.append("Price: ").append(getPrice()).append(",");
if (getCpuCount() != null)
sb.append("CpuCount: ").append(getCpuCount()).append(",");
if (getDiskSizeInGb() != null)
sb.append("DiskSizeInGb: ").append(getDiskSizeInGb()).append(",");
if (getBundleId() != null)
sb.append("BundleId: ").append(getBundleId()).append(",");
if (getInstanceType() != null)
sb.append("InstanceType: ").append(getInstanceType()).append(",");
if (getIsActive() != null)
sb.append("IsActive: ").append(getIsActive()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getPower() != null)
sb.append("Power: ").append(getPower()).append(",");
if (getRamSizeInGb() != null)
sb.append("RamSizeInGb: ").append(getRamSizeInGb()).append(",");
if (getTransferPerMonthInGb() != null)
sb.append("TransferPerMonthInGb: ").append(getTransferPerMonthInGb()).append(",");
if (getSupportedPlatforms() != null)
sb.append("SupportedPlatforms: ").append(getSupportedPlatforms()).append(",");
if (getSupportedAppCategories() != null)
sb.append("SupportedAppCategories: ").append(getSupportedAppCategories());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Bundle == false)
return false;
Bundle other = (Bundle) obj;
if (other.getPrice() == null ^ this.getPrice() == null)
return false;
if (other.getPrice() != null && other.getPrice().equals(this.getPrice()) == false)
return false;
if (other.getCpuCount() == null ^ this.getCpuCount() == null)
return false;
if (other.getCpuCount() != null && other.getCpuCount().equals(this.getCpuCount()) == false)
return false;
if (other.getDiskSizeInGb() == null ^ this.getDiskSizeInGb() == null)
return false;
if (other.getDiskSizeInGb() != null && other.getDiskSizeInGb().equals(this.getDiskSizeInGb()) == false)
return false;
if (other.getBundleId() == null ^ this.getBundleId() == null)
return false;
if (other.getBundleId() != null && other.getBundleId().equals(this.getBundleId()) == false)
return false;
if (other.getInstanceType() == null ^ this.getInstanceType() == null)
return false;
if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false)
return false;
if (other.getIsActive() == null ^ this.getIsActive() == null)
return false;
if (other.getIsActive() != null && other.getIsActive().equals(this.getIsActive()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getPower() == null ^ this.getPower() == null)
return false;
if (other.getPower() != null && other.getPower().equals(this.getPower()) == false)
return false;
if (other.getRamSizeInGb() == null ^ this.getRamSizeInGb() == null)
return false;
if (other.getRamSizeInGb() != null && other.getRamSizeInGb().equals(this.getRamSizeInGb()) == false)
return false;
if (other.getTransferPerMonthInGb() == null ^ this.getTransferPerMonthInGb() == null)
return false;
if (other.getTransferPerMonthInGb() != null && other.getTransferPerMonthInGb().equals(this.getTransferPerMonthInGb()) == false)
return false;
if (other.getSupportedPlatforms() == null ^ this.getSupportedPlatforms() == null)
return false;
if (other.getSupportedPlatforms() != null && other.getSupportedPlatforms().equals(this.getSupportedPlatforms()) == false)
return false;
if (other.getSupportedAppCategories() == null ^ this.getSupportedAppCategories() == null)
return false;
if (other.getSupportedAppCategories() != null && other.getSupportedAppCategories().equals(this.getSupportedAppCategories()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPrice() == null) ? 0 : getPrice().hashCode());
hashCode = prime * hashCode + ((getCpuCount() == null) ? 0 : getCpuCount().hashCode());
hashCode = prime * hashCode + ((getDiskSizeInGb() == null) ? 0 : getDiskSizeInGb().hashCode());
hashCode = prime * hashCode + ((getBundleId() == null) ? 0 : getBundleId().hashCode());
hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getIsActive() == null) ? 0 : getIsActive().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getPower() == null) ? 0 : getPower().hashCode());
hashCode = prime * hashCode + ((getRamSizeInGb() == null) ? 0 : getRamSizeInGb().hashCode());
hashCode = prime * hashCode + ((getTransferPerMonthInGb() == null) ? 0 : getTransferPerMonthInGb().hashCode());
hashCode = prime * hashCode + ((getSupportedPlatforms() == null) ? 0 : getSupportedPlatforms().hashCode());
hashCode = prime * hashCode + ((getSupportedAppCategories() == null) ? 0 : getSupportedAppCategories().hashCode());
return hashCode;
}
@Override
public Bundle clone() {
try {
return (Bundle) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.lightsail.model.transform.BundleMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}