/* * 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; /** *
* This structure contains information about one Evidently feature in your account. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FeatureSummary implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the feature. *
*/ private String arn; /** ** The date and time that the feature is created. *
*/ private java.util.Date createdTime; /** ** The name of the variation that is used as the default variation. The default variation is served to users who are * not allocated to any ongoing launches or experiments of this feature. *
*/ private String defaultVariation; /** ** An array of structures that define *
*/ private java.util.List
* If this value is ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
*
* The date and time that the feature was most recently updated. *
*/ private java.util.Date lastUpdatedTime; /** ** The name of the feature. *
*/ private String name; /** ** The name or ARN of the project that contains the feature. *
*/ private String project; /** ** The current state of the feature. *
*/ private String status; /** ** The list of tag keys and values associated with this feature. *
*/ private java.util.Map* The ARN of the feature. *
* * @param arn * The ARN of the feature. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the feature. *
* * @return The ARN of the feature. */ public String getArn() { return this.arn; } /** ** The ARN of the feature. *
* * @param arn * The ARN of the feature. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withArn(String arn) { setArn(arn); return this; } /** ** The date and time that the feature is created. *
* * @param createdTime * The date and time that the feature is created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The date and time that the feature is created. *
* * @return The date and time that the feature is created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The date and time that the feature is created. *
* * @param createdTime * The date and time that the feature is created. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** The name of the variation that is used as the default variation. The default variation is served to users who are * not allocated to any ongoing launches or experiments of this feature. *
* * @param defaultVariation * The name of the variation that is used as the default variation. The default variation is served to users * who are not allocated to any ongoing launches or experiments of this feature. */ public void setDefaultVariation(String defaultVariation) { this.defaultVariation = defaultVariation; } /** ** The name of the variation that is used as the default variation. The default variation is served to users who are * not allocated to any ongoing launches or experiments of this feature. *
* * @return The name of the variation that is used as the default variation. The default variation is served to users * who are not allocated to any ongoing launches or experiments of this feature. */ public String getDefaultVariation() { return this.defaultVariation; } /** ** The name of the variation that is used as the default variation. The default variation is served to users who are * not allocated to any ongoing launches or experiments of this feature. *
* * @param defaultVariation * The name of the variation that is used as the default variation. The default variation is served to users * who are not allocated to any ongoing launches or experiments of this feature. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withDefaultVariation(String defaultVariation) { setDefaultVariation(defaultVariation); return this; } /** ** An array of structures that define *
* * @return An array of structures that define */ public java.util.List* An array of structures that define *
* * @param evaluationRules * An array of structures that define */ public void setEvaluationRules(java.util.Collection* An array of structures that define *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEvaluationRules(java.util.Collection)} or {@link #withEvaluationRules(java.util.Collection)} if you * want to override the existing values. *
* * @param evaluationRules * An array of structures that define * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withEvaluationRules(EvaluationRule... evaluationRules) { if (this.evaluationRules == null) { setEvaluationRules(new java.util.ArrayList* An array of structures that define *
* * @param evaluationRules * An array of structures that define * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withEvaluationRules(java.util.Collection
* If this value is ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
*
ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @see FeatureEvaluationStrategy
*/
public void setEvaluationStrategy(String evaluationStrategy) {
this.evaluationStrategy = evaluationStrategy;
}
/**
*
* If this value is ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
*
ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @see FeatureEvaluationStrategy
*/
public String getEvaluationStrategy() {
return this.evaluationStrategy;
}
/**
*
* If this value is ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
*
ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureEvaluationStrategy
*/
public FeatureSummary withEvaluationStrategy(String evaluationStrategy) {
setEvaluationStrategy(evaluationStrategy);
return this;
}
/**
*
* If this value is ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
*
ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureEvaluationStrategy
*/
public FeatureSummary withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy) {
this.evaluationStrategy = evaluationStrategy.toString();
return this;
}
/**
* * The date and time that the feature was most recently updated. *
* * @param lastUpdatedTime * The date and time that the feature was most recently updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** ** The date and time that the feature was most recently updated. *
* * @return The date and time that the feature was most recently updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** ** The date and time that the feature was most recently updated. *
* * @param lastUpdatedTime * The date and time that the feature was most recently updated. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** ** The name of the feature. *
* * @param name * The name of the feature. */ public void setName(String name) { this.name = name; } /** ** The name of the feature. *
* * @return The name of the feature. */ public String getName() { return this.name; } /** ** The name of the feature. *
* * @param name * The name of the feature. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withName(String name) { setName(name); return this; } /** ** The name or ARN of the project that contains the feature. *
* * @param project * The name or ARN of the project that contains the feature. */ public void setProject(String project) { this.project = project; } /** ** The name or ARN of the project that contains the feature. *
* * @return The name or ARN of the project that contains the feature. */ public String getProject() { return this.project; } /** ** The name or ARN of the project that contains the feature. *
* * @param project * The name or ARN of the project that contains the feature. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withProject(String project) { setProject(project); return this; } /** ** The current state of the feature. *
* * @param status * The current state of the feature. * @see FeatureStatus */ public void setStatus(String status) { this.status = status; } /** ** The current state of the feature. *
* * @return The current state of the feature. * @see FeatureStatus */ public String getStatus() { return this.status; } /** ** The current state of the feature. *
* * @param status * The current state of the feature. * @return Returns a reference to this object so that method calls can be chained together. * @see FeatureStatus */ public FeatureSummary withStatus(String status) { setStatus(status); return this; } /** ** The current state of the feature. *
* * @param status * The current state of the feature. * @return Returns a reference to this object so that method calls can be chained together. * @see FeatureStatus */ public FeatureSummary withStatus(FeatureStatus status) { this.status = status.toString(); return this; } /** ** The list of tag keys and values associated with this feature. *
* * @return The list of tag keys and values associated with this feature. */ public java.util.Map* The list of tag keys and values associated with this feature. *
* * @param tags * The list of tag keys and values associated with this feature. */ public void setTags(java.util.Map* The list of tag keys and values associated with this feature. *
* * @param tags * The list of tag keys and values associated with this feature. * @return Returns a reference to this object so that method calls can be chained together. */ public FeatureSummary withTags(java.util.Map