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

com.amazonaws.services.pricing.model.PriceList Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.pricing.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is * subject to the Beta Service Participation terms of the Amazon Web * Services Service Terms (Section 1.10). *

*

* This is the type of price list references that match your request. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PriceList implements Serializable, Cloneable, StructuredPojo { /** *

* The unique identifier that maps to where your Price List files are located. PriceListArn can be * obtained from the * ListPriceList response. *

*/ private String priceListArn; /** *

* This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for * the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve * price lists for all applicable Regions. The available RegionCode list can be retrieved from * GetAttributeValues API. *

*/ private String regionCode; /** *

* The three alphabetical character ISO-4217 currency code the Price List files are denominated in. *

*/ private String currencyCode; /** *

* The format you want to retrieve your Price List files. The FileFormat can be obtained from the * ListPriceList response. *

*/ private java.util.List fileFormats; /** *

* The unique identifier that maps to where your Price List files are located. PriceListArn can be * obtained from the * ListPriceList response. *

* * @param priceListArn * The unique identifier that maps to where your Price List files are located. PriceListArn can * be obtained from the * ListPriceList response. */ public void setPriceListArn(String priceListArn) { this.priceListArn = priceListArn; } /** *

* The unique identifier that maps to where your Price List files are located. PriceListArn can be * obtained from the * ListPriceList response. *

* * @return The unique identifier that maps to where your Price List files are located. PriceListArn can * be obtained from the * ListPriceList response. */ public String getPriceListArn() { return this.priceListArn; } /** *

* The unique identifier that maps to where your Price List files are located. PriceListArn can be * obtained from the * ListPriceList response. *

* * @param priceListArn * The unique identifier that maps to where your Price List files are located. PriceListArn can * be obtained from the * ListPriceList response. * @return Returns a reference to this object so that method calls can be chained together. */ public PriceList withPriceListArn(String priceListArn) { setPriceListArn(priceListArn); return this; } /** *

* This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for * the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve * price lists for all applicable Regions. The available RegionCode list can be retrieved from * GetAttributeValues API. *

* * @param regionCode * This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list * only for the US East (N. Virginia) Region, use us-east-1. If nothing is * specified, you retrieve price lists for all applicable Regions. The available RegionCode list * can be retrieved from * GetAttributeValues API. */ public void setRegionCode(String regionCode) { this.regionCode = regionCode; } /** *

* This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for * the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve * price lists for all applicable Regions. The available RegionCode list can be retrieved from * GetAttributeValues API. *

* * @return This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list * only for the US East (N. Virginia) Region, use us-east-1. If nothing is * specified, you retrieve price lists for all applicable Regions. The available RegionCode * list can be retrieved from GetAttributeValues API. */ public String getRegionCode() { return this.regionCode; } /** *

* This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list only for * the US East (N. Virginia) Region, use us-east-1. If nothing is specified, you retrieve * price lists for all applicable Regions. The available RegionCode list can be retrieved from * GetAttributeValues API. *

* * @param regionCode * This is used to filter the Price List by Amazon Web Services Region. For example, to get the price list * only for the US East (N. Virginia) Region, use us-east-1. If nothing is * specified, you retrieve price lists for all applicable Regions. The available RegionCode list * can be retrieved from * GetAttributeValues API. * @return Returns a reference to this object so that method calls can be chained together. */ public PriceList withRegionCode(String regionCode) { setRegionCode(regionCode); return this; } /** *

* The three alphabetical character ISO-4217 currency code the Price List files are denominated in. *

* * @param currencyCode * The three alphabetical character ISO-4217 currency code the Price List files are denominated in. */ public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } /** *

* The three alphabetical character ISO-4217 currency code the Price List files are denominated in. *

* * @return The three alphabetical character ISO-4217 currency code the Price List files are denominated in. */ public String getCurrencyCode() { return this.currencyCode; } /** *

* The three alphabetical character ISO-4217 currency code the Price List files are denominated in. *

* * @param currencyCode * The three alphabetical character ISO-4217 currency code the Price List files are denominated in. * @return Returns a reference to this object so that method calls can be chained together. */ public PriceList withCurrencyCode(String currencyCode) { setCurrencyCode(currencyCode); return this; } /** *

* The format you want to retrieve your Price List files. The FileFormat can be obtained from the * ListPriceList response. *

* * @return The format you want to retrieve your Price List files. The FileFormat can be obtained from * the * ListPriceList response. */ public java.util.List getFileFormats() { return fileFormats; } /** *

* The format you want to retrieve your Price List files. The FileFormat can be obtained from the * ListPriceList response. *

* * @param fileFormats * The format you want to retrieve your Price List files. The FileFormat can be obtained from * the * ListPriceList response. */ public void setFileFormats(java.util.Collection fileFormats) { if (fileFormats == null) { this.fileFormats = null; return; } this.fileFormats = new java.util.ArrayList(fileFormats); } /** *

* The format you want to retrieve your Price List files. The FileFormat can be obtained from the * ListPriceList response. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFileFormats(java.util.Collection)} or {@link #withFileFormats(java.util.Collection)} if you want to * override the existing values. *

* * @param fileFormats * The format you want to retrieve your Price List files. The FileFormat can be obtained from * the * ListPriceList response. * @return Returns a reference to this object so that method calls can be chained together. */ public PriceList withFileFormats(String... fileFormats) { if (this.fileFormats == null) { setFileFormats(new java.util.ArrayList(fileFormats.length)); } for (String ele : fileFormats) { this.fileFormats.add(ele); } return this; } /** *

* The format you want to retrieve your Price List files. The FileFormat can be obtained from the * ListPriceList response. *

* * @param fileFormats * The format you want to retrieve your Price List files. The FileFormat can be obtained from * the * ListPriceList response. * @return Returns a reference to this object so that method calls can be chained together. */ public PriceList withFileFormats(java.util.Collection fileFormats) { setFileFormats(fileFormats); 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 (getPriceListArn() != null) sb.append("PriceListArn: ").append(getPriceListArn()).append(","); if (getRegionCode() != null) sb.append("RegionCode: ").append(getRegionCode()).append(","); if (getCurrencyCode() != null) sb.append("CurrencyCode: ").append(getCurrencyCode()).append(","); if (getFileFormats() != null) sb.append("FileFormats: ").append(getFileFormats()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PriceList == false) return false; PriceList other = (PriceList) obj; if (other.getPriceListArn() == null ^ this.getPriceListArn() == null) return false; if (other.getPriceListArn() != null && other.getPriceListArn().equals(this.getPriceListArn()) == false) return false; if (other.getRegionCode() == null ^ this.getRegionCode() == null) return false; if (other.getRegionCode() != null && other.getRegionCode().equals(this.getRegionCode()) == false) return false; if (other.getCurrencyCode() == null ^ this.getCurrencyCode() == null) return false; if (other.getCurrencyCode() != null && other.getCurrencyCode().equals(this.getCurrencyCode()) == false) return false; if (other.getFileFormats() == null ^ this.getFileFormats() == null) return false; if (other.getFileFormats() != null && other.getFileFormats().equals(this.getFileFormats()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPriceListArn() == null) ? 0 : getPriceListArn().hashCode()); hashCode = prime * hashCode + ((getRegionCode() == null) ? 0 : getRegionCode().hashCode()); hashCode = prime * hashCode + ((getCurrencyCode() == null) ? 0 : getCurrencyCode().hashCode()); hashCode = prime * hashCode + ((getFileFormats() == null) ? 0 : getFileFormats().hashCode()); return hashCode; } @Override public PriceList clone() { try { return (PriceList) 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.pricing.model.transform.PriceListMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy