
com.google.api.ads.dfp.axis.v201505.RateCard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-axis Show documentation
Show all versions of dfp-axis Show documentation
Ad Manager specific Axis components.
/**
* RateCard.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201505;
/**
* Defines a collection of rules, including base rates for product
* templates and products, premiums,
* proposal line item level adjustments and proposal level
* adjustments.
*/
public class RateCard implements java.io.Serializable {
/* The ID of the {@code RateCard}.
* This attribute is read-only and is assigned by Google
* when a rate card is created. */
private java.lang.Long id;
/* The name of the {@code RateCard}.
* This attribute is required and has a maximum length
* of 255 characters.
* This attribute must also be case-insensitive unique. */
private java.lang.String name;
/* The ISO currency code for the currency used by the {@code RateCard}.
* This attribute is optional to create a {@code RateCard} and defaults
* to the
* {@link Network#currencyCode network's currency}.
* This attribute is read-only if either the {@code RateCard}
* is for Marketplace or once a
* {@link ProposalLineItem} has been created using this
* {@code RateCard}. */
private java.lang.String currencyCode;
/* The status of the {@code RateCard}.
* This attribute is read-only and is assigned by Google.
* Rate cards are
* created in the {@link RateCardStatus#INACTIVE} state. */
private com.google.api.ads.dfp.axis.v201505.RateCardStatus status;
/* The IDs of all teams this rate card is directly in.
* This attribute is optional. */
private long[] appliedTeamIds;
/* The date and time this {@code RateCard} was last modified.
*
* This attribute is readonly and is assigned by Google
* when a {@code RateCard} is updated. */
private com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime;
public RateCard() {
}
public RateCard(
java.lang.Long id,
java.lang.String name,
java.lang.String currencyCode,
com.google.api.ads.dfp.axis.v201505.RateCardStatus status,
long[] appliedTeamIds,
com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime) {
this.id = id;
this.name = name;
this.currencyCode = currencyCode;
this.status = status;
this.appliedTeamIds = appliedTeamIds;
this.lastModifiedDateTime = lastModifiedDateTime;
}
/**
* Gets the id value for this RateCard.
*
* @return id * The ID of the {@code RateCard}.
* This attribute is read-only and is assigned by Google
* when a rate card is created.
*/
public java.lang.Long getId() {
return id;
}
/**
* Sets the id value for this RateCard.
*
* @param id * The ID of the {@code RateCard}.
* This attribute is read-only and is assigned by Google
* when a rate card is created.
*/
public void setId(java.lang.Long id) {
this.id = id;
}
/**
* Gets the name value for this RateCard.
*
* @return name * The name of the {@code RateCard}.
* This attribute is required and has a maximum length
* of 255 characters.
* This attribute must also be case-insensitive unique.
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this RateCard.
*
* @param name * The name of the {@code RateCard}.
* This attribute is required and has a maximum length
* of 255 characters.
* This attribute must also be case-insensitive unique.
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the currencyCode value for this RateCard.
*
* @return currencyCode * The ISO currency code for the currency used by the {@code RateCard}.
* This attribute is optional to create a {@code RateCard} and defaults
* to the
* {@link Network#currencyCode network's currency}.
* This attribute is read-only if either the {@code RateCard}
* is for Marketplace or once a
* {@link ProposalLineItem} has been created using this
* {@code RateCard}.
*/
public java.lang.String getCurrencyCode() {
return currencyCode;
}
/**
* Sets the currencyCode value for this RateCard.
*
* @param currencyCode * The ISO currency code for the currency used by the {@code RateCard}.
* This attribute is optional to create a {@code RateCard} and defaults
* to the
* {@link Network#currencyCode network's currency}.
* This attribute is read-only if either the {@code RateCard}
* is for Marketplace or once a
* {@link ProposalLineItem} has been created using this
* {@code RateCard}.
*/
public void setCurrencyCode(java.lang.String currencyCode) {
this.currencyCode = currencyCode;
}
/**
* Gets the status value for this RateCard.
*
* @return status * The status of the {@code RateCard}.
* This attribute is read-only and is assigned by Google.
* Rate cards are
* created in the {@link RateCardStatus#INACTIVE} state.
*/
public com.google.api.ads.dfp.axis.v201505.RateCardStatus getStatus() {
return status;
}
/**
* Sets the status value for this RateCard.
*
* @param status * The status of the {@code RateCard}.
* This attribute is read-only and is assigned by Google.
* Rate cards are
* created in the {@link RateCardStatus#INACTIVE} state.
*/
public void setStatus(com.google.api.ads.dfp.axis.v201505.RateCardStatus status) {
this.status = status;
}
/**
* Gets the appliedTeamIds value for this RateCard.
*
* @return appliedTeamIds * The IDs of all teams this rate card is directly in.
* This attribute is optional.
*/
public long[] getAppliedTeamIds() {
return appliedTeamIds;
}
/**
* Sets the appliedTeamIds value for this RateCard.
*
* @param appliedTeamIds * The IDs of all teams this rate card is directly in.
* This attribute is optional.
*/
public void setAppliedTeamIds(long[] appliedTeamIds) {
this.appliedTeamIds = appliedTeamIds;
}
public long getAppliedTeamIds(int i) {
return this.appliedTeamIds[i];
}
public void setAppliedTeamIds(int i, long _value) {
this.appliedTeamIds[i] = _value;
}
/**
* Gets the lastModifiedDateTime value for this RateCard.
*
* @return lastModifiedDateTime * The date and time this {@code RateCard} was last modified.
*
* This attribute is readonly and is assigned by Google
* when a {@code RateCard} is updated.
*/
public com.google.api.ads.dfp.axis.v201505.DateTime getLastModifiedDateTime() {
return lastModifiedDateTime;
}
/**
* Sets the lastModifiedDateTime value for this RateCard.
*
* @param lastModifiedDateTime * The date and time this {@code RateCard} was last modified.
*
* This attribute is readonly and is assigned by Google
* when a {@code RateCard} is updated.
*/
public void setLastModifiedDateTime(com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime) {
this.lastModifiedDateTime = lastModifiedDateTime;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof RateCard)) return false;
RateCard other = (RateCard) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.id==null && other.getId()==null) ||
(this.id!=null &&
this.id.equals(other.getId()))) &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName()))) &&
((this.currencyCode==null && other.getCurrencyCode()==null) ||
(this.currencyCode!=null &&
this.currencyCode.equals(other.getCurrencyCode()))) &&
((this.status==null && other.getStatus()==null) ||
(this.status!=null &&
this.status.equals(other.getStatus()))) &&
((this.appliedTeamIds==null && other.getAppliedTeamIds()==null) ||
(this.appliedTeamIds!=null &&
java.util.Arrays.equals(this.appliedTeamIds, other.getAppliedTeamIds()))) &&
((this.lastModifiedDateTime==null && other.getLastModifiedDateTime()==null) ||
(this.lastModifiedDateTime!=null &&
this.lastModifiedDateTime.equals(other.getLastModifiedDateTime())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getName() != null) {
_hashCode += getName().hashCode();
}
if (getCurrencyCode() != null) {
_hashCode += getCurrencyCode().hashCode();
}
if (getStatus() != null) {
_hashCode += getStatus().hashCode();
}
if (getAppliedTeamIds() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy