/* * 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 the policies for a load balancer. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsElbLoadBalancerPolicies implements Serializable, Cloneable, StructuredPojo { /** *
* The stickiness policies that are created using CreateAppCookieStickinessPolicy
.
*
* The stickiness policies that are created using CreateLBCookieStickinessPolicy
.
*
* The policies other than the stickiness policies. *
*/ private java.util.List
* The stickiness policies that are created using CreateAppCookieStickinessPolicy
.
*
CreateAppCookieStickinessPolicy
.
*/
public java.util.List
* The stickiness policies that are created using CreateAppCookieStickinessPolicy
.
*
CreateAppCookieStickinessPolicy
.
*/
public void setAppCookieStickinessPolicies(java.util.Collection
* The stickiness policies that are 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 that are created usingCreateAppCookieStickinessPolicy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerPolicies withAppCookieStickinessPolicies(AwsElbAppCookieStickinessPolicy... appCookieStickinessPolicies) {
if (this.appCookieStickinessPolicies == null) {
setAppCookieStickinessPolicies(new java.util.ArrayList
* The stickiness policies that are created using CreateAppCookieStickinessPolicy
.
*
CreateAppCookieStickinessPolicy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerPolicies withAppCookieStickinessPolicies(java.util.Collection
* The stickiness policies that are created using CreateLBCookieStickinessPolicy
.
*
CreateLBCookieStickinessPolicy
.
*/
public java.util.List
* The stickiness policies that are created using CreateLBCookieStickinessPolicy
.
*
CreateLBCookieStickinessPolicy
.
*/
public void setLbCookieStickinessPolicies(java.util.Collection
* The stickiness policies that are 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 that are created usingCreateLBCookieStickinessPolicy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerPolicies withLbCookieStickinessPolicies(AwsElbLbCookieStickinessPolicy... lbCookieStickinessPolicies) {
if (this.lbCookieStickinessPolicies == null) {
setLbCookieStickinessPolicies(new java.util.ArrayList
* The stickiness policies that are created using CreateLBCookieStickinessPolicy
.
*
CreateLBCookieStickinessPolicy
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsElbLoadBalancerPolicies 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 AwsElbLoadBalancerPolicies withOtherPolicies(String... otherPolicies) { if (this.otherPolicies == null) { setOtherPolicies(new java.util.ArrayList* 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 AwsElbLoadBalancerPolicies withOtherPolicies(java.util.Collection