@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomerAwsId() == null) ? 0 : getCustomerAwsId().hashCode()); hashCode = prime * hashCode + ((getCustSubscriptionId() == null) ? 0 : getCustSubscriptionId().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSubscriptionCreationTime() == null) ? 0 : getSubscriptionCreationTime().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getSourceIdsList() == null) ? 0 : getSourceIdsList().hashCode()); hashCode = prime * hashCode + ((getEventCategoriesList() == null) ? 0 : getEventCategoriesList().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
public EventSubscription unmarshall(StaxUnmarshallerContext context) throws Exception { EventSubscription eventSubscription = new EventSubscription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; eventSubscription.setCustomerAwsId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setCustSubscriptionId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setSnsTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setSubscriptionCreationTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; eventSubscription.setSourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.withSourceIdsList(new ArrayList<String>()); continue; eventSubscription.withSourceIdsList(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.withEventCategoriesList(new ArrayList<String>());
public EventSubscription unmarshall(StaxUnmarshallerContext context) throws Exception { EventSubscription eventSubscription = new EventSubscription(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; eventSubscription.setCustomerAwsId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setCustSubscriptionId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setSnsTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.setSubscriptionCreationTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; eventSubscription.setSourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.withSourceIdsList(new ArrayList<String>()); continue; eventSubscription.withSourceIdsList(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventSubscription.withEventCategoriesList(new ArrayList<String>());
return false; EventSubscription other = (EventSubscription) obj; if (other.getCustomerAwsId() == null ^ this.getCustomerAwsId() == null) return false; if (other.getCustomerAwsId() != null && other.getCustomerAwsId().equals(this.getCustomerAwsId()) == false) return false; if (other.getCustSubscriptionId() == null ^ this.getCustSubscriptionId() == null) return false; if (other.getCustSubscriptionId() != null && other.getCustSubscriptionId().equals(this.getCustSubscriptionId()) == false) return false; if (other.getSnsTopicArn() == null ^ this.getSnsTopicArn() == null) return false; if (other.getSnsTopicArn() != null && other.getSnsTopicArn().equals(this.getSnsTopicArn()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSubscriptionCreationTime() == null ^ this.getSubscriptionCreationTime() == null) return false; if (other.getSubscriptionCreationTime() != null && other.getSubscriptionCreationTime().equals(this.getSubscriptionCreationTime()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getSourceIdsList() == null ^ this.getSourceIdsList() == null) return false; if (other.getSourceIdsList() != null && other.getSourceIdsList().equals(this.getSourceIdsList()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCustomerAwsId() != null) sb.append("CustomerAwsId: ").append(getCustomerAwsId()).append(","); if (getCustSubscriptionId() != null) sb.append("CustSubscriptionId: ").append(getCustSubscriptionId()).append(","); if (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSubscriptionCreationTime() != null) sb.append("SubscriptionCreationTime: ").append(getSubscriptionCreationTime()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getSourceIdsList() != null) sb.append("SourceIdsList: ").append(getSourceIdsList()).append(","); if (getEventCategoriesList() != null) sb.append("EventCategoriesList: ").append(getEventCategoriesList()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomerAwsId() == null) ? 0 : getCustomerAwsId().hashCode()); hashCode = prime * hashCode + ((getCustSubscriptionId() == null) ? 0 : getCustSubscriptionId().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSubscriptionCreationTime() == null) ? 0 : getSubscriptionCreationTime().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getSourceIdsList() == null) ? 0 : getSourceIdsList().hashCode()); hashCode = prime * hashCode + ((getEventCategoriesList() == null) ? 0 : getEventCategoriesList().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
return false; EventSubscription other = (EventSubscription) obj; if (other.getCustomerAwsId() == null ^ this.getCustomerAwsId() == null) return false; if (other.getCustomerAwsId() != null && other.getCustomerAwsId().equals(this.getCustomerAwsId()) == false) return false; if (other.getCustSubscriptionId() == null ^ this.getCustSubscriptionId() == null) return false; if (other.getCustSubscriptionId() != null && other.getCustSubscriptionId().equals(this.getCustSubscriptionId()) == false) return false; if (other.getSnsTopicArn() == null ^ this.getSnsTopicArn() == null) return false; if (other.getSnsTopicArn() != null && other.getSnsTopicArn().equals(this.getSnsTopicArn()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSubscriptionCreationTime() == null ^ this.getSubscriptionCreationTime() == null) return false; if (other.getSubscriptionCreationTime() != null && other.getSubscriptionCreationTime().equals(this.getSubscriptionCreationTime()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getSourceIdsList() == null ^ this.getSourceIdsList() == null) return false; if (other.getSourceIdsList() != null && other.getSourceIdsList().equals(this.getSourceIdsList()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCustomerAwsId() != null) sb.append("CustomerAwsId: ").append(getCustomerAwsId()).append(","); if (getCustSubscriptionId() != null) sb.append("CustSubscriptionId: ").append(getCustSubscriptionId()).append(","); if (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSubscriptionCreationTime() != null) sb.append("SubscriptionCreationTime: ").append(getSubscriptionCreationTime()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getSourceIdsList() != null) sb.append("SourceIdsList: ").append(getSourceIdsList()).append(","); if (getEventCategoriesList() != null) sb.append("EventCategoriesList: ").append(getEventCategoriesList()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString();