/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloudwatchevidently.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A structure containing the configuration details of an experiment. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Experiment implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the experiment. *
*/ private String arn; /** ** The date and time that the experiment is first created. *
*/ private java.util.Date createdTime; /** ** A description of the experiment. *
*/ private String description; /** ** A structure that contains the date and time that the experiment started and ended. *
*/ private ExperimentExecution execution; /** ** The date and time that the experiment was most recently updated. *
*/ private java.util.Date lastUpdatedTime; /** ** An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for * each metric is the goal. *
*/ private java.util.List* The name of the experiment. *
*/ private String name; /** ** A structure that contains the configuration of which variation to use as the "control" version. The "control" * version is used for comparison with other variations. This structure also specifies how much experiment traffic * is allocated to each variation. *
*/ private OnlineAbDefinition onlineAbDefinition; /** ** The name or ARN of the project that contains this experiment. *
*/ private String project; /** *
* This value is used when Evidently assigns a particular user session to the experiment. It helps create a
* randomization ID to determine which variation the user session is served. This randomization ID is a combination
* of the entity ID and randomizationSalt
.
*
* In thousandths of a percent, the amount of the available audience that is allocated to this experiment. The * available audience is the total audience minus the audience that you have allocated to overrides or current * launches of this feature. *
** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. *
*/ private Long samplingRate; /** ** A structure that contains the time and date that Evidently completed the analysis of the experiment. *
*/ private ExperimentSchedule schedule; /** ** The audience segment being used for the experiment, if a segment is being used. *
*/ private String segment; /** ** The current state of the experiment. *
*/ private String status; /** ** If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to * explain why it was stopped. *
*/ private String statusReason; /** ** The list of tag keys and values associated with this experiment. *
*/ private java.util.Map* An array of structures that describe the configuration of each feature variation used in the experiment. *
*/ private java.util.List
* The type of this experiment. Currently, this value must be aws.experiment.onlineab
.
*
* The ARN of the experiment. *
* * @param arn * The ARN of the experiment. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the experiment. *
* * @return The ARN of the experiment. */ public String getArn() { return this.arn; } /** ** The ARN of the experiment. *
* * @param arn * The ARN of the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withArn(String arn) { setArn(arn); return this; } /** ** The date and time that the experiment is first created. *
* * @param createdTime * The date and time that the experiment is first created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The date and time that the experiment is first created. *
* * @return The date and time that the experiment is first created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The date and time that the experiment is first created. *
* * @param createdTime * The date and time that the experiment is first created. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** A description of the experiment. *
* * @param description * A description of the experiment. */ public void setDescription(String description) { this.description = description; } /** ** A description of the experiment. *
* * @return A description of the experiment. */ public String getDescription() { return this.description; } /** ** A description of the experiment. *
* * @param description * A description of the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withDescription(String description) { setDescription(description); return this; } /** ** A structure that contains the date and time that the experiment started and ended. *
* * @param execution * A structure that contains the date and time that the experiment started and ended. */ public void setExecution(ExperimentExecution execution) { this.execution = execution; } /** ** A structure that contains the date and time that the experiment started and ended. *
* * @return A structure that contains the date and time that the experiment started and ended. */ public ExperimentExecution getExecution() { return this.execution; } /** ** A structure that contains the date and time that the experiment started and ended. *
* * @param execution * A structure that contains the date and time that the experiment started and ended. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withExecution(ExperimentExecution execution) { setExecution(execution); return this; } /** ** The date and time that the experiment was most recently updated. *
* * @param lastUpdatedTime * The date and time that the experiment was most recently updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The date and time that the experiment was most recently updated. *
* * @return The date and time that the experiment was most recently updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** The date and time that the experiment was most recently updated. *
* * @param lastUpdatedTime * The date and time that the experiment was most recently updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** ** An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for * each metric is the goal. *
* * @return An array of structures that defines the metrics used for the experiment, and whether a higher or lower * value for each metric is the goal. */ public java.util.List* An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for * each metric is the goal. *
* * @param metricGoals * An array of structures that defines the metrics used for the experiment, and whether a higher or lower * value for each metric is the goal. */ public void setMetricGoals(java.util.Collection* An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for * each metric is the goal. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetricGoals(java.util.Collection)} or {@link #withMetricGoals(java.util.Collection)} if you want to * override the existing values. *
* * @param metricGoals * An array of structures that defines the metrics used for the experiment, and whether a higher or lower * value for each metric is the goal. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withMetricGoals(MetricGoal... metricGoals) { if (this.metricGoals == null) { setMetricGoals(new java.util.ArrayList* An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for * each metric is the goal. *
* * @param metricGoals * An array of structures that defines the metrics used for the experiment, and whether a higher or lower * value for each metric is the goal. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withMetricGoals(java.util.Collection* The name of the experiment. *
* * @param name * The name of the experiment. */ public void setName(String name) { this.name = name; } /** ** The name of the experiment. *
* * @return The name of the experiment. */ public String getName() { return this.name; } /** ** The name of the experiment. *
* * @param name * The name of the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withName(String name) { setName(name); return this; } /** ** A structure that contains the configuration of which variation to use as the "control" version. The "control" * version is used for comparison with other variations. This structure also specifies how much experiment traffic * is allocated to each variation. *
* * @param onlineAbDefinition * A structure that contains the configuration of which variation to use as the "control" version. The * "control" version is used for comparison with other variations. This structure also specifies how much * experiment traffic is allocated to each variation. */ public void setOnlineAbDefinition(OnlineAbDefinition onlineAbDefinition) { this.onlineAbDefinition = onlineAbDefinition; } /** ** A structure that contains the configuration of which variation to use as the "control" version. The "control" * version is used for comparison with other variations. This structure also specifies how much experiment traffic * is allocated to each variation. *
* * @return A structure that contains the configuration of which variation to use as the "control" version. The * "control" version is used for comparison with other variations. This structure also specifies how much * experiment traffic is allocated to each variation. */ public OnlineAbDefinition getOnlineAbDefinition() { return this.onlineAbDefinition; } /** ** A structure that contains the configuration of which variation to use as the "control" version. The "control" * version is used for comparison with other variations. This structure also specifies how much experiment traffic * is allocated to each variation. *
* * @param onlineAbDefinition * A structure that contains the configuration of which variation to use as the "control" version. The * "control" version is used for comparison with other variations. This structure also specifies how much * experiment traffic is allocated to each variation. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withOnlineAbDefinition(OnlineAbDefinition onlineAbDefinition) { setOnlineAbDefinition(onlineAbDefinition); return this; } /** ** The name or ARN of the project that contains this experiment. *
* * @param project * The name or ARN of the project that contains this experiment. */ public void setProject(String project) { this.project = project; } /** ** The name or ARN of the project that contains this experiment. *
* * @return The name or ARN of the project that contains this experiment. */ public String getProject() { return this.project; } /** ** The name or ARN of the project that contains this experiment. *
* * @param project * The name or ARN of the project that contains this experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withProject(String project) { setProject(project); return this; } /** *
* This value is used when Evidently assigns a particular user session to the experiment. It helps create a
* randomization ID to determine which variation the user session is served. This randomization ID is a combination
* of the entity ID and randomizationSalt
.
*
randomizationSalt
.
*/
public void setRandomizationSalt(String randomizationSalt) {
this.randomizationSalt = randomizationSalt;
}
/**
*
* This value is used when Evidently assigns a particular user session to the experiment. It helps create a
* randomization ID to determine which variation the user session is served. This randomization ID is a combination
* of the entity ID and randomizationSalt
.
*
randomizationSalt
.
*/
public String getRandomizationSalt() {
return this.randomizationSalt;
}
/**
*
* This value is used when Evidently assigns a particular user session to the experiment. It helps create a
* randomization ID to determine which variation the user session is served. This randomization ID is a combination
* of the entity ID and randomizationSalt
.
*
randomizationSalt
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Experiment withRandomizationSalt(String randomizationSalt) {
setRandomizationSalt(randomizationSalt);
return this;
}
/**
* * In thousandths of a percent, the amount of the available audience that is allocated to this experiment. The * available audience is the total audience minus the audience that you have allocated to overrides or current * launches of this feature. *
** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. *
* * @param samplingRate * In thousandths of a percent, the amount of the available audience that is allocated to this experiment. * The available audience is the total audience minus the audience that you have allocated to overrides or * current launches of this feature. ** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. */ public void setSamplingRate(Long samplingRate) { this.samplingRate = samplingRate; } /** *
* In thousandths of a percent, the amount of the available audience that is allocated to this experiment. The * available audience is the total audience minus the audience that you have allocated to overrides or current * launches of this feature. *
** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. *
* * @return In thousandths of a percent, the amount of the available audience that is allocated to this experiment. * The available audience is the total audience minus the audience that you have allocated to overrides or * current launches of this feature. ** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. */ public Long getSamplingRate() { return this.samplingRate; } /** *
* In thousandths of a percent, the amount of the available audience that is allocated to this experiment. The * available audience is the total audience minus the audience that you have allocated to overrides or current * launches of this feature. *
** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. *
* * @param samplingRate * In thousandths of a percent, the amount of the available audience that is allocated to this experiment. * The available audience is the total audience minus the audience that you have allocated to overrides or * current launches of this feature. ** This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withSamplingRate(Long samplingRate) { setSamplingRate(samplingRate); return this; } /** *
* A structure that contains the time and date that Evidently completed the analysis of the experiment. *
* * @param schedule * A structure that contains the time and date that Evidently completed the analysis of the experiment. */ public void setSchedule(ExperimentSchedule schedule) { this.schedule = schedule; } /** ** A structure that contains the time and date that Evidently completed the analysis of the experiment. *
* * @return A structure that contains the time and date that Evidently completed the analysis of the experiment. */ public ExperimentSchedule getSchedule() { return this.schedule; } /** ** A structure that contains the time and date that Evidently completed the analysis of the experiment. *
* * @param schedule * A structure that contains the time and date that Evidently completed the analysis of the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withSchedule(ExperimentSchedule schedule) { setSchedule(schedule); return this; } /** ** The audience segment being used for the experiment, if a segment is being used. *
* * @param segment * The audience segment being used for the experiment, if a segment is being used. */ public void setSegment(String segment) { this.segment = segment; } /** ** The audience segment being used for the experiment, if a segment is being used. *
* * @return The audience segment being used for the experiment, if a segment is being used. */ public String getSegment() { return this.segment; } /** ** The audience segment being used for the experiment, if a segment is being used. *
* * @param segment * The audience segment being used for the experiment, if a segment is being used. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withSegment(String segment) { setSegment(segment); return this; } /** ** The current state of the experiment. *
* * @param status * The current state of the experiment. * @see ExperimentStatus */ public void setStatus(String status) { this.status = status; } /** ** The current state of the experiment. *
* * @return The current state of the experiment. * @see ExperimentStatus */ public String getStatus() { return this.status; } /** ** The current state of the experiment. *
* * @param status * The current state of the experiment. * @return Returns a reference to this object so that method calls can be chained together. * @see ExperimentStatus */ public Experiment withStatus(String status) { setStatus(status); return this; } /** ** The current state of the experiment. *
* * @param status * The current state of the experiment. * @return Returns a reference to this object so that method calls can be chained together. * @see ExperimentStatus */ public Experiment withStatus(ExperimentStatus status) { this.status = status.toString(); return this; } /** ** If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to * explain why it was stopped. *
* * @param statusReason * If the experiment was stopped, this is the string that was entered by the person who stopped the * experiment, to explain why it was stopped. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** ** If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to * explain why it was stopped. *
* * @return If the experiment was stopped, this is the string that was entered by the person who stopped the * experiment, to explain why it was stopped. */ public String getStatusReason() { return this.statusReason; } /** ** If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to * explain why it was stopped. *
* * @param statusReason * If the experiment was stopped, this is the string that was entered by the person who stopped the * experiment, to explain why it was stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** ** The list of tag keys and values associated with this experiment. *
* * @return The list of tag keys and values associated with this experiment. */ public java.util.Map* The list of tag keys and values associated with this experiment. *
* * @param tags * The list of tag keys and values associated with this experiment. */ public void setTags(java.util.Map* The list of tag keys and values associated with this experiment. *
* * @param tags * The list of tag keys and values associated with this experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withTags(java.util.Map* An array of structures that describe the configuration of each feature variation used in the experiment. *
* * @return An array of structures that describe the configuration of each feature variation used in the experiment. */ public java.util.List* An array of structures that describe the configuration of each feature variation used in the experiment. *
* * @param treatments * An array of structures that describe the configuration of each feature variation used in the experiment. */ public void setTreatments(java.util.Collection* An array of structures that describe the configuration of each feature variation used in the experiment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTreatments(java.util.Collection)} or {@link #withTreatments(java.util.Collection)} if you want to * override the existing values. *
* * @param treatments * An array of structures that describe the configuration of each feature variation used in the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withTreatments(Treatment... treatments) { if (this.treatments == null) { setTreatments(new java.util.ArrayList* An array of structures that describe the configuration of each feature variation used in the experiment. *
* * @param treatments * An array of structures that describe the configuration of each feature variation used in the experiment. * @return Returns a reference to this object so that method calls can be chained together. */ public Experiment withTreatments(java.util.Collection
* The type of this experiment. Currently, this value must be aws.experiment.onlineab
.
*
aws.experiment.onlineab
.
* @see ExperimentType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The type of this experiment. Currently, this value must be aws.experiment.onlineab
.
*
aws.experiment.onlineab
.
* @see ExperimentType
*/
public String getType() {
return this.type;
}
/**
*
* The type of this experiment. Currently, this value must be aws.experiment.onlineab
.
*
aws.experiment.onlineab
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExperimentType
*/
public Experiment withType(String type) {
setType(type);
return this;
}
/**
*
* The type of this experiment. Currently, this value must be aws.experiment.onlineab
.
*
aws.experiment.onlineab
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExperimentType
*/
public Experiment withType(ExperimentType type) {
this.type = type.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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getExecution() != null)
sb.append("Execution: ").append(getExecution()).append(",");
if (getLastUpdatedTime() != null)
sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(",");
if (getMetricGoals() != null)
sb.append("MetricGoals: ").append(getMetricGoals()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getOnlineAbDefinition() != null)
sb.append("OnlineAbDefinition: ").append(getOnlineAbDefinition()).append(",");
if (getProject() != null)
sb.append("Project: ").append(getProject()).append(",");
if (getRandomizationSalt() != null)
sb.append("RandomizationSalt: ").append(getRandomizationSalt()).append(",");
if (getSamplingRate() != null)
sb.append("SamplingRate: ").append(getSamplingRate()).append(",");
if (getSchedule() != null)
sb.append("Schedule: ").append(getSchedule()).append(",");
if (getSegment() != null)
sb.append("Segment: ").append(getSegment()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusReason() != null)
sb.append("StatusReason: ").append(getStatusReason()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getTreatments() != null)
sb.append("Treatments: ").append(getTreatments()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Experiment == false)
return false;
Experiment other = (Experiment) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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.getExecution() == null ^ this.getExecution() == null)
return false;
if (other.getExecution() != null && other.getExecution().equals(this.getExecution()) == false)
return false;
if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null)
return false;
if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false)
return false;
if (other.getMetricGoals() == null ^ this.getMetricGoals() == null)
return false;
if (other.getMetricGoals() != null && other.getMetricGoals().equals(this.getMetricGoals()) == 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.getOnlineAbDefinition() == null ^ this.getOnlineAbDefinition() == null)
return false;
if (other.getOnlineAbDefinition() != null && other.getOnlineAbDefinition().equals(this.getOnlineAbDefinition()) == false)
return false;
if (other.getProject() == null ^ this.getProject() == null)
return false;
if (other.getProject() != null && other.getProject().equals(this.getProject()) == false)
return false;
if (other.getRandomizationSalt() == null ^ this.getRandomizationSalt() == null)
return false;
if (other.getRandomizationSalt() != null && other.getRandomizationSalt().equals(this.getRandomizationSalt()) == false)
return false;
if (other.getSamplingRate() == null ^ this.getSamplingRate() == null)
return false;
if (other.getSamplingRate() != null && other.getSamplingRate().equals(this.getSamplingRate()) == false)
return false;
if (other.getSchedule() == null ^ this.getSchedule() == null)
return false;
if (other.getSchedule() != null && other.getSchedule().equals(this.getSchedule()) == false)
return false;
if (other.getSegment() == null ^ this.getSegment() == null)
return false;
if (other.getSegment() != null && other.getSegment().equals(this.getSegment()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusReason() == null ^ this.getStatusReason() == null)
return false;
if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getTreatments() == null ^ this.getTreatments() == null)
return false;
if (other.getTreatments() != null && other.getTreatments().equals(this.getTreatments()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getExecution() == null) ? 0 : getExecution().hashCode());
hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode());
hashCode = prime * hashCode + ((getMetricGoals() == null) ? 0 : getMetricGoals().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getOnlineAbDefinition() == null) ? 0 : getOnlineAbDefinition().hashCode());
hashCode = prime * hashCode + ((getProject() == null) ? 0 : getProject().hashCode());
hashCode = prime * hashCode + ((getRandomizationSalt() == null) ? 0 : getRandomizationSalt().hashCode());
hashCode = prime * hashCode + ((getSamplingRate() == null) ? 0 : getSamplingRate().hashCode());
hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode());
hashCode = prime * hashCode + ((getSegment() == null) ? 0 : getSegment().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getTreatments() == null) ? 0 : getTreatments().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
return hashCode;
}
@Override
public Experiment clone() {
try {
return (Experiment) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.cloudwatchevidently.model.transform.ExperimentMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}