/* * 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.elasticloadbalancingv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModifyRuleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) of the rule. *
*/ private String ruleArn; /** ** The conditions. *
*/ private java.util.List* The actions. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the rule. *
* * @param ruleArn * The Amazon Resource Name (ARN) of the rule. */ public void setRuleArn(String ruleArn) { this.ruleArn = ruleArn; } /** ** The Amazon Resource Name (ARN) of the rule. *
* * @return The Amazon Resource Name (ARN) of the rule. */ public String getRuleArn() { return this.ruleArn; } /** ** The Amazon Resource Name (ARN) of the rule. *
* * @param ruleArn * The Amazon Resource Name (ARN) of the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyRuleRequest withRuleArn(String ruleArn) { setRuleArn(ruleArn); return this; } /** ** The conditions. *
* * @return The conditions. */ public java.util.List* The conditions. *
* * @param conditions * The conditions. */ public void setConditions(java.util.Collection* The conditions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setConditions(java.util.Collection)} or {@link #withConditions(java.util.Collection)} if you want to * override the existing values. *
* * @param conditions * The conditions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyRuleRequest withConditions(RuleCondition... conditions) { if (this.conditions == null) { setConditions(new java.util.ArrayList* The conditions. *
* * @param conditions * The conditions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyRuleRequest withConditions(java.util.Collection* The actions. *
* * @return The actions. */ public java.util.List* The actions. *
* * @param actions * The actions. */ public void setActions(java.util.Collection* The actions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. *
* * @param actions * The actions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyRuleRequest withActions(Action... actions) { if (this.actions == null) { setActions(new java.util.ArrayList* The actions. *
* * @param actions * The actions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyRuleRequest withActions(java.util.Collection