* Specifies the body of a backup plan. Includes a BackupPlanName
and one or more sets of
* Rules
.
*
* Specifies the body of a backup plan. Includes a BackupPlanName
and one or more sets of
* Rules
.
*
BackupPlanName
and one or more sets of
* Rules
.
*/
public void setBackupPlan(BackupPlan backupPlan) {
this.backupPlan = backupPlan;
}
/**
*
* Specifies the body of a backup plan. Includes a BackupPlanName
and one or more sets of
* Rules
.
*
BackupPlanName
and one or more sets of
* Rules
.
*/
public BackupPlan getBackupPlan() {
return this.backupPlan;
}
/**
*
* Specifies the body of a backup plan. Includes a BackupPlanName
and one or more sets of
* Rules
.
*
BackupPlanName
and one or more sets of
* Rules
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetBackupPlanFromJSONResult withBackupPlan(BackupPlan backupPlan) {
setBackupPlan(backupPlan);
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 (getBackupPlan() != null)
sb.append("BackupPlan: ").append(getBackupPlan());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetBackupPlanFromJSONResult == false)
return false;
GetBackupPlanFromJSONResult other = (GetBackupPlanFromJSONResult) obj;
if (other.getBackupPlan() == null ^ this.getBackupPlan() == null)
return false;
if (other.getBackupPlan() != null && other.getBackupPlan().equals(this.getBackupPlan()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBackupPlan() == null) ? 0 : getBackupPlan().hashCode());
return hashCode;
}
@Override
public GetBackupPlanFromJSONResult clone() {
try {
return (GetBackupPlanFromJSONResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}