/** * <p> * The Amazon EC2 launch templates in use by this environment. * </p> * * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchTemplates(java.util.Collection<LaunchTemplate> launchTemplates) { setLaunchTemplates(launchTemplates); return this; }
/** * <p> * The Amazon EC2 launch templates in use by this environment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLaunchTemplates(java.util.Collection)} or {@link #withLaunchTemplates(java.util.Collection)} if you * want to override the existing values. * </p> * * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchTemplates(LaunchTemplate... launchTemplates) { if (this.launchTemplates == null) { setLaunchTemplates(new com.amazonaws.internal.SdkInternalList<LaunchTemplate>(launchTemplates.length)); } for (LaunchTemplate ele : launchTemplates) { this.launchTemplates.add(ele); } return this; }
/** * <p> * The Amazon EC2 launch templates in use by this environment. * </p> * * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchTemplates(java.util.Collection<LaunchTemplate> launchTemplates) { setLaunchTemplates(launchTemplates); return this; }
/** * <p> * The Amazon EC2 launch templates in use by this environment. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLaunchTemplates(java.util.Collection)} or {@link #withLaunchTemplates(java.util.Collection)} if you * want to override the existing values. * </p> * * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchTemplates(LaunchTemplate... launchTemplates) { if (this.launchTemplates == null) { setLaunchTemplates(new com.amazonaws.internal.SdkInternalList<LaunchTemplate>(launchTemplates.length)); } for (LaunchTemplate ele : launchTemplates) { this.launchTemplates.add(ele); } return this; }