* Returns true
if the Lightsail VPC is peered; otherwise, false
.
*
* Returns true
if the Lightsail VPC is peered; otherwise, false
.
*
true
if the Lightsail VPC is peered; otherwise, false
.
*/
public void setIsPeered(Boolean isPeered) {
this.isPeered = isPeered;
}
/**
*
* Returns true
if the Lightsail VPC is peered; otherwise, false
.
*
true
if the Lightsail VPC is peered; otherwise, false
.
*/
public Boolean getIsPeered() {
return this.isPeered;
}
/**
*
* Returns true
if the Lightsail VPC is peered; otherwise, false
.
*
true
if the Lightsail VPC is peered; otherwise, false
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IsVpcPeeredResult withIsPeered(Boolean isPeered) {
setIsPeered(isPeered);
return this;
}
/**
*
* Returns true
if the Lightsail VPC is peered; otherwise, false
.
*
true
if the Lightsail VPC is peered; otherwise, false
.
*/
public Boolean isPeered() {
return this.isPeered;
}
/**
* 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 (getIsPeered() != null)
sb.append("IsPeered: ").append(getIsPeered());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof IsVpcPeeredResult == false)
return false;
IsVpcPeeredResult other = (IsVpcPeeredResult) obj;
if (other.getIsPeered() == null ^ this.getIsPeered() == null)
return false;
if (other.getIsPeered() != null && other.getIsPeered().equals(this.getIsPeered()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIsPeered() == null) ? 0 : getIsPeered().hashCode());
return hashCode;
}
@Override
public IsVpcPeeredResult clone() {
try {
return (IsVpcPeeredResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}