* The deployment strategy ID. *
*/ private String id; /** ** The name of the deployment strategy. *
*/ private String name; /** ** The description of the deployment strategy. *
*/ private String description; /** ** Total amount of time the deployment lasted. *
*/ private Integer deploymentDurationInMinutes; /** ** The algorithm used to define how percentage grew over time. *
*/ private String growthType; /** ** The percentage of targets that received a deployed configuration during each interval. *
*/ private Float growthFactor; /** ** The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *
*/ private Integer finalBakeTimeInMinutes; /** ** Save the deployment strategy to a Systems Manager (SSM) document. *
*/ private String replicateTo; /** ** The deployment strategy ID. *
* * @param id * The deployment strategy ID. */ public void setId(String id) { this.id = id; } /** ** The deployment strategy ID. *
* * @return The deployment strategy ID. */ public String getId() { return this.id; } /** ** The deployment strategy ID. *
* * @param id * The deployment strategy ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentStrategyResult withId(String id) { setId(id); return this; } /** ** The name of the deployment strategy. *
* * @param name * The name of the deployment strategy. */ public void setName(String name) { this.name = name; } /** ** The name of the deployment strategy. *
* * @return The name of the deployment strategy. */ public String getName() { return this.name; } /** ** The name of the deployment strategy. *
* * @param name * The name of the deployment strategy. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentStrategyResult withName(String name) { setName(name); return this; } /** ** The description of the deployment strategy. *
* * @param description * The description of the deployment strategy. */ public void setDescription(String description) { this.description = description; } /** ** The description of the deployment strategy. *
* * @return The description of the deployment strategy. */ public String getDescription() { return this.description; } /** ** The description of the deployment strategy. *
* * @param description * The description of the deployment strategy. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentStrategyResult withDescription(String description) { setDescription(description); return this; } /** ** Total amount of time the deployment lasted. *
* * @param deploymentDurationInMinutes * Total amount of time the deployment lasted. */ public void setDeploymentDurationInMinutes(Integer deploymentDurationInMinutes) { this.deploymentDurationInMinutes = deploymentDurationInMinutes; } /** ** Total amount of time the deployment lasted. *
* * @return Total amount of time the deployment lasted. */ public Integer getDeploymentDurationInMinutes() { return this.deploymentDurationInMinutes; } /** ** Total amount of time the deployment lasted. *
* * @param deploymentDurationInMinutes * Total amount of time the deployment lasted. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentStrategyResult withDeploymentDurationInMinutes(Integer deploymentDurationInMinutes) { setDeploymentDurationInMinutes(deploymentDurationInMinutes); return this; } /** ** The algorithm used to define how percentage grew over time. *
* * @param growthType * The algorithm used to define how percentage grew over time. * @see GrowthType */ public void setGrowthType(String growthType) { this.growthType = growthType; } /** ** The algorithm used to define how percentage grew over time. *
* * @return The algorithm used to define how percentage grew over time. * @see GrowthType */ public String getGrowthType() { return this.growthType; } /** ** The algorithm used to define how percentage grew over time. *
* * @param growthType * The algorithm used to define how percentage grew over time. * @return Returns a reference to this object so that method calls can be chained together. * @see GrowthType */ public CreateDeploymentStrategyResult withGrowthType(String growthType) { setGrowthType(growthType); return this; } /** ** The algorithm used to define how percentage grew over time. *
* * @param growthType * The algorithm used to define how percentage grew over time. * @return Returns a reference to this object so that method calls can be chained together. * @see GrowthType */ public CreateDeploymentStrategyResult withGrowthType(GrowthType growthType) { this.growthType = growthType.toString(); return this; } /** ** The percentage of targets that received a deployed configuration during each interval. *
* * @param growthFactor * The percentage of targets that received a deployed configuration during each interval. */ public void setGrowthFactor(Float growthFactor) { this.growthFactor = growthFactor; } /** ** The percentage of targets that received a deployed configuration during each interval. *
* * @return The percentage of targets that received a deployed configuration during each interval. */ public Float getGrowthFactor() { return this.growthFactor; } /** ** The percentage of targets that received a deployed configuration during each interval. *
* * @param growthFactor * The percentage of targets that received a deployed configuration during each interval. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentStrategyResult withGrowthFactor(Float growthFactor) { setGrowthFactor(growthFactor); return this; } /** ** The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *
* * @param finalBakeTimeInMinutes * The amount of time that AppConfig monitored for alarms before considering the deployment to be complete * and no longer eligible for automatic rollback. */ public void setFinalBakeTimeInMinutes(Integer finalBakeTimeInMinutes) { this.finalBakeTimeInMinutes = finalBakeTimeInMinutes; } /** ** The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *
* * @return The amount of time that AppConfig monitored for alarms before considering the deployment to be complete * and no longer eligible for automatic rollback. */ public Integer getFinalBakeTimeInMinutes() { return this.finalBakeTimeInMinutes; } /** ** The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *
* * @param finalBakeTimeInMinutes * The amount of time that AppConfig monitored for alarms before considering the deployment to be complete * and no longer eligible for automatic rollback. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentStrategyResult withFinalBakeTimeInMinutes(Integer finalBakeTimeInMinutes) { setFinalBakeTimeInMinutes(finalBakeTimeInMinutes); return this; } /** ** Save the deployment strategy to a Systems Manager (SSM) document. *
* * @param replicateTo * Save the deployment strategy to a Systems Manager (SSM) document. * @see ReplicateTo */ public void setReplicateTo(String replicateTo) { this.replicateTo = replicateTo; } /** ** Save the deployment strategy to a Systems Manager (SSM) document. *
* * @return Save the deployment strategy to a Systems Manager (SSM) document. * @see ReplicateTo */ public String getReplicateTo() { return this.replicateTo; } /** ** Save the deployment strategy to a Systems Manager (SSM) document. *
* * @param replicateTo * Save the deployment strategy to a Systems Manager (SSM) document. * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicateTo */ public CreateDeploymentStrategyResult withReplicateTo(String replicateTo) { setReplicateTo(replicateTo); return this; } /** ** Save the deployment strategy to a Systems Manager (SSM) document. *
* * @param replicateTo * Save the deployment strategy to a Systems Manager (SSM) document. * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicateTo */ public CreateDeploymentStrategyResult withReplicateTo(ReplicateTo replicateTo) { this.replicateTo = replicateTo.toString(); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDeploymentDurationInMinutes() != null) sb.append("DeploymentDurationInMinutes: ").append(getDeploymentDurationInMinutes()).append(","); if (getGrowthType() != null) sb.append("GrowthType: ").append(getGrowthType()).append(","); if (getGrowthFactor() != null) sb.append("GrowthFactor: ").append(getGrowthFactor()).append(","); if (getFinalBakeTimeInMinutes() != null) sb.append("FinalBakeTimeInMinutes: ").append(getFinalBakeTimeInMinutes()).append(","); if (getReplicateTo() != null) sb.append("ReplicateTo: ").append(getReplicateTo()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDeploymentStrategyResult == false) return false; CreateDeploymentStrategyResult other = (CreateDeploymentStrategyResult) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDeploymentDurationInMinutes() == null ^ this.getDeploymentDurationInMinutes() == null) return false; if (other.getDeploymentDurationInMinutes() != null && other.getDeploymentDurationInMinutes().equals(this.getDeploymentDurationInMinutes()) == false) return false; if (other.getGrowthType() == null ^ this.getGrowthType() == null) return false; if (other.getGrowthType() != null && other.getGrowthType().equals(this.getGrowthType()) == false) return false; if (other.getGrowthFactor() == null ^ this.getGrowthFactor() == null) return false; if (other.getGrowthFactor() != null && other.getGrowthFactor().equals(this.getGrowthFactor()) == false) return false; if (other.getFinalBakeTimeInMinutes() == null ^ this.getFinalBakeTimeInMinutes() == null) return false; if (other.getFinalBakeTimeInMinutes() != null && other.getFinalBakeTimeInMinutes().equals(this.getFinalBakeTimeInMinutes()) == false) return false; if (other.getReplicateTo() == null ^ this.getReplicateTo() == null) return false; if (other.getReplicateTo() != null && other.getReplicateTo().equals(this.getReplicateTo()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDeploymentDurationInMinutes() == null) ? 0 : getDeploymentDurationInMinutes().hashCode()); hashCode = prime * hashCode + ((getGrowthType() == null) ? 0 : getGrowthType().hashCode()); hashCode = prime * hashCode + ((getGrowthFactor() == null) ? 0 : getGrowthFactor().hashCode()); hashCode = prime * hashCode + ((getFinalBakeTimeInMinutes() == null) ? 0 : getFinalBakeTimeInMinutes().hashCode()); hashCode = prime * hashCode + ((getReplicateTo() == null) ? 0 : getReplicateTo().hashCode()); return hashCode; } @Override public CreateDeploymentStrategyResult clone() { try { return (CreateDeploymentStrategyResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }