/* * 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.elasticloadbalancing.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* The policies for a load balancer. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Policies implements Serializable, Cloneable { /** ** The stickiness policies created using CreateAppCookieStickinessPolicy. *
*/ private com.amazonaws.internal.SdkInternalList* The stickiness policies created using CreateLBCookieStickinessPolicy. *
*/ private com.amazonaws.internal.SdkInternalList* The policies other than the stickiness policies. *
*/ private com.amazonaws.internal.SdkInternalList* The stickiness policies created using CreateAppCookieStickinessPolicy. *
* * @return The stickiness policies created using CreateAppCookieStickinessPolicy. */ public java.util.List* The stickiness policies created using CreateAppCookieStickinessPolicy. *
* * @param appCookieStickinessPolicies * The stickiness policies created using CreateAppCookieStickinessPolicy. */ public void setAppCookieStickinessPolicies(java.util.Collection* The stickiness policies created using CreateAppCookieStickinessPolicy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAppCookieStickinessPolicies(java.util.Collection)} or * {@link #withAppCookieStickinessPolicies(java.util.Collection)} if you want to override the existing values. *
* * @param appCookieStickinessPolicies * The stickiness policies created using CreateAppCookieStickinessPolicy. * @return Returns a reference to this object so that method calls can be chained together. */ public Policies withAppCookieStickinessPolicies(AppCookieStickinessPolicy... appCookieStickinessPolicies) { if (this.appCookieStickinessPolicies == null) { setAppCookieStickinessPolicies(new com.amazonaws.internal.SdkInternalList* The stickiness policies created using CreateAppCookieStickinessPolicy. *
* * @param appCookieStickinessPolicies * The stickiness policies created using CreateAppCookieStickinessPolicy. * @return Returns a reference to this object so that method calls can be chained together. */ public Policies withAppCookieStickinessPolicies(java.util.Collection* The stickiness policies created using CreateLBCookieStickinessPolicy. *
* * @return The stickiness policies created using CreateLBCookieStickinessPolicy. */ public java.util.List* The stickiness policies created using CreateLBCookieStickinessPolicy. *
* * @param lBCookieStickinessPolicies * The stickiness policies created using CreateLBCookieStickinessPolicy. */ public void setLBCookieStickinessPolicies(java.util.Collection* The stickiness policies created using CreateLBCookieStickinessPolicy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLBCookieStickinessPolicies(java.util.Collection)} or * {@link #withLBCookieStickinessPolicies(java.util.Collection)} if you want to override the existing values. *
* * @param lBCookieStickinessPolicies * The stickiness policies created using CreateLBCookieStickinessPolicy. * @return Returns a reference to this object so that method calls can be chained together. */ public Policies withLBCookieStickinessPolicies(LBCookieStickinessPolicy... lBCookieStickinessPolicies) { if (this.lBCookieStickinessPolicies == null) { setLBCookieStickinessPolicies(new com.amazonaws.internal.SdkInternalList* The stickiness policies created using CreateLBCookieStickinessPolicy. *
* * @param lBCookieStickinessPolicies * The stickiness policies created using CreateLBCookieStickinessPolicy. * @return Returns a reference to this object so that method calls can be chained together. */ public Policies withLBCookieStickinessPolicies(java.util.Collection* The policies other than the stickiness policies. *
* * @return The policies other than the stickiness policies. */ public java.util.List* The policies other than the stickiness policies. *
* * @param otherPolicies * The policies other than the stickiness policies. */ public void setOtherPolicies(java.util.Collection* The policies other than the stickiness policies. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOtherPolicies(java.util.Collection)} or {@link #withOtherPolicies(java.util.Collection)} if you want * to override the existing values. *
* * @param otherPolicies * The policies other than the stickiness policies. * @return Returns a reference to this object so that method calls can be chained together. */ public Policies withOtherPolicies(String... otherPolicies) { if (this.otherPolicies == null) { setOtherPolicies(new com.amazonaws.internal.SdkInternalList* The policies other than the stickiness policies. *
* * @param otherPolicies * The policies other than the stickiness policies. * @return Returns a reference to this object so that method calls can be chained together. */ public Policies withOtherPolicies(java.util.Collection