
com.google.api.ads.admanager.axis.v202402.Site Maven / Gradle / Ivy
// Copyright 2024 Google LLC
//
// 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.
/**
* Site.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4.1-SNAPSHOT Mar 20, 2024 (11:59:10 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.admanager.axis.v202402;
public class Site implements java.io.Serializable {
private java.lang.Long id;
private java.lang.String url;
private java.lang.String childNetworkCode;
private com.google.api.ads.admanager.axis.v202402.ApprovalStatus approvalStatus;
private java.lang.Boolean active;
private com.google.api.ads.admanager.axis.v202402.DisapprovalReason[] disapprovalReasons;
public Site() {
}
public Site(
java.lang.Long id,
java.lang.String url,
java.lang.String childNetworkCode,
com.google.api.ads.admanager.axis.v202402.ApprovalStatus approvalStatus,
java.lang.Boolean active,
com.google.api.ads.admanager.axis.v202402.DisapprovalReason[] disapprovalReasons) {
this.id = id;
this.url = url;
this.childNetworkCode = childNetworkCode;
this.approvalStatus = approvalStatus;
this.active = active;
this.disapprovalReasons = disapprovalReasons;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("active", getActive())
.add("approvalStatus", getApprovalStatus())
.add("childNetworkCode", getChildNetworkCode())
.add("disapprovalReasons", getDisapprovalReasons())
.add("id", getId())
.add("url", getUrl())
.toString();
}
/**
* Gets the id value for this Site.
*
* @return id
*/
public java.lang.Long getId() {
return id;
}
/**
* Sets the id value for this Site.
*
* @param id
*/
public void setId(java.lang.Long id) {
this.id = id;
}
/**
* Gets the url value for this Site.
*
* @return url
*/
public java.lang.String getUrl() {
return url;
}
/**
* Sets the url value for this Site.
*
* @param url
*/
public void setUrl(java.lang.String url) {
this.url = url;
}
/**
* Gets the childNetworkCode value for this Site.
*
* @return childNetworkCode
*/
public java.lang.String getChildNetworkCode() {
return childNetworkCode;
}
/**
* Sets the childNetworkCode value for this Site.
*
* @param childNetworkCode
*/
public void setChildNetworkCode(java.lang.String childNetworkCode) {
this.childNetworkCode = childNetworkCode;
}
/**
* Gets the approvalStatus value for this Site.
*
* @return approvalStatus
*/
public com.google.api.ads.admanager.axis.v202402.ApprovalStatus getApprovalStatus() {
return approvalStatus;
}
/**
* Sets the approvalStatus value for this Site.
*
* @param approvalStatus
*/
public void setApprovalStatus(com.google.api.ads.admanager.axis.v202402.ApprovalStatus approvalStatus) {
this.approvalStatus = approvalStatus;
}
/**
* Gets the active value for this Site.
*
* @return active
*/
public java.lang.Boolean getActive() {
return active;
}
/**
* Sets the active value for this Site.
*
* @param active
*/
public void setActive(java.lang.Boolean active) {
this.active = active;
}
/**
* Gets the disapprovalReasons value for this Site.
*
* @return disapprovalReasons
*/
public com.google.api.ads.admanager.axis.v202402.DisapprovalReason[] getDisapprovalReasons() {
return disapprovalReasons;
}
/**
* Sets the disapprovalReasons value for this Site.
*
* @param disapprovalReasons
*/
public void setDisapprovalReasons(com.google.api.ads.admanager.axis.v202402.DisapprovalReason[] disapprovalReasons) {
this.disapprovalReasons = disapprovalReasons;
}
public com.google.api.ads.admanager.axis.v202402.DisapprovalReason getDisapprovalReasons(int i) {
return this.disapprovalReasons[i];
}
public void setDisapprovalReasons(int i, com.google.api.ads.admanager.axis.v202402.DisapprovalReason _value) {
this.disapprovalReasons[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Site)) return false;
Site other = (Site) obj;
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.url==null && other.getUrl()==null) ||
(this.url!=null &&
this.url.equals(other.getUrl()))) &&
((this.childNetworkCode==null && other.getChildNetworkCode()==null) ||
(this.childNetworkCode!=null &&
this.childNetworkCode.equals(other.getChildNetworkCode()))) &&
((this.approvalStatus==null && other.getApprovalStatus()==null) ||
(this.approvalStatus!=null &&
this.approvalStatus.equals(other.getApprovalStatus()))) &&
((this.active==null && other.getActive()==null) ||
(this.active!=null &&
this.active.equals(other.getActive()))) &&
((this.disapprovalReasons==null && other.getDisapprovalReasons()==null) ||
(this.disapprovalReasons!=null &&
java.util.Arrays.equals(this.disapprovalReasons, other.getDisapprovalReasons())));
__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 (getUrl() != null) {
_hashCode += getUrl().hashCode();
}
if (getChildNetworkCode() != null) {
_hashCode += getChildNetworkCode().hashCode();
}
if (getApprovalStatus() != null) {
_hashCode += getApprovalStatus().hashCode();
}
if (getActive() != null) {
_hashCode += getActive().hashCode();
}
if (getDisapprovalReasons() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy