* Retrieve information about the subscriber created using the CreateSubscriber
API.
*
* Retrieve information about the subscriber created using the CreateSubscriber
API.
*
CreateSubscriber
API.
*/
public void setSubscriber(SubscriberResource subscriber) {
this.subscriber = subscriber;
}
/**
*
* Retrieve information about the subscriber created using the CreateSubscriber
API.
*
CreateSubscriber
API.
*/
public SubscriberResource getSubscriber() {
return this.subscriber;
}
/**
*
* Retrieve information about the subscriber created using the CreateSubscriber
API.
*
CreateSubscriber
API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateSubscriberResult withSubscriber(SubscriberResource subscriber) {
setSubscriber(subscriber);
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 (getSubscriber() != null)
sb.append("Subscriber: ").append(getSubscriber());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateSubscriberResult == false)
return false;
CreateSubscriberResult other = (CreateSubscriberResult) obj;
if (other.getSubscriber() == null ^ this.getSubscriber() == null)
return false;
if (other.getSubscriber() != null && other.getSubscriber().equals(this.getSubscriber()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSubscriber() == null) ? 0 : getSubscriber().hashCode());
return hashCode;
}
@Override
public CreateSubscriberResult clone() {
try {
return (CreateSubscriberResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}