// Copyright 2016 Google Inc. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License 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.google.api.ads.adwords.jaxws.v201607.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* Signals that an entity count limit was exceeded for some level.
* For example, too many criteria for a campaign.
*
*
* <p>Java class for EntityCountLimitExceeded complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EntityCountLimitExceeded">
* <complexContent>
* <extension base="{https://adwords.google.com/api/adwords/cm/v201607}ApiError">
* <sequence>
* <element name="reason" type="{https://adwords.google.com/api/adwords/cm/v201607}EntityCountLimitExceeded.Reason" minOccurs="0"/>
* <element name="enclosingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="limit" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="accountLimitType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="existingCount" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EntityCountLimitExceeded", propOrder = {
"reason",
"enclosingId",
"limit",
"accountLimitType",
"existingCount"
})
@XmlSeeAlso({
AdGroupCriterionLimitExceeded.class,
AdGroupAdCountLimitExceeded.class
})
public class EntityCountLimitExceeded
extends ApiError
{
@XmlSchemaType(name = "string")
protected EntityCountLimitExceededReason reason;
protected String enclosingId;
protected Integer limit;
protected String accountLimitType;
protected Integer existingCount;
/**
* Gets the value of the reason property.
*
* @return
* possible object is
* {@link EntityCountLimitExceededReason }
*
*/
public EntityCountLimitExceededReason getReason() {
return reason;
}
/**
* Sets the value of the reason property.
*
* @param value
* allowed object is
* {@link EntityCountLimitExceededReason }
*
*/
public void setReason(EntityCountLimitExceededReason value) {
this.reason = value;
}
/**
* Gets the value of the enclosingId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEnclosingId() {
return enclosingId;
}
/**
* Sets the value of the enclosingId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEnclosingId(String value) {
this.enclosingId = value;
}
/**
* Gets the value of the limit property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getLimit() {
return limit;
}
/**
* Sets the value of the limit property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setLimit(Integer value) {
this.limit = value;
}
/**
* Gets the value of the accountLimitType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccountLimitType() {
return accountLimitType;
}
/**
* Sets the value of the accountLimitType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccountLimitType(String value) {
this.accountLimitType = value;
}
/**
* Gets the value of the existingCount property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getExistingCount() {
return existingCount;
}
/**
* Sets the value of the existingCount property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setExistingCount(Integer value) {
this.existingCount = value;
}
}