/** * A list of information about allocated brokers. * * @param brokerInstances * A list of information about allocated brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withBrokerInstances(java.util.Collection<BrokerInstance> brokerInstances) { setBrokerInstances(brokerInstances); return this; }
/** * A list of information about allocated brokers. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBrokerInstances(java.util.Collection)} or {@link #withBrokerInstances(java.util.Collection)} if you * want to override the existing values. * </p> * * @param brokerInstances * A list of information about allocated brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withBrokerInstances(BrokerInstance... brokerInstances) { if (this.brokerInstances == null) { setBrokerInstances(new java.util.ArrayList<BrokerInstance>(brokerInstances.length)); } for (BrokerInstance ele : brokerInstances) { this.brokerInstances.add(ele); } return this; }
describeBrokerResult.setBrokerInstances(new ListUnmarshaller<BrokerInstance>(BrokerInstanceJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * A list of information about allocated brokers. * * @param brokerInstances * A list of information about allocated brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withBrokerInstances(java.util.Collection<BrokerInstance> brokerInstances) { setBrokerInstances(brokerInstances); return this; }
/** * A list of information about allocated brokers. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setBrokerInstances(java.util.Collection)} or {@link #withBrokerInstances(java.util.Collection)} if you * want to override the existing values. * </p> * * @param brokerInstances * A list of information about allocated brokers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBrokerResult withBrokerInstances(BrokerInstance... brokerInstances) { if (this.brokerInstances == null) { setBrokerInstances(new java.util.ArrayList<BrokerInstance>(brokerInstances.length)); } for (BrokerInstance ele : brokerInstances) { this.brokerInstances.add(ele); } return this; }
describeBrokerResult.setBrokerInstances(new ListUnmarshaller<BrokerInstance>(BrokerInstanceJsonUnmarshaller.getInstance()) .unmarshall(context));