/** * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * * @param securityGroups * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withSecurityGroups(java.util.Collection<String> securityGroups) { setSecurityGroups(securityGroups); return this; }
/** * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. * </p> * * @param securityGroups * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new java.util.ArrayList<String>(securityGroups.length)); } for (String ele : securityGroups) { this.securityGroups.add(ele); } return this; }
describeBrokerResult.setSecurityGroups(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * * @param securityGroups * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withSecurityGroups(java.util.Collection<String> securityGroups) { setSecurityGroups(securityGroups); return this; }
/** * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. * </p> * * @param securityGroups * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new java.util.ArrayList<String>(securityGroups.length)); } for (String ele : securityGroups) { this.securityGroups.add(ele); } return this; }
describeBrokerResult.setSecurityGroups(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));