/** * <p> * The ID of the environment of the requested data. * </p> * <p> * If no such environment is found, <code>RequestEnvironmentInfo</code> returns an * <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic * Beanstalk returns <code>MissingRequiredParameter</code> error. * </p> * * @param environmentId * The ID of the environment of the requested data.</p> * <p> * If no such environment is found, <code>RequestEnvironmentInfo</code> returns an * <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS * Elastic Beanstalk returns <code>MissingRequiredParameter</code> error. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestEnvironmentInfoRequest withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; }
/** * <p> * The ID of the environment of the requested data. * </p> * <p> * If no such environment is found, <code>RequestEnvironmentInfo</code> returns an * <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic * Beanstalk returns <code>MissingRequiredParameter</code> error. * </p> * * @param environmentId * The ID of the environment of the requested data.</p> * <p> * If no such environment is found, <code>RequestEnvironmentInfo</code> returns an * <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS * Elastic Beanstalk returns <code>MissingRequiredParameter</code> error. * @return Returns a reference to this object so that method calls can be chained together. */ public RequestEnvironmentInfoRequest withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; }