/** * <p> * The launch configurations. * </p> * * @param launchConfigurations * The launch configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLaunchConfigurationsResult withLaunchConfigurations(java.util.Collection<LaunchConfiguration> launchConfigurations) { setLaunchConfigurations(launchConfigurations); return this; }
/** * <p> * The launch configurations. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLaunchConfigurations(java.util.Collection)} or {@link #withLaunchConfigurations(java.util.Collection)} * if you want to override the existing values. * </p> * * @param launchConfigurations * The launch configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLaunchConfigurationsResult withLaunchConfigurations(LaunchConfiguration... launchConfigurations) { if (this.launchConfigurations == null) { setLaunchConfigurations(new com.amazonaws.internal.SdkInternalList<LaunchConfiguration>(launchConfigurations.length)); } for (LaunchConfiguration ele : launchConfigurations) { this.launchConfigurations.add(ele); } return this; }
/** * <p> * The launch configurations. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param launchConfigurations <p> * The launch configurations. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public DescribeLaunchConfigurationsResult withLaunchConfigurations( java.util.Collection<LaunchConfiguration> launchConfigurations) { setLaunchConfigurations(launchConfigurations); return this; }