/** * <p> * The name of the data's environment. * </p> * <p> * If no such environment is found, returns an <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic * Beanstalk returns <code>MissingRequiredParameter</code> error. * </p> * * @param environmentName * The name of the data's environment.</p> * <p> * If no such environment is found, returns an <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentId, 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 RetrieveEnvironmentInfoRequest withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; }
/** * <p> * The name of the data's environment. * </p> * <p> * If no such environment is found, returns an <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic * Beanstalk returns <code>MissingRequiredParameter</code> error. * </p> * * @param environmentName * The name of the data's environment.</p> * <p> * If no such environment is found, returns an <code>InvalidParameterValue</code> error. * </p> * <p> * Condition: You must specify either this or an EnvironmentId, 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 RetrieveEnvironmentInfoRequest withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; }