Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2014 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;
 

Describes a Reserved Instance offering.

 
 public class ReservedInstancesOffering implements Serializable {

    
The ID of the Reserved Instance offering.
 
     private String reservedInstancesOfferingId;

    
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

 
     private String instanceType;

    
The Availability Zone in which the Reserved Instance can be used.
 
     private String availabilityZone;

    
The duration of the Reserved Instance, in seconds.
 
     private Long duration;

    
The usage price of the Reserved Instance, per hour.
 
     private Float usagePrice;

    
The purchase price of the Reserved Instance.
 
     private Float fixedPrice;

    
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

 
     private String productDescription;

    
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

 
     private String instanceTenancy;

    
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

 
     private String currencyCode;

    
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

 
     private String offeringType;

    
The recurring charge tag assigned to the resource.
 
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.
    private Boolean marketplace;

    
The pricing details of the Reserved Instance offering.
The ID of the Reserved Instance offering.

Returns:
The ID of the Reserved Instance offering.
        return ;
    }
    
    
The ID of the Reserved Instance offering.

Parameters:
reservedInstancesOfferingId The ID of the Reserved Instance offering.
    public void setReservedInstancesOfferingId(String reservedInstancesOfferingId) {
        this. = reservedInstancesOfferingId;
    }
    
    
The ID of the Reserved Instance offering.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesOfferingId The ID of the Reserved Instance offering.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withReservedInstancesOfferingId(String reservedInstancesOfferingId) {
        this. = reservedInstancesOfferingId;
        return this;
    }

    
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Returns:
The instance type on which the Reserved Instance can be used.
See also:
InstanceType
    public String getInstanceType() {
        return ;
    }
    
    
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used.
See also:
InstanceType
    public void setInstanceType(String instanceType) {
        this. = instanceType;
    }
    
    
The instance type on which the Reserved Instance can be used.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceType
    public ReservedInstancesOffering withInstanceType(String instanceType) {
        this. = instanceType;
        return this;
    }

    
The instance type on which the Reserved Instance can be used.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used.
See also:
InstanceType
    public void setInstanceType(InstanceType instanceType) {
        this. = instanceType.toString();
    }
    
    
The instance type on which the Reserved Instance can be used.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType The instance type on which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InstanceType
        this. = instanceType.toString();
        return this;
    }

    
The Availability Zone in which the Reserved Instance can be used.

Returns:
The Availability Zone in which the Reserved Instance can be used.
    public String getAvailabilityZone() {
        return ;
    }
    
    
The Availability Zone in which the Reserved Instance can be used.

Parameters:
availabilityZone The Availability Zone in which the Reserved Instance can be used.
    public void setAvailabilityZone(String availabilityZone) {
        this. = availabilityZone;
    }
    
    
The Availability Zone in which the Reserved Instance can be used.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone The Availability Zone in which the Reserved Instance can be used.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withAvailabilityZone(String availabilityZone) {
        this. = availabilityZone;
        return this;
    }

    
The duration of the Reserved Instance, in seconds.

Returns:
The duration of the Reserved Instance, in seconds.
    public Long getDuration() {
        return ;
    }
    
    
The duration of the Reserved Instance, in seconds.

Parameters:
duration The duration of the Reserved Instance, in seconds.
    public void setDuration(Long duration) {
        this. = duration;
    }
    
    
The duration of the Reserved Instance, in seconds.

Returns a reference to this object so that method calls can be chained together.

Parameters:
duration The duration of the Reserved Instance, in seconds.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withDuration(Long duration) {
        this. = duration;
        return this;
    }

    
The usage price of the Reserved Instance, per hour.

Returns:
The usage price of the Reserved Instance, per hour.
    public Float getUsagePrice() {
        return ;
    }
    
    
The usage price of the Reserved Instance, per hour.

Parameters:
usagePrice The usage price of the Reserved Instance, per hour.
    public void setUsagePrice(Float usagePrice) {
        this. = usagePrice;
    }
    
    
The usage price of the Reserved Instance, per hour.

Returns a reference to this object so that method calls can be chained together.

Parameters:
usagePrice The usage price of the Reserved Instance, per hour.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withUsagePrice(Float usagePrice) {
        this. = usagePrice;
        return this;
    }

    
The purchase price of the Reserved Instance.

Returns:
The purchase price of the Reserved Instance.
    public Float getFixedPrice() {
        return ;
    }
    
    
The purchase price of the Reserved Instance.

Parameters:
fixedPrice The purchase price of the Reserved Instance.
    public void setFixedPrice(Float fixedPrice) {
        this. = fixedPrice;
    }
    
    
The purchase price of the Reserved Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
fixedPrice The purchase price of the Reserved Instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withFixedPrice(Float fixedPrice) {
        this. = fixedPrice;
        return this;
    }

    
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Returns:
The Reserved Instance description.
See also:
RIProductDescription
    public String getProductDescription() {
        return ;
    }
    
    
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription The Reserved Instance description.
See also:
RIProductDescription
    public void setProductDescription(String productDescription) {
        this. = productDescription;
    }
    
    
The Reserved Instance description.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription The Reserved Instance description.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RIProductDescription
    public ReservedInstancesOffering withProductDescription(String productDescription) {
        this. = productDescription;
        return this;
    }

    
The Reserved Instance description.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription The Reserved Instance description.
See also:
RIProductDescription
    public void setProductDescription(RIProductDescription productDescription) {
        this. = productDescription.toString();
    }
    
    
The Reserved Instance description.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Parameters:
productDescription The Reserved Instance description.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RIProductDescription
        this. = productDescription.toString();
        return this;
    }

    
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

Returns:
The tenancy of the reserved instance.
See also:
Tenancy
    public String getInstanceTenancy() {
        return ;
    }
    
    
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the reserved instance.
See also:
Tenancy
    public void setInstanceTenancy(String instanceTenancy) {
        this. = instanceTenancy;
    }
    
    
The tenancy of the reserved instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the reserved instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
Tenancy
    public ReservedInstancesOffering withInstanceTenancy(String instanceTenancy) {
        this. = instanceTenancy;
        return this;
    }

    
The tenancy of the reserved instance.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the reserved instance.
See also:
Tenancy
    public void setInstanceTenancy(Tenancy instanceTenancy) {
        this. = instanceTenancy.toString();
    }
    
    
The tenancy of the reserved instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy The tenancy of the reserved instance.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
Tenancy
    public ReservedInstancesOffering withInstanceTenancy(Tenancy instanceTenancy) {
        this. = instanceTenancy.toString();
        return this;
    }

    
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

Returns:
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
See also:
CurrencyCodeValues
    public String getCurrencyCode() {
        return ;
    }
    
    
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

Parameters:
currencyCode The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
See also:
CurrencyCodeValues
    public void setCurrencyCode(String currencyCode) {
        this. = currencyCode;
    }
    
    
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: USD

Parameters:
currencyCode The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
CurrencyCodeValues
    public ReservedInstancesOffering withCurrencyCode(String currencyCode) {
        this. = currencyCode;
        return this;
    }

    
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Constraints:
Allowed Values: USD

Parameters:
currencyCode The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
See also:
CurrencyCodeValues
    public void setCurrencyCode(CurrencyCodeValues currencyCode) {
        this. = currencyCode.toString();
    }
    
    
The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: USD

Parameters:
currencyCode The currency of the Reserved Instance offering you are purchasing. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
CurrencyCodeValues
    public ReservedInstancesOffering withCurrencyCode(CurrencyCodeValues currencyCode) {
        this. = currencyCode.toString();
        return this;
    }

    
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Returns:
The Reserved Instance offering type.
See also:
OfferingTypeValues
    public String getOfferingType() {
        return ;
    }
    
    
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType The Reserved Instance offering type.
See also:
OfferingTypeValues
    public void setOfferingType(String offeringType) {
        this. = offeringType;
    }
    
    
The Reserved Instance offering type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType The Reserved Instance offering type.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
OfferingTypeValues
    public ReservedInstancesOffering withOfferingType(String offeringType) {
        this. = offeringType;
        return this;
    }

    
The Reserved Instance offering type.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType The Reserved Instance offering type.
See also:
OfferingTypeValues
    public void setOfferingType(OfferingTypeValues offeringType) {
        this. = offeringType.toString();
    }
    
    
The Reserved Instance offering type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization

Parameters:
offeringType The Reserved Instance offering type.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
OfferingTypeValues
        this. = offeringType.toString();
        return this;
    }

    
The recurring charge tag assigned to the resource.

Returns:
The recurring charge tag assigned to the resource.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The recurring charge tag assigned to the resource.

Parameters:
recurringCharges The recurring charge tag assigned to the resource.
    public void setRecurringCharges(java.util.Collection<RecurringChargerecurringCharges) {
        if (recurringCharges == null) {
            this. = null;
            return;
        }
        recurringChargesCopy.addAll(recurringCharges);
        this. = recurringChargesCopy;
    }
    
    
The recurring charge tag assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges The recurring charge tag assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withRecurringCharges(RecurringCharge... recurringCharges) {
        if (getRecurringCharges() == nullsetRecurringCharges(new java.util.ArrayList<RecurringCharge>(recurringCharges.length));
        for (RecurringCharge value : recurringCharges) {
            getRecurringCharges().add(value);
        }
        return this;
    }
    
    
The recurring charge tag assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
recurringCharges The recurring charge tag assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (recurringCharges == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<RecurringChargerecurringChargesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<RecurringCharge>(recurringCharges.size());
            recurringChargesCopy.addAll(recurringCharges);
            this. = recurringChargesCopy;
        }
        return this;
    }

    
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.

Returns:
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.
    public Boolean isMarketplace() {
        return ;
    }
    
    
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.

Parameters:
marketplace Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.
    public void setMarketplace(Boolean marketplace) {
        this. = marketplace;
    }
    
    
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.

Returns a reference to this object so that method calls can be chained together.

Parameters:
marketplace Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withMarketplace(Boolean marketplace) {
        this. = marketplace;
        return this;
    }

    
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.

Returns:
Indicates whether the offering is available through the Reserved Instance Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, this is true.
    public Boolean getMarketplace() {
        return ;
    }

    
The pricing details of the Reserved Instance offering.

Returns:
The pricing details of the Reserved Instance offering.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The pricing details of the Reserved Instance offering.

Parameters:
pricingDetails The pricing details of the Reserved Instance offering.
    public void setPricingDetails(java.util.Collection<PricingDetailpricingDetails) {
        if (pricingDetails == null) {
            this. = null;
            return;
        }
        pricingDetailsCopy.addAll(pricingDetails);
        this. = pricingDetailsCopy;
    }
    
    
The pricing details of the Reserved Instance offering.

Returns a reference to this object so that method calls can be chained together.

Parameters:
pricingDetails The pricing details of the Reserved Instance offering.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ReservedInstancesOffering withPricingDetails(PricingDetail... pricingDetails) {
        if (getPricingDetails() == nullsetPricingDetails(new java.util.ArrayList<PricingDetail>(pricingDetails.length));
        for (PricingDetail value : pricingDetails) {
            getPricingDetails().add(value);
        }
        return this;
    }
    
    
The pricing details of the Reserved Instance offering.

Returns a reference to this object so that method calls can be chained together.

Parameters:
pricingDetails The pricing details of the Reserved Instance offering.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (pricingDetails == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<PricingDetailpricingDetailsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<PricingDetail>(pricingDetails.size());
            pricingDetailsCopy.addAll(pricingDetails);
            this. = pricingDetailsCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getReservedInstancesOfferingId() != nullsb.append("ReservedInstancesOfferingId: " + getReservedInstancesOfferingId() + ",");
        if (getInstanceType() != nullsb.append("InstanceType: " + getInstanceType() + ",");
        if (getAvailabilityZone() != nullsb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
        if (getDuration() != nullsb.append("Duration: " + getDuration() + ",");
        if (getUsagePrice() != nullsb.append("UsagePrice: " + getUsagePrice() + ",");
        if (getFixedPrice() != nullsb.append("FixedPrice: " + getFixedPrice() + ",");
        if (getProductDescription() != nullsb.append("ProductDescription: " + getProductDescription() + ",");
        if (getInstanceTenancy() != nullsb.append("InstanceTenancy: " + getInstanceTenancy() + ",");
        if (getCurrencyCode() != nullsb.append("CurrencyCode: " + getCurrencyCode() + ",");
        if (getOfferingType() != nullsb.append("OfferingType: " + getOfferingType() + ",");
        if (getRecurringCharges() != nullsb.append("RecurringCharges: " + getRecurringCharges() + ",");
        if (isMarketplace() != nullsb.append("Marketplace: " + isMarketplace() + ",");
        if (getPricingDetails() != nullsb.append("PricingDetails: " + getPricingDetails() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getReservedInstancesOfferingId() == null) ? 0 : getReservedInstancesOfferingId().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); 
        hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); 
        hashCode = prime * hashCode + ((getDuration() == null) ? 0 : getDuration().hashCode()); 
        hashCode = prime * hashCode + ((getUsagePrice() == null) ? 0 : getUsagePrice().hashCode()); 
        hashCode = prime * hashCode + ((getFixedPrice() == null) ? 0 : getFixedPrice().hashCode()); 
        hashCode = prime * hashCode + ((getProductDescription() == null) ? 0 : getProductDescription().hashCode()); 
        hashCode = prime * hashCode + ((getInstanceTenancy() == null) ? 0 : getInstanceTenancy().hashCode()); 
        hashCode = prime * hashCode + ((getCurrencyCode() == null) ? 0 : getCurrencyCode().hashCode()); 
        hashCode = prime * hashCode + ((getOfferingType() == null) ? 0 : getOfferingType().hashCode()); 
        hashCode = prime * hashCode + ((getRecurringCharges() == null) ? 0 : getRecurringCharges().hashCode()); 
        hashCode = prime * hashCode + ((isMarketplace() == null) ? 0 : isMarketplace().hashCode()); 
        hashCode = prime * hashCode + ((getPricingDetails() == null) ? 0 : getPricingDetails().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ReservedInstancesOffering == falsereturn false;
        
        if (other.getReservedInstancesOfferingId() == null ^ this.getReservedInstancesOfferingId() == nullreturn false;
        if (other.getReservedInstancesOfferingId() != null && other.getReservedInstancesOfferingId().equals(this.getReservedInstancesOfferingId()) == falsereturn false
        if (other.getInstanceType() == null ^ this.getInstanceType() == nullreturn false;
        if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == falsereturn false
        if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == nullreturn false;
        if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == falsereturn false
        if (other.getDuration() == null ^ this.getDuration() == nullreturn false;
        if (other.getDuration() != null && other.getDuration().equals(this.getDuration()) == falsereturn false
        if (other.getUsagePrice() == null ^ this.getUsagePrice() == nullreturn false;
        if (other.getUsagePrice() != null && other.getUsagePrice().equals(this.getUsagePrice()) == falsereturn false
        if (other.getFixedPrice() == null ^ this.getFixedPrice() == nullreturn false;
        if (other.getFixedPrice() != null && other.getFixedPrice().equals(this.getFixedPrice()) == falsereturn false
        if (other.getProductDescription() == null ^ this.getProductDescription() == nullreturn false;
        if (other.getProductDescription() != null && other.getProductDescription().equals(this.getProductDescription()) == falsereturn false
        if (other.getInstanceTenancy() == null ^ this.getInstanceTenancy() == nullreturn false;
        if (other.getInstanceTenancy() != null && other.getInstanceTenancy().equals(this.getInstanceTenancy()) == falsereturn false
        if (other.getCurrencyCode() == null ^ this.getCurrencyCode() == nullreturn false;
        if (other.getCurrencyCode() != null && other.getCurrencyCode().equals(this.getCurrencyCode()) == falsereturn false
        if (other.getOfferingType() == null ^ this.getOfferingType() == nullreturn false;
        if (other.getOfferingType() != null && other.getOfferingType().equals(this.getOfferingType()) == falsereturn false
        if (other.getRecurringCharges() == null ^ this.getRecurringCharges() == nullreturn false;
        if (other.getRecurringCharges() != null && other.getRecurringCharges().equals(this.getRecurringCharges()) == falsereturn false
        if (other.isMarketplace() == null ^ this.isMarketplace() == nullreturn false;
        if (other.isMarketplace() != null && other.isMarketplace().equals(this.isMarketplace()) == falsereturn false
        if (other.getPricingDetails() == null ^ this.getPricingDetails() == nullreturn false;
        if (other.getPricingDetails() != null && other.getPricingDetails().equals(this.getPricingDetails()) == falsereturn false
        return true;
    }
    
}
    
New to GrepCode? Check out our FAQ X