/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about settings for canary deployment in the stage. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsApiGatewayCanarySettings implements Serializable, Cloneable, StructuredPojo { /** ** The percentage of traffic that is diverted to a canary deployment. *
*/ private Double percentTraffic; /** ** The deployment identifier for the canary deployment. *
*/ private String deploymentId; /** ** Stage variables that are overridden in the canary release deployment. The variables include new stage variables * that are introduced in the canary. *
** Each variable is represented as a string-to-string map between the stage variable name and the variable value. *
*/ private java.util.Map* Indicates whether the canary deployment uses the stage cache. *
*/ private Boolean useStageCache; /** ** The percentage of traffic that is diverted to a canary deployment. *
* * @param percentTraffic * The percentage of traffic that is diverted to a canary deployment. */ public void setPercentTraffic(Double percentTraffic) { this.percentTraffic = percentTraffic; } /** ** The percentage of traffic that is diverted to a canary deployment. *
* * @return The percentage of traffic that is diverted to a canary deployment. */ public Double getPercentTraffic() { return this.percentTraffic; } /** ** The percentage of traffic that is diverted to a canary deployment. *
* * @param percentTraffic * The percentage of traffic that is diverted to a canary deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiGatewayCanarySettings withPercentTraffic(Double percentTraffic) { setPercentTraffic(percentTraffic); return this; } /** ** The deployment identifier for the canary deployment. *
* * @param deploymentId * The deployment identifier for the canary deployment. */ public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } /** ** The deployment identifier for the canary deployment. *
* * @return The deployment identifier for the canary deployment. */ public String getDeploymentId() { return this.deploymentId; } /** ** The deployment identifier for the canary deployment. *
* * @param deploymentId * The deployment identifier for the canary deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiGatewayCanarySettings withDeploymentId(String deploymentId) { setDeploymentId(deploymentId); return this; } /** ** Stage variables that are overridden in the canary release deployment. The variables include new stage variables * that are introduced in the canary. *
** Each variable is represented as a string-to-string map between the stage variable name and the variable value. *
* * @return Stage variables that are overridden in the canary release deployment. The variables include new stage * variables that are introduced in the canary. *
* Each variable is represented as a string-to-string map between the stage variable name and the variable
* value.
*/
public java.util.Map
* Stage variables that are overridden in the canary release deployment. The variables include new stage variables
* that are introduced in the canary.
*
* Each variable is represented as a string-to-string map between the stage variable name and the variable value.
*
* Each variable is represented as a string-to-string map between the stage variable name and the variable
* value.
*/
public void setStageVariableOverrides(java.util.Map
* Stage variables that are overridden in the canary release deployment. The variables include new stage variables
* that are introduced in the canary.
*
* Each variable is represented as a string-to-string map between the stage variable name and the variable value.
*
* Each variable is represented as a string-to-string map between the stage variable name and the variable
* value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsApiGatewayCanarySettings withStageVariableOverrides(java.util.Map
* Indicates whether the canary deployment uses the stage cache.
*
* Indicates whether the canary deployment uses the stage cache.
*
* Indicates whether the canary deployment uses the stage cache.
*
* Indicates whether the canary deployment uses the stage cache.
*