@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode()); return hashCode; }
/** * <p> * The configuration set object associated with the specified configuration set. * </p> * * @param configurationSet * The configuration set object associated with the specified configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withConfigurationSet(ConfigurationSet configurationSet) { setConfigurationSet(configurationSet); return this; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(java.util.Collection<EventDestination> eventDestinations) { setEventDestinations(eventDestinations); return this; }
public DescribeConfigurationSetResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeConfigurationSetResult describeConfigurationSetResult = new DescribeConfigurationSetResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; describeConfigurationSetResult.setConfigurationSet(ConfigurationSetStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeConfigurationSetResult.withEventDestinations(new ArrayList<EventDestination>()); continue; describeConfigurationSetResult.withEventDestinations(EventDestinationStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeConfigurationSetResult.setTrackingOptions(TrackingOptionsStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeConfigurationSetResult.setReputationOptions(ReputationOptionsStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The name of the custom open and click tracking domain associated with the configuration set. * </p> * * @param trackingOptions * The name of the custom open and click tracking domain associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withTrackingOptions(TrackingOptions trackingOptions) { setTrackingOptions(trackingOptions); return this; }
/** * <p> * An object that represents the reputation settings for the configuration set. * </p> * * @param reputationOptions * An object that represents the reputation settings for the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withReputationOptions(ReputationOptions reputationOptions) { setReputationOptions(reputationOptions); return this; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param eventDestinations <p> * A list of event destinations associated with the configuration * set. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribeConfigurationSetResult withEventDestinations( EventDestination... eventDestinations) { if (getEventDestinations() == null) { this.eventDestinations = new java.util.ArrayList<EventDestination>( eventDestinations.length); } for (EventDestination value : eventDestinations) { this.eventDestinations.add(value); } return this; }
public DescribeConfigurationSetResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeConfigurationSetResult describeConfigurationSetResult = new DescribeConfigurationSetResult(); if (context.testExpression("ConfigurationSet", targetDepth)) { describeConfigurationSetResult .setConfigurationSet(ConfigurationSetStaxUnmarshaller.getInstance() .unmarshall(context)); continue; .withEventDestinations(EventDestinationStaxUnmarshaller.getInstance() .unmarshall(context)); continue; .setTrackingOptions(TrackingOptionsStaxUnmarshaller.getInstance() .unmarshall(context)); continue; .setReputationOptions(ReputationOptionsStaxUnmarshaller.getInstance() .unmarshall(context)); continue;
/** * <p> * The name of the custom open and click tracking domain associated with the configuration set. * </p> * * @param trackingOptions * The name of the custom open and click tracking domain associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withTrackingOptions(TrackingOptions trackingOptions) { setTrackingOptions(trackingOptions); return this; }
/** * <p> * An object that represents the reputation settings for the configuration set. * </p> * * @param reputationOptions * An object that represents the reputation settings for the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withReputationOptions(ReputationOptions reputationOptions) { setReputationOptions(reputationOptions); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationSetResult == false) return false; DescribeConfigurationSetResult other = (DescribeConfigurationSetResult) obj; if (other.getConfigurationSet() == null ^ this.getConfigurationSet() == null) return false; if (other.getConfigurationSet() != null && other.getConfigurationSet().equals(this.getConfigurationSet()) == false) return false; if (other.getEventDestinations() == null ^ this.getEventDestinations() == null) return false; if (other.getEventDestinations() != null && other.getEventDestinations().equals(this.getEventDestinations()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; if (other.getReputationOptions() == null ^ this.getReputationOptions() == null) return false; if (other.getReputationOptions() != null && other.getReputationOptions().equals(this.getReputationOptions()) == false) return false; return true; }
public DescribeConfigurationSetResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeConfigurationSetResult describeConfigurationSetResult = new DescribeConfigurationSetResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; describeConfigurationSetResult.setConfigurationSet(ConfigurationSetStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeConfigurationSetResult.withEventDestinations(new ArrayList<EventDestination>()); continue; describeConfigurationSetResult.withEventDestinations(EventDestinationStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeConfigurationSetResult.setTrackingOptions(TrackingOptionsStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeConfigurationSetResult.setReputationOptions(ReputationOptionsStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventDestinations(java.util.Collection)} or {@link #withEventDestinations(java.util.Collection)} if * you want to override the existing values. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(EventDestination... eventDestinations) { if (this.eventDestinations == null) { setEventDestinations(new com.amazonaws.internal.SdkInternalList<EventDestination>(eventDestinations.length)); } for (EventDestination ele : eventDestinations) { this.eventDestinations.add(ele); } return this; }
/** * <p> * The configuration set object associated with the specified configuration set. * </p> * * @param configurationSet * The configuration set object associated with the specified configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withConfigurationSet(ConfigurationSet configurationSet) { setConfigurationSet(configurationSet); 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 (getConfigurationSet() != null) sb.append("ConfigurationSet: ").append(getConfigurationSet()).append(","); if (getEventDestinations() != null) sb.append("EventDestinations: ").append(getEventDestinations()).append(","); if (getTrackingOptions() != null) sb.append("TrackingOptions: ").append(getTrackingOptions()).append(","); if (getReputationOptions() != null) sb.append("ReputationOptions: ").append(getReputationOptions()); sb.append("}"); return sb.toString(); }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param eventDestinations <p> * A list of event destinations associated with the configuration * set. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribeConfigurationSetResult withEventDestinations( java.util.Collection<EventDestination> eventDestinations) { setEventDestinations(eventDestinations); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode()); return hashCode; }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(java.util.Collection<EventDestination> eventDestinations) { setEventDestinations(eventDestinations); return this; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getConfigurationSet() != null) sb.append("ConfigurationSet: " + getConfigurationSet() + ","); if (getEventDestinations() != null) sb.append("EventDestinations: " + getEventDestinations() + ","); if (getTrackingOptions() != null) sb.append("TrackingOptions: " + getTrackingOptions() + ","); if (getReputationOptions() != null) sb.append("ReputationOptions: " + getReputationOptions()); sb.append("}"); return sb.toString(); }
/** * <p> * A list of event destinations associated with the configuration set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventDestinations(java.util.Collection)} or {@link #withEventDestinations(java.util.Collection)} if * you want to override the existing values. * </p> * * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(EventDestination... eventDestinations) { if (this.eventDestinations == null) { setEventDestinations(new com.amazonaws.internal.SdkInternalList<EventDestination>(eventDestinations.length)); } for (EventDestination ele : eventDestinations) { this.eventDestinations.add(ele); } return this; }