public RetrieveEnvironmentInfoRequest withInfoType(String infoType) {
        setInfoType(infoType);
        return this;
    }
<p>
The type of information to retrieve.
</p>

@param infoType
       The type of information to retrieve.
@return Returns a reference to this object so that method calls can be chained together.
@see EnvironmentInfoType
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/RetrieveEnvironmentInfoRequest.java